From 4b7555c3ab1acc64350d04bfdd4f9858d4d5679b Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 12 Jan 2011 16:42:08 +0000 Subject: add bcd module --- modules/bcd/manifests/ini.pp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/bcd/manifests/ini.pp (limited to 'modules/bcd/manifests') diff --git a/modules/bcd/manifests/ini.pp b/modules/bcd/manifests/ini.pp new file mode 100644 index 00000000..07b4e073 --- /dev/null +++ b/modules/bcd/manifests/ini.pp @@ -0,0 +1,32 @@ +class bcd { + $bcd_login = 'bcd' + $bcd_home = '/home/bcd' + + class base { + include sudo + + buildsystem::sshuser { $bcd_login: + homedir => $bcd_home, + comment => "User for creating ISOs", + } + + package { bcd: + ensure => 'installed', + } + + file { "/etc/sudoers.d/bcd": + owner => root, + group => root, + mode => 440, + content => template("bcd/sudoers.bcd") + } + } + + define ssh_access($type, $key) { + ssh_authorized_key{$name: + type => $type, + key => $key, + user => $bcd_login, + } + } +} -- cgit v1.2.1