summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/database
diff options
context:
space:
mode:
authorJohn Ferlito <johnf@inodes.org>2008-12-09 11:46:21 +1100
committerJohn Ferlito <johnf@inodes.org>2008-12-09 11:46:21 +1100
commita0a6d2cfa88cac5418097fb9f71df4cbcae4b192 (patch)
treef1acdbea675b9272cc14f8cb001729dab3060dd1 /lib/puppet/rails/database
parent68ffd46c9fd87e07d0171e7daa54b951f621c7b7 (diff)
downloadpuppet-a0a6d2cfa88cac5418097fb9f71df4cbcae4b192.tar.gz
puppet-a0a6d2cfa88cac5418097fb9f71df4cbcae4b192.tar.xz
puppet-a0a6d2cfa88cac5418097fb9f71df4cbcae4b192.zip
Add a unique name to objects so we can determine uniqueness when read back in
The nagios object definitions have been updated to correlate with Nagios 3.0.6. In Nagios it is possible to have multiple service checks with the same service_description. eg I could have an check with a service_description of 'SSH' for multiple hosts. So in puppet we can't use it as a unique name for the resource. This patch modifies the code to use $name as the unique name. For some types eg command_name $name ends up in the config and thus we can tell which puppet resources match to which nagios ones. For other types like service there is no direct mapping from $name to a nagios attibute. So we use a custom attribute called _naginator_name. Signed-off-by: John Ferlito <johnf@inodes.org>
Diffstat (limited to 'lib/puppet/rails/database')
0 files changed, 0 insertions, 0 deletions