Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef not pulling in Unmanaged Hosts #572

Open
davidpickwell opened this issue Sep 26, 2018 · 2 comments
Open

Chef not pulling in Unmanaged Hosts #572

davidpickwell opened this issue Sep 26, 2018 · 2 comments
Labels
Bug Something isn't working Waiting on Contributor Awaiting on the person who raised this to update

Comments

@davidpickwell
Copy link

davidpickwell commented Sep 26, 2018

Cookbook version

7.2.7 (Unable to use latest, due to issues with Apache 2.4 within our Env)

Chef-client version

Chef: 12.21.3

Platform Details

CentOS release 6.9 (Final)
Linux version 2.6.32-696.13.2.el6.x86_64

Scenario:

Trying to add unmanaged hosts through data bags

Steps to Reproduce:

Added the data bag as below:

$ knife data bag show nagios_unmanagedhosts m******** -F json
{
  "id": "m********",
  "use": "server",
  "host_name": "575689-m********",
  "address": "192.168.40.155",
  "environment": "lon-prod",
  "action": "create"
}

Referenced it as below:

$ knife node show nagios_lon-prod -a nagios.unmanagedhosts_databag
nagios_lon-prod:
  nagios.unmanagedhosts_databag: nagios_unmanagedhosts

On the chef-client run, it seems to ignore any databags in unmanaged hosts.

Other attributes of note:

$ knife node show nagios_lon-prod -a nagios.multi_environment_monitoring
nagios_lon-prod:
  nagios.multi_environment_monitoring: false
$ knife node show nagios_lon-prod -a environment
nagios_lon-prod:
  environment: lon-prod
$ knife node show nagios_lon-prod -a nagios.monitored_environments
nagios_lon-prod:
  nagios.monitored_environments:
  

Expected Result:

Chef client to pull in unmanaged hosts and add them to the correct .cfg files for Nagios.

Actual Result:

There are no unmanaged hosts that are added to the Nagios instance through chef.

@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale label Sep 30, 2020
@xorimabot xorimabot removed the Stale label Sep 30, 2020
@ramereth
Copy link
Contributor

ramereth commented Oct 4, 2020

@davidpickwell is this still happening with the current release of the cookbook?

@ramereth ramereth added Bug Something isn't working Waiting on Contributor Awaiting on the person who raised this to update labels Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Waiting on Contributor Awaiting on the person who raised this to update
Projects
None yet
Development

No branches or pull requests

3 participants