diff options
author | intrigeri <intrigeri@boum.org> | 2012-11-11 22:42:23 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-11-11 22:42:23 +0100 |
commit | 1627732475fa126d8eb3cb437994df1f14f96766 (patch) | |
tree | 9e7fb5b9f0ceba4c0270ff7c46e8635a06e3fafd | |
parent | 62a02519915bc3d61a17ec5e1f5ca8927d5bcf4a (diff) | |
download | puppet-tor-1627732475fa126d8eb3cb437994df1f14f96766.tar.gz puppet-tor-1627732475fa126d8eb3cb437994df1f14f96766.tar.bz2 |
Move ensure attributes to the first place.
Puppet style guide "9.3. Attribute Ordering" reads:
If a resource declaration includes an ensure attribute, it should be the first
attribute specified.
-rw-r--r-- | manifests/daemon.pp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 5385f39..2dcdccf 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -24,9 +24,9 @@ class tor::daemon ( } user { 'debian-tor': + ensure => present, allowdupe => false, comment => 'tor user,,,', - ensure => present, home => "${data_dir}", shell => '/bin/false', gid => 'debian-tor', @@ -64,9 +64,9 @@ class tor::daemon ( # config file headers concat::fragment { '00.header': + ensure => present, content => template('tor/torrc.header.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => present, order => 00, target => "${config_file}", } @@ -116,9 +116,9 @@ class tor::daemon ( } concat::fragment { '03.relay': + ensure => $ensure, content => template('tor/torrc.relay.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 03, target => "${tor::daemon::config_file}", } @@ -141,9 +141,9 @@ class tor::daemon ( } concat::fragment { '04.control': + ensure => $ensure, content => template('tor/torrc.control.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0600, - ensure => $ensure, order => 04, target => "${tor::daemon::config_file}", } @@ -155,9 +155,9 @@ class tor::daemon ( $ensure = present ) { concat::fragment { "05.hidden_service.${name}": + ensure => $ensure, content => template('tor/torrc.hidden_service.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 05, target => "${tor::daemon::config_file}", } @@ -170,17 +170,17 @@ class tor::daemon ( $ensure = present ) { concat::fragment { '06.directory': + ensure => $ensure, content => template('tor/torrc.directory.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 06, target => "${tor::daemon::config_file}", } file { '/etc/tor/tor.html': + ensure => $ensure, source => 'puppet:///modules/tor/tor.html', require => File['/etc/tor'], - ensure => $ensure, owner => 'debian-tor', group => 'debian-tor', mode => 0644, } } @@ -192,9 +192,9 @@ class tor::daemon ( $ensure = present ) { concat::fragment { "07.exit_policy.${name}": + ensure => $ensure, content => template('tor/torrc.exit_policy.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 07, target => "${tor::daemon::config_file}", } @@ -206,9 +206,9 @@ class tor::daemon ( $ensure = present ) { concat::fragment { "08.dns.${name}": + ensure => $ensure, content => template('tor/torrc.dns.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 08, target => "${tor::daemon::config_file}", } @@ -220,9 +220,9 @@ class tor::daemon ( $ensure = present ) { concat::fragment { "09.transparent.${name}": + ensure => $ensure, content => template('tor/torrc.transparent.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 09, target => "${tor::daemon::config_file}", } @@ -235,9 +235,9 @@ class tor::daemon ( $ensure = present ) { concat::fragment { "10.bridge.${name}": + ensure => $ensure, content => template('tor/torrc.bridge.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 10, target => "${tor::daemon::config_file}", } @@ -248,9 +248,9 @@ class tor::daemon ( $newaddress = '') { concat::fragment { "08.map_address.${name}": + ensure => $ensure, content => template('tor/torrc.map_address.erb'), owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 08, target => "${tor::daemon::config_file}", } @@ -261,9 +261,9 @@ class tor::daemon ( $ensure = present ) { concat::fragment { "99.snippet.${name}": + ensure => $ensure, content => "${content}", owner => 'debian-tor', group => 'debian-tor', mode => 0644, - ensure => $ensure, order => 99, target => "${tor::daemon::config_file}", } |