diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-16 23:22:09 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-16 23:22:09 +0000 |
commit | a27380063ecc2c74ddbe9da302c5ed788c7a551f (patch) | |
tree | 791c9da0c7174e69ebc35772026addd6e4a295af | |
parent | 27f5e529423650ea4bc2600dcf1a5fa50ef2c589 (diff) | |
download | puppet-a27380063ecc2c74ddbe9da302c5ed788c7a551f.tar puppet-a27380063ecc2c74ddbe9da302c5ed788c7a551f.tar.gz puppet-a27380063ecc2c74ddbe9da302c5ed788c7a551f.tar.bz2 puppet-a27380063ecc2c74ddbe9da302c5ed788c7a551f.tar.xz puppet-a27380063ecc2c74ddbe9da302c5ed788c7a551f.zip |
split variable in a separate submodule
-rw-r--r-- | modules/buildsystem/manifests/scheduler.pp | 12 | ||||
-rw-r--r-- | modules/buildsystem/manifests/scheduler/var.pp | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/modules/buildsystem/manifests/scheduler.pp b/modules/buildsystem/manifests/scheduler.pp index 887c2120..3b7e03f3 100644 --- a/modules/buildsystem/manifests/scheduler.pp +++ b/modules/buildsystem/manifests/scheduler.pp @@ -1,14 +1,16 @@ class buildsystem::scheduler { # until ulri is splitted from main iurt rpm include ssh::auth - include iurt::packages - include iurt::upload - $login = 'schedbot' - $homedir = $buildsystem::base::sched_home_dir + include buildsystem::iurt::packages + include buildsystem::iurt::upload + include buildsystem::scheduler::var + + $login = $buildsystem::scheduler::var::login + $homedir = $buildsystem::scheduler::var::homedir ssh::auth::key { $login: # declare a key for sched bot: RSA, 2048 bits - home => $sched_home_dir, + home => $homedir, } sshuser { $login: diff --git a/modules/buildsystem/manifests/scheduler/var.pp b/modules/buildsystem/manifests/scheduler/var.pp new file mode 100644 index 00000000..e649c088 --- /dev/null +++ b/modules/buildsystem/manifests/scheduler/var.pp @@ -0,0 +1,4 @@ +class buildsystem::scheduler::var { + $login = 'schedbot' + $homedir = "/var/lib/$login" +} |