]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Using explicit variable scoping (2)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 19:31:13 +0000 (17:31 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 19:31:13 +0000 (17:31 -0200)
manifests/nodo.pp

index 36b04a58c45c824a0a97c9abe7cc85dd74033a2b..a05409e08926b5755985b9af22a73f957efac3a2 100644 (file)
@@ -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":