1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# set up users, group and directories for soledad-server
# although the soledad users are already created by the
# soledad-server package
class soledad {
group { 'soledad':
ensure => present,
system => true,
}
user { 'soledad':
ensure => present,
system => true,
gid => 'soledad',
home => '/srv/leap/soledad',
require => Group['soledad'];
}
user { 'soledad-admin':
ensure => present,
system => true,
gid => 'soledad',
home => '/srv/leap/soledad',
require => Group['soledad'];
}
file {
'/srv/leap/soledad':
ensure => directory,
owner => 'soledad',
group => 'soledad',
require => User['soledad'];
'/var/lib/soledad':
ensure => directory,
owner => 'soledad',
group => 'soledad',
require => User['soledad'];
}
}
|