aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/iurt/config.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-16 22:46:23 +0000
committerMichael Scherer <misc@mageia.org>2012-03-16 22:46:23 +0000
commitb74151bf723df3fcadf24d2f6e00401bb69c1020 (patch)
treeca67dcadb418e482472167cca393fb4ac5a1b5b3 /modules/buildsystem/manifests/iurt/config.pp
parent31adbee69aa33150bd8016837b85646a948f8ad7 (diff)
downloadpuppet-b74151bf723df3fcadf24d2f6e00401bb69c1020.tar
puppet-b74151bf723df3fcadf24d2f6e00401bb69c1020.tar.gz
puppet-b74151bf723df3fcadf24d2f6e00401bb69c1020.tar.bz2
puppet-b74151bf723df3fcadf24d2f6e00401bb69c1020.tar.xz
puppet-b74151bf723df3fcadf24d2f6e00401bb69c1020.zip
refactor completely iurt module ( maybe should even be moved out of buildsystem
module, since it tend to be too big )
Diffstat (limited to 'modules/buildsystem/manifests/iurt/config.pp')
-rw-r--r--modules/buildsystem/manifests/iurt/config.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/iurt/config.pp b/modules/buildsystem/manifests/iurt/config.pp
new file mode 100644
index 00000000..88c08b66
--- /dev/null
+++ b/modules/buildsystem/manifests/iurt/config.pp
@@ -0,0 +1,11 @@
+define buildsystem::iurt::config() {
+ $distribution = $name
+ # TODO rename the variable too in template
+ $build_login = $buildsystem::iurt::user::login
+
+ file { "/etc/iurt/build/$distribution.conf":
+ owner => $build_login,
+ group => $build_login,
+ content => template("buildsystem/iurt/$distribution.conf")
+ }
+}