diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-16 22:46:20 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-16 22:46:20 +0000 |
commit | 31adbee69aa33150bd8016837b85646a948f8ad7 (patch) | |
tree | e6f2ed150e31e623d3cfdf48c00e4ea1c6554f94 /modules/buildsystem/manifests/iurt | |
parent | 8d7fd472cd88f51bb1bb15091dcd51e7dfe85989 (diff) | |
download | puppet-31adbee69aa33150bd8016837b85646a948f8ad7.tar puppet-31adbee69aa33150bd8016837b85646a948f8ad7.tar.gz puppet-31adbee69aa33150bd8016837b85646a948f8ad7.tar.bz2 puppet-31adbee69aa33150bd8016837b85646a948f8ad7.tar.xz puppet-31adbee69aa33150bd8016837b85646a948f8ad7.zip |
move iurt.pp to a subdirectory
Diffstat (limited to 'modules/buildsystem/manifests/iurt')
-rw-r--r-- | modules/buildsystem/manifests/iurt/init.pp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/iurt/init.pp b/modules/buildsystem/manifests/iurt/init.pp new file mode 100644 index 00000000..e545f270 --- /dev/null +++ b/modules/buildsystem/manifests/iurt/init.pp @@ -0,0 +1,44 @@ +class buildsystem::iurt { + include sudo + include buildsystem::iurtuser + $build_login = $buildsystem::base::build_login + $build_home_dir = $buildsystem::base::build_home_dir + + ssh::auth::client { $build_login: } + ssh::auth::server { $buildsystem::base::sched_login: + user => $build_login + } + + # remove old build directory + tidy { "$build_home_dir/iurt": + age => '8w', + recurse => true, + matches => ['[0-9][0-9].*\..*\..*\.[0-9]*','log','*.rpm','*.log','*.mga[0-9]+'], + rmdirs => true, + } + +# build node common settings +# we could have the following skip list to use less space: +# '/(drakx-installer-binaries|drakx-installer-advertising|gfxboot|drakx-installer-stage2|mandriva-theme)/' + package { 'iurt': } + + file { '/etc/iurt/build': + ensure => directory, + } + + define iurt_config() { + + $distribution = $name + file { "/etc/iurt/build/$distribution.conf": + owner => $buildsystem::iurt::build_login, + group => $buildsystem::iurt::build_login, + content => template("buildsystem/iurt/$distribution.conf") + } + } + + iurt_config { ['1','cauldron','mandriva2010.1','infra_1']: } + + sudo::sudoers_config { 'iurt': + content => template('buildsystem/iurt/sudoers.iurt') + } +} |