diff options
author | Tails developers <tails@boum.org> | 2012-10-23 15:03:54 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-10-25 14:20:33 +0200 |
commit | 4ed9def99c99a6d5c21af18eb0b73a1d6081cbee (patch) | |
tree | 4d8c5c838c7c17cdd08a2ab8c3c58a6d34b21845 /manifests/inotify.pp | |
parent | f8ec0b9d756dbe7fb360a3059231045e3d8acba5 (diff) |
Convert the reprepro class to parametrized format
We remove the deprecated dynamic lookup for variables and now have them as
class parameters.
The reprepro::cron and reprepro::inoticoming classes have been integrated
in the reprepro class as two boolean arguments. As these are not mutually
exclusive, it is cleaner that way.
We add a test manifest for the reprepro class along the way.
Diffstat (limited to 'manifests/inotify.pp')
-rw-r--r-- | manifests/inotify.pp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/manifests/inotify.pp b/manifests/inotify.pp deleted file mode 100644 index 45fcb7e..0000000 --- a/manifests/inotify.pp +++ /dev/null @@ -1,31 +0,0 @@ -class reprepro::inotify inherits reprepro { - case $lsbdistcodename { - etch: { - package { - "inoticoming": ensure => '0.2.0-1~bpo40+1'; - } - } - default: { - package { - "inoticoming": ensure => 'installed'; - } - } - } - file { "/etc/init.d/reprepro": - owner => root, group => root, mode => 0755, - source => "puppet://$server/modules/reprepro/inoticoming.init"; - } - file { "/etc/default/reprepro": - ensure => present, - owner => root, group => root, mode => 0755, - content => template('reprepro/inoticoming.default.erb'), - } - - service { "reprepro": - ensure => "running", - pattern => "inoticoming.*reprepro.*processincoming", - hasstatus => false, - require => [File["/etc/default/reprepro"], - File["/etc/init.d/reprepro"] ], - } -} |