diff options
author | Christian G. Warden <cwarden@xerus.org> | 2012-02-01 18:00:04 -0800 |
---|---|---|
committer | Christian G. Warden <cwarden@xerus.org> | 2012-02-01 18:00:04 -0800 |
commit | 9e22cc72124c9eb1612f62653ea92538bac06855 (patch) | |
tree | e0428c6a25b5e6e946a9427f808837937303746f /manifests | |
parent | 363bdd5c7519aea45be143f4a19c10dc41a9b03f (diff) |
fully qualify fqdn and hostname facter variables
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/service.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/service.pp b/manifests/service.pp index afc8650..a739317 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -1,6 +1,6 @@ define nagios::service ( $ensure = present, - $host_name = $fqdn, + $host_name = $::fqdn, $check_command, $check_period = '', $normal_check_interval = '', @@ -16,7 +16,7 @@ define nagios::service ( # TODO: this resource should normally accept all nagios_host parameters - $real_name = "${hostname}_${name}" + $real_name = "${::hostname}_${name}" @@nagios_service { "${real_name}": ensure => $ensure, |