-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathparams.pp
More file actions
151 lines (142 loc) · 4.8 KB
/
Copy pathparams.pp
File metadata and controls
151 lines (142 loc) · 4.8 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Class: supervisord::params
#
# Default parameters for supervisord
#
class supervisord::params {
# sort out init params for different OS families
case $::osfamily {
'RedHat': {
$unix_socket_group = 'nobody'
$install_init = true
$log_path_mode = '0770'
case $::operatingsystem {
'Amazon': {
$init_type = 'init'
$init_script = '/etc/init.d/supervisord'
$init_defaults = '/etc/sysconfig/supervisord'
$executable_path = '/usr/local/bin'
}
default: {
case $::operatingsystemmajrelease {
'7': {
$init_type = 'systemd'
$init_script = '/etc/systemd/system/supervisord.service'
$init_defaults = false
}
default: {
$init_type = 'init'
$init_script = '/etc/init.d/supervisord'
$init_defaults = '/etc/sysconfig/supervisord'
}
}
$executable_path = '/usr/bin'
}
}
}
'Suse': {
$init_type = 'init'
$init_defaults = '/etc/sysconfig/supervisor'
$init_script = '/etc/init.d/supervisord'
$unix_socket_group = 'nobody'
$install_init = true
$executable_path = '/usr/local/bin'
}
'Debian': {
case $::operatingsystem {
'Ubuntu': {
if versioncmp($::operatingsystemmajrelease, '15.10') > 0 {
$init_type = 'systemd'
$init_script = '/etc/systemd/system/supervisord.service'
$init_defaults = false
} else {
$init_type = 'init'
$init_script = '/etc/init.d/supervisord'
$init_defaults = '/etc/default/supervisor'
}
}
default: {
case $::operatingsystemmajrelease {
'8': {
$init_type = 'systemd'
$init_script = '/etc/systemd/system/supervisord.service'
$init_defaults = false
}
default: {
$init_type = 'init'
$init_script = '/etc/init.d/supervisord'
$init_defaults = '/etc/default/supervisor'
}
}
}
}
$unix_socket_group = 'nogroup'
$install_init = true
$executable_path = '/usr/local/bin'
$log_path_mode = '0755'
}
default: {
$init_defaults = false
$unix_socket_group = 'nogroup'
$install_init = false
$executable_path = '/usr/local/bin'
$log_path_mode = '0755'
}
}
$init_mode = $init_type ? {
'systemd' => '0644',
'init' => '0755',
default => '0755'
}
$init_script_template = "supervisord/init/${::osfamily}/${init_type}.erb"
$init_defaults_template = "supervisord/init/${::osfamily}/defaults.erb"
# default supervisord params
$package_ensure = 'installed'
$package_provider = 'pip'
$package_install_options = undef
$service_manage = true
$service_ensure = 'running'
$service_enable = true
$service_name = 'supervisord'
$service_restart = undef
$package_name = 'supervisor'
$executable = "${executable_path}/supervisord"
$executable_ctl = "${executable_path}/supervisorctl"
$scl_enabled = false
$scl_script = '/opt/rh/python27/enable'
$run_path = '/var/run'
$pid_file = 'supervisord.pid'
$log_path = '/var/log/supervisor'
$log_file = 'supervisord.log'
$logfile_maxbytes = '50MB'
$logfile_backups = '10'
$log_level = 'info'
$nodaemon = false
$minfds = '1024'
$minprocs = '200'
$umask = '022'
$manage_config = true
$config_include = '/etc/supervisor.d'
$config_file = '/etc/supervisord.conf'
$config_file_mode = '0644'
$setuptools_url = 'https://bootstrap.pypa.io/ez_setup.py'
$cfgreload_program = true
$cfgreload_fcgi_program = true
$cfgreload_eventlistener = true
$cfgreload_rpcinterface = true
$ctl_socket = 'unix'
$unix_socket = true
$unix_socket_file = 'supervisor.sock'
$unix_socket_mode = '0700'
$unix_socket_owner = 'nobody'
$unix_auth = false
$unix_username = undef
$unix_password = undef
$inet_server = false
$inet_server_hostname = '127.0.0.1'
$inet_server_port = '9001'
$inet_auth = false
$inet_username = undef
$inet_password = undef
$user = 'root'
$group = 'root'
}