diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-04-07 18:52:59 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-04-07 18:52:59 +0000 |
commit | b16a36b298a3d770911ba09c45ef684738776de2 (patch) | |
tree | d985307adaa4628fdff0ff267e8be4bd3c4ab49d | |
parent | 3c067a16ca72a9950b0719daa6077b9f3d3794ba (diff) | |
download | puppet-b16a36b298a3d770911ba09c45ef684738776de2.tar puppet-b16a36b298a3d770911ba09c45ef684738776de2.tar.gz puppet-b16a36b298a3d770911ba09c45ef684738776de2.tar.bz2 puppet-b16a36b298a3d770911ba09c45ef684738776de2.tar.xz puppet-b16a36b298a3d770911ba09c45ef684738776de2.zip |
add iurt2010.1 script
-rw-r--r-- | manifests/nodes.pp | 1 | ||||
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 11 | ||||
-rwxr-xr-x | modules/buildsystem/templates/iurt2010.1 | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/manifests/nodes.pp b/manifests/nodes.pp index 0e3e8c10..74b605c5 100644 --- a/manifests/nodes.pp +++ b/manifests/nodes.pp @@ -116,6 +116,7 @@ node jonund { # include common::default_mageia_server include buildsystem::buildnode + include buildsystem::iurt20101 timezone::timezone { "Europe/Paris": } include shorewall include shorewall::default_firewall diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index 763e5842..bfa73098 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -382,4 +382,15 @@ class buildsystem { minute => "*/15", } } + + class iurt20101 { + include iurt + file { "/usr/local/bin/iurt2010.1": + ensure => present, + owner => root, + group => root, + mode => 755, + source => template("buildsystem/iurt2010.1"), + } + } } diff --git a/modules/buildsystem/templates/iurt2010.1 b/modules/buildsystem/templates/iurt2010.1 new file mode 100755 index 00000000..4de46c9c --- /dev/null +++ b/modules/buildsystem/templates/iurt2010.1 @@ -0,0 +1,7 @@ +#!/bin/sh +if [ `id -u` -ne 0 ] +then + echo 'this script should be run as root' >&2 + exit 1 +fi +su - <%= build_login %> -c "iurt --no-rsync -r mandriva2010.1 x86_64 $@" |