diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-08 14:47:09 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-08 14:47:09 +0000 |
commit | 81d5aeaf9407a82cf0bccd7c5f3c4bf64ed96365 (patch) | |
tree | a8ab71f3c1951bc4890482131896fc43135d7028 /modules/buildsystem/manifests/init.pp | |
parent | 36fdfc70fd2ab0b4978b6814d12626ebc833db97 (diff) | |
download | puppet-81d5aeaf9407a82cf0bccd7c5f3c4bf64ed96365.tar puppet-81d5aeaf9407a82cf0bccd7c5f3c4bf64ed96365.tar.gz puppet-81d5aeaf9407a82cf0bccd7c5f3c4bf64ed96365.tar.bz2 puppet-81d5aeaf9407a82cf0bccd7c5f3c4bf64ed96365.tar.xz puppet-81d5aeaf9407a82cf0bccd7c5f3c4bf64ed96365.zip |
more refactoring, and some documentation
Diffstat (limited to 'modules/buildsystem/manifests/init.pp')
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 50 |
1 files changed, 13 insertions, 37 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index 171b13ec..e37b09b7 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -159,21 +159,12 @@ class buildsystem { class youri_submit { include sudo - file { "/usr/local/bin/mga-youri-submit": - owner => root, - group => root, - mode => 755, - content => template("buildsystem/mga-youri-submit") + local_script { + "mga-youri-submit": content => template("buildsystem/mga-youri-submit"), + "mga-youri-submit.wrapper": content => template("buildsystem/mga-youri-submit.wrapper"), } - file { "/usr/local/bin/mga-youri-submit.wrapper": - owner => root, - group => root, - mode => 755, - content => template("buildsystem/mga-youri-submit.wrapper") - } - - sudo::sudoers_config { "mga-youri-submit": + sudo::sudoers_config { "mga-youri-submit": content => template("buildsystem/sudoers.youri") } @@ -192,38 +183,23 @@ class buildsystem { owner => $sched_login, } + # ordering is automatic : + # http://docs.puppetlabs.com/learning/ordering.html#autorequire file { "/etc/youri": ensure => "directory", } - file { "/etc/youri/submit-todo.conf": - ensure => present, - mode => 644, - require => File["/etc/youri"], - content => template("buildsystem/submit-todo.conf") - } - - file { "/etc/youri/submit-upload.conf": - ensure => present, - mode => 644, - require => File["/etc/youri"], - content => template("buildsystem/submit-upload.conf") + file { + "/etc/youri/submit-todo.conf": content => template("buildsystem/submit-todo.conf"), + "/etc/youri/submit-upload.conf": content => template("buildsystem/submit-upload.conf"), + "/etc/youri/acl.conf": content => template("buildsystem/youri_acl.conf") } - file { "/etc/youri/acl.conf": - ensure => present, - mode => 644, - require => File["/etc/youri"], - content => template("buildsystem/youri_acl.conf") - } - - file { '/usr/local/bin/submit_package': - ensure => present, - mode => 755, - content => template('buildsystem/submit_package.pl') + local_script { 'submit_package': + content => template('buildsystem/submit_package.pl') } - # FIXME use the correct perl directory + # FIXME use the correct perl directory file { "/usr/lib/perl5/site_perl/5.10.1/Youri/Repository": ensure => "directory", } |