diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server.pp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/manifests/server.pp b/manifests/server.pp index 66d10b1..f3253bb 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -7,53 +7,53 @@ class samba::server($interfaces = '', include samba::server::config include samba::server::service - $context = "/files/etc/samba/smb.conf" + $context = '/files/etc/samba/smb.conf' $target = "target[. = 'global']" augeas { 'global-section': context => $context, changes => "set ${target} global", - require => Class["samba::server::config"], - notify => Class['samba::server::service'] + require => Class['samba::server::config'], + notify => Class['samba::server::service'] } augeas { 'global-interfaces': context => $context, changes => $interfaces ? { - default => ["set \"${target}/interfaces\" '$interfaces'", "set \"${target}/bind interfaces only\" yes"], - '' => ["rm \"${target}/interfaces\"", "rm \"${target}/bind interfaces only\""], + default => ["set \"${target}/interfaces\" '${interfaces}'", "set \"${target}/bind interfaces only\" yes"], + '' => ["rm \"${target}/interfaces\"", "rm \"${target}/bind interfaces only\""], }, require => Augeas['global-section'], - notify => Class['samba::server::service'] + notify => Class['samba::server::service'] } augeas { 'global-security': context => $context, changes => $security ? { - default => "set \"${target}/security\" '$security'", - '' => "rm \"${target}/security\"", + default => "set \"${target}/security\" '${security}'", + '' => "rm \"${target}/security\"", }, require => Augeas['global-section'], - notify => Class['samba::server::service'] + notify => Class['samba::server::service'] } augeas { 'global-server_string': context => $context, changes => $server_string ? { - default => "set \"${target}/server string\" '$server_string'", - '' => "rm \"${target}/server string\"", + default => "set \"${target}/server string\" '${server_string}'", + '' => "rm \"${target}/server string\"", }, require => Augeas['global-section'], - notify => Class['samba::server::service'] + notify => Class['samba::server::service'] } augeas { 'global-workgroup': context => $context, changes => $workgroup ? { - default => "set ${target}/workgroup '$workgroup'", - '' => "rm ${target}/workgroup", + default => "set ${target}/workgroup '${workgroup}'", + '' => "rm ${target}/workgroup", }, require => Augeas['global-section'], - notify => Class['samba::server::service'] + notify => Class['samba::server::service'] } } |