Restructure to use r10k
[cacert-puppet.git] / sitemodules / profiles / manifests / base.pp
1 class profiles::base (
2 $admins = [],
3 $users = {},
4 ) {
5 # ensure admin users for this container
6 $admins.each |String $username| {
7 $user = $users[$username]
8 group { $user['username']:
9 ensure => present,
10 } ->
11 user { $user['username']:
12 ensure => present,
13 comment => $user['fullname'],
14 gid => $user['username'],
15 groups => ['sudo', 'adm'],
16 password => $user['password'],
17 uid => $user['uid'],
18 }
19 }
20
21 file { '/etc/init.d/puppet':
22 ensure => file,
23 owner => 'root',
24 group => 'root',
25 mode => '0755',
26 source => 'puppet:///modules/profiles/puppet.init',
27 }
28 }