From: Silvio Rhatto Date: Fri, 25 Jan 2013 19:31:13 +0000 (-0200) Subject: Using explicit variable scoping (2) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cb1991560723d22be67fcce227c7c66a441f7c41;p=puppet-nodo.git Using explicit variable scoping (2) --- diff --git a/manifests/nodo.pp b/manifests/nodo.pp index 36b04a5..a05409e 100644 --- a/manifests/nodo.pp +++ b/manifests/nodo.pp @@ -99,7 +99,7 @@ class nodo { # instances can live together in the same physical host. # class { 'sshd': - listen_address => hiera('nodo::sshd_listen_address', [ "$ipaddress", '127.0.0.1' ]), + listen_address => hiera('nodo::sshd_listen_address', [ "${::ipaddress}", '127.0.0.1' ]), password_authentication => hiera('nodo::sshd_password_authentication', 'yes'), shared_ip => hiera('nodo::sshd_shared_ip', 'yes'), tcp_forwarding => hiera('nodo::sshd_tcp_forwarding', 'yes'), @@ -114,7 +114,7 @@ class nodo { group => "root", mode => 0644, ensure => present, - content => "$fqdn\n", + content => "${::fqdn}\n", } file { "/etc/rc.local":