- From: <
>
- To:
- Subject: [chef] environments within nagios
- Date: Tue, 3 Sep 2013 12:00:50 -0700 (PDT)
I've created (2) roles:
development.rb
name "development"
description "Nodes in the development environment."
default_attributes(
"app_environment" => "development"
production.rb
name "production"
description "Nodes in the production environment."
default_attributes(
"app_environment" => "production"
)
When I deployed a development nagios server, it added all the required hosts
while giving it the "development" role. However, when i deployed a production
nagios server, it ALSO added the "development" role servers. In theory, this
should be empty since I have never rolled out a client server with a
"production" role. What am I doing wrong here?
I did notice that when i did knife node edit, it shows the default
environment:
{
"name": "localhost.localdomain",
"chef_environment": "_default",
"normal": {
"tags": [
]
},
"run_list": [
"role[monitoring]",
"role[production]",
"role[localhost]",
"role[base_linux]"
]
}
- [chef] environments within nagios, nshah, 09/03/2013
Archive powered by MHonArc 2.6.16.