Puppet Class: saltstack::api

Inherits:
saltstack::params
Inherited by:
saltstack::api::config
saltstack::api::install
saltstack::api::service
Defined in:
manifests/api.pp

Overview

Parameters:

  • manage_package (Any) (defaults to: true)
  • package_ensure (Any) (defaults to: 'installed')
  • manage_service (Any) (defaults to: true)
  • manage_docker_service (Any) (defaults to: true)
  • service_ensure (Any) (defaults to: 'running')
  • service_enable (Any) (defaults to: true)
  • port (Any) (defaults to: '8000')
  • host (Any) (defaults to: undef)
  • debug (Any) (defaults to: false)
  • ssl_crt (Any) (defaults to: undef)
  • ssl_key (Any) (defaults to: undef)
  • disable_ssl (Any) (defaults to: undef)
  • webhook_disable_auth (Any) (defaults to: false)
  • webhook_url (Any) (defaults to: undef)
  • thread_pool (Any) (defaults to: '100')
  • socket_queue_size (Any) (defaults to: '30')
  • expire_responses (Any) (defaults to: false)
  • max_request_body_size (Any) (defaults to: '1048576')
  • collect_stats (Any) (defaults to: false)
  • static (Any) (defaults to: undef)
  • static_path (Any) (defaults to: undef)
  • app (Any) (defaults to: undef)
  • app_path (Any) (defaults to: undef)
  • root_prefix (Any) (defaults to: '/')
  • generate_selfsigned_cert (Any) (defaults to: true)
  • rest_timeout (Any) (defaults to: '7200')


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']
}