diff options
Diffstat (limited to 'modules/bcd/manifests/init.pp')
| -rw-r--r-- | modules/bcd/manifests/init.pp | 70 |
1 files changed, 3 insertions, 67 deletions
diff --git a/modules/bcd/manifests/init.pp b/modules/bcd/manifests/init.pp index db55c19d..1ff57144 100644 --- a/modules/bcd/manifests/init.pp +++ b/modules/bcd/manifests/init.pp @@ -1,69 +1,5 @@ class bcd { - class variable { - $bcd_login = 'bcd' - $bcd_home = '/home/bcd' - $public_isos = "$bcd_home/public_html/isos" - $isomakers_group = 'mga-iso_makers' - } - - class base inherits variable { - include sudo - - buildsystem::sshuser { $bcd_login: - homedir => $bcd_home, - comment => "User for creating ISOs", - } - - file { $public_isos: - ensure => directory, - owner => $bcd_login, - group => $bcd_login, - mode => 755, - } - - #package { bcd: - # ensure => 'installed', - #} - - sudo::sudoers_config { "bcd": - content => template("bcd/sudoers.bcd") - } - - file { "/var/lib/bcd": - ensure => directory, - owner => $bcd_login, - group => $bcd_login, - mode => 755, - } - - } - - class web inherits base { - apache::vhost_base { "bcd.$domain": - location => "$bcd_home/public_html", - content => template('bcd/vhost_bcd.conf'), - } - file {"htaccess": - path => "$bcd_home/public_html/.htaccess", - ensure => present, - owner => bcd, - group => bcd, - mode => 755, - content => template("bcd/.htaccess") - } - file {"htpasswd": - path => "$bcd_home/public_html/.htpasswd", - ensure => present, - owner => bcd, - group => bcd, - mode => 755, - content => template("bcd/.htpasswd") - } - } - - class rsync inherits base { - class { rsyncd: - rsyncd_conf => 'bcd/rsyncd.conf' - } - } + $login = 'bcd' + $home = '/home/bcd' + $public_isos = "${home}/public_html/isos" } |
