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
|
# File 'manifests/api.pp', line 1
class saltstack::api(
$manage_package = true,
$package_ensure = 'installed',
$manage_service = true,
$manage_docker_service = true,
$service_ensure = 'running',
$service_enable = true,
$port = '8000',
$host = undef,
$debug = false,
$ssl_crt = undef,
$ssl_key = undef,
$disable_ssl = undef,
$webhook_disable_auth = false,
$webhook_url = undef,
$thread_pool = '100',
$socket_queue_size = '30',
$expire_responses = false,
$max_request_body_size = '1048576',
$collect_stats = false,
$static = undef,
$static_path = undef,
$app = undef,
$app_path = undef,
$root_prefix = '/',
$generate_selfsigned_cert = true,
$rest_timeout = '7200',
) inherits saltstack::params {
case $::osfamily
{
'redhat':
{
case $::operatingsystemrelease
{
/^6.*$/: { fail("api is not unsupported for this OS - ${::osfamily}/${::operatingsystemrelease}") }
/^7.*$/: { }
default: { }
}
}
'Debian':
{
case $::operatingsystem
{
'Ubuntu':
{
case $::operatingsystemrelease
{
/^14.*$/: { fail("api is not unsupported for this OS - ${::osfamily}/${::operatingsystemrelease}") }
/^16.*$/: { }
/^18.*$/: { }
default: { }
}
}
default: { }
}
}
default: { }
}
include ::saltstack::master
Class['::saltstack::master'] ->
class { '::saltstack::api::install': } ->
class { '::saltstack::api::config': } ~>
class { '::saltstack::api::service': } ->
Class['::saltstack::api']
}
|