forked from theforeman/puppet-candlepin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.pp
43 lines (37 loc) · 954 Bytes
/
config.pp
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
# Configuration for Candlepin
#
# @api private
class candlepin::config {
assert_private()
user { $candlepin::user:
ensure => present,
gid => $candlepin::group,
groups => $candlepin::user_groups,
}
group { $candlepin::group:
ensure => present,
}
concat::fragment { 'General Config':
target => $candlepin::candlepin_conf_file,
content => template('candlepin/candlepin.conf.erb'),
}
concat { $candlepin::candlepin_conf_file:
mode => '0640',
owner => 'root',
group => $candlepin::group,
}
file { '/etc/tomcat/server.xml':
ensure => file,
content => template('candlepin/tomcat/server.xml.erb'),
mode => '0640',
owner => 'root',
group => $candlepin::group,
}
file { '/etc/tomcat/tomcat.conf':
ensure => file,
content => template('candlepin/tomcat/tomcat.conf.erb'),
mode => '0644',
owner => 'root',
group => $candlepin::group,
}
}