-
-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Labels
BugSomething isn't workingSomething isn't workingWaiting on ContributorAwaiting on the person who raised this to updateAwaiting on the person who raised this to update
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingWaiting on ContributorAwaiting on the person who raised this to updateAwaiting on the person who raised this to update