blob: 1e186bbb94845b9dd8fb6b8b1c40060f6ca99ba1 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
class leap_mx {
$couchdb_admin_user = hiera('couchdb_admin_user')
$couchdb_host = 'localhost'
$couchdb_port = '4096'
$couchdb_user = $couchdb_admin_user['username']
$couchdb_password = $couchdb_admin_user['password']
#
# USER AND GROUP
#
group { 'leap-mx':
ensure => present,
allowdupe => false;
}
user { 'leap-mx':
ensure => present,
allowdupe => false,
gid => 'leap-mx',
home => '/etc/leap',
require => Group['leap-mx'];
}
#
# LEAP-MX CONFIG
#
file { '/etc/leap/mx.conf':
content => template('leap_mx/mx.conf.erb'),
owner => 'leap-mx',
group => 'leap-mx',
mode => '0600',
notify => Service['leap-mx'];
}
#
# LEAP-MX CODE
#
package { 'leap-mx':
ensure => installed;
}
#
# LEAP-MX DAEMON
#
service { 'leap-mx':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => [ Package['leap-mx'] ];
}
}
|