/[adm]/puppet/modules/bcd/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/bcd/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 776 - (show annotations) (download)
Thu Jan 13 18:12:27 2011 UTC (13 years, 3 months ago) by misc
File size: 708 byte(s)
fix bcd problem of variable missing
1 class bcd {
2 class variable {
3
4 $bcd_login = 'bcd'
5 $bcd_home = '/home/bcd'
6 }
7
8 class base inherits variable {
9 include sudo
10
11 buildsystem::sshuser { $bcd_login:
12 homedir => $bcd_home,
13 comment => "User for creating ISOs",
14 }
15
16 package { bcd:
17 ensure => 'installed',
18 }
19
20 file { "/etc/sudoers.d/bcd":
21 owner => root,
22 group => root,
23 mode => 440,
24 content => template("bcd/sudoers.bcd")
25 }
26 }
27
28 define ssh_access($type, $key) {
29 include bcd::variable
30 ssh_authorized_key{$name:
31 type => $type,
32 key => $key,
33 user => $bcd_login,
34 }
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.30