Skip to content

Commit

Permalink
Merge pull request #20 from diranged/fix_bad_file_resource
Browse files Browse the repository at this point in the history
Fix bad file resource
  • Loading branch information
jdowning committed Mar 14, 2015
2 parents 249efc6 + 8ead840 commit b70bf4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,42 @@
file { '/etc/statsd':
ensure => directory,
mode => '0755',
owner => 'root',
group => 'root',
}->
file { $configfile:
content => template('statsd/localConfig.js.erb'),
mode => '0644',
owner => 'root',
group => 'root',
}

file { $statsd::init_location:
source => $statsd::init_script,
mode => $statsd::init_mode,
owner => 'root',
group => 'root',
}

file { '/etc/default/statsd':
content => template('statsd/statsd-defaults.erb'),
owner => 'root',
group => 'root',
mode => '0755',
}

file { '/var/log/statsd':
ensure => directory,
owner => 'nobody',
mode => '0755',
owner => 'nobody',
group => 'root',
}

file { '/usr/local/sbin/statsd':
source => 'puppet:///modules/statsd/statsd-wrapper',
mode => '0755',
}

File {
owner => 'root',
group => 'root',
}

if $statsd::manage_service == true {
File <| |> ~> Service['statsd']
}

}
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
enable => $service_enable,
hasstatus => true,
provider => $init_provider,
subscribe => Class['statsd::config'],
require => [ Package['statsd'], File['/var/log/statsd'] ],
}
}
Expand Down

0 comments on commit b70bf4c

Please sign in to comment.