Puppet Class: proxysql::install
- Defined in:
-
manifests/install.pp
Summary
Install the proxysql package and setup directories.
Overview
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
|
# File 'manifests/install.pp', line 5
class proxysql::install {
if $proxysql::owner != 'root' {
user { $proxysql::owner:
ensure => present,
comment => 'ProxySQL',
gid => $proxysql::group,
home => $proxysql::datadir,
shell => '/bin/false',
system => true,
}
}
if $proxysql::group != 'root' {
group { $proxysql::group:
ensure => present,
system => true,
}
}
package { 'proxysql':
ensure => $proxysql::package_ensure,
}
file {
default:
ensure => directory,
owner => $proxysql::owner,
group => $proxysql::group;
$proxysql::datadir:
mode => $proxysql::datadir_mode;
$proxysql::logdir:
mode => $proxysql::logdir_mode;
}
}
|