-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathinit.pp
More file actions
33 lines (29 loc) · 744 Bytes
/
init.pp
File metadata and controls
33 lines (29 loc) · 744 Bytes
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
class ocf_mysql {
require ocf::ssl::default;
$mysql_root_password = lookup('ocf_mysql::root_password')
class { 'ocf::packages::mysql_server':
manage_service => false,
} ->
user { 'mysql':
groups => ['ssl-cert'];
} ->
file {
'/etc/mysql/mariadb.conf.d/99-ocf.cnf':
content => template('ocf_mysql/99-ocf.cnf');
'/root/.my.cnf':
mode => '0600',
content => template('ocf_mysql/root-my.cnf.erb'),
show_diff => false;
} ~>
service { 'mariadb': }
# allow mysql (3306 udp/tcp)
ocf::firewall::firewall46 {
'101 allow mysql':
opts => {
chain => 'PUPPET-INPUT',
proto => ['tcp', 'udp'],
dport => 3306,
action => 'accept',
};
}
}