diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-17 11:05:25 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-17 11:05:25 +0000 |
commit | 6262cd9568116edc47864958935ec8128fd06d0a (patch) | |
tree | 25e2c4457533f24479678df784ef796e04cabdc3 /modules/bcd/manifests/base.pp | |
parent | cc782be3aed069c1c538e90358f0f0647bb2e425 (diff) | |
download | puppet-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.pp | 34 |
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', + } +} + |