aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/manifests/base.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-17 11:05:25 +0000
committerMichael Scherer <misc@mageia.org>2012-03-17 11:05:25 +0000
commit6262cd9568116edc47864958935ec8128fd06d0a (patch)
tree25e2c4457533f24479678df784ef796e04cabdc3 /modules/bcd/manifests/base.pp
parentcc782be3aed069c1c538e90358f0f0647bb2e425 (diff)
downloadpuppet-6262cd9568116edc47864958935ec8128fd06d0a.tar
puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar.gz
puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar.bz2
puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar.xz
puppet-6262cd9568116edc47864958935ec8128fd06d0a.zip
split base from init.pp, and simplify the variable declaration and lookup
by merging bcd::variable with the main class (so we can directly say bcd::login instead of using bcd::variable )
Diffstat (limited to 'modules/bcd/manifests/base.pp')
-rw-r--r--modules/bcd/manifests/base.pp34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/bcd/manifests/base.pp b/modules/bcd/manifests/base.pp
new file mode 100644
index 00000000..24e24738
--- /dev/null
+++ b/modules/bcd/manifests/base.pp
@@ -0,0 +1,34 @@
+class bcd::base {
+ include sudo
+
+ group { $bcd::login: }
+
+ user { $bcd::login:
+ home => $bcd::home,
+ managehome => true,
+ comment => 'User for creating ISOs',
+ }
+
+ file { $bcd::public_isos:
+ ensure => directory,
+ owner => $bcd::login,
+ group => $bcd::login,
+ mode => '0755',
+ }
+
+ # svn version is used for now
+ #package { bcd: }
+
+ $isomakers_group = 'mga-iso_makers'
+ sudo::sudoers_config { 'bcd':
+ content => template('bcd/sudoers.bcd')
+ }
+
+ file { '/var/lib/bcd':
+ ensure => directory,
+ owner => $bcd::login,
+ group => $bcd::login,
+ mode => '0755',
+ }
+}
+