diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/inotify.pp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/manifests/inotify.pp b/manifests/inotify.pp index 750ea57..b59faa7 100644 --- a/manifests/inotify.pp +++ b/manifests/inotify.pp @@ -1,6 +1,6 @@ class reprepro::inotify { - case $lsbdistcodename { + case $::lsbdistcodename { etch: { package { "inoticoming": ensure => '0.2.0-1~bpo40+1'; @@ -15,25 +15,25 @@ class reprepro::inotify { file { "/etc/init.d/reprepro": owner => root, group => root, mode => 0755, - source => "puppet://$server/modules/reprepro/inoticoming.init"; + source => "puppet:///modules/reprepro/inoticoming.init"; } file { "/etc/default/reprepro": - ensure => present, - owner => root, group => root, mode => 0755, + ensure => present, + owner => root, group => root, mode => 0755, content => template('reprepro/inoticoming.default.erb'), } exec { "reprepro_init_script": command => "/usr/sbin/update-rc.d reprepro defaults", - unless => "/bin/ls /etc/rc3.d/ | /bin/grep reprepro", + unless => "/bin/ls /etc/rc3.d/ | /bin/grep reprepro", require => File["/etc/init.d/reprepro"], } service { "reprepro": - ensure => "running", - pattern => "inoticoming.*reprepro.*processincoming", + ensure => "running", + pattern => "inoticoming.*reprepro.*processincoming", hasstatus => false, - require => [File["/etc/default/reprepro"], - Exec["reprepro_init_script"], - File["/etc/init.d/reprepro"] ], + require => [File["/etc/default/reprepro"], + Exec["reprepro_init_script"], + File["/etc/init.d/reprepro"] ], } } |