Puppet Class: choria
- Defined in:
- manifests/init.pp
Overview
Installs, configures and manages the Choria Orchestrator
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 |
# File 'manifests/init.pp', line 40
class choria (
Boolean $manage_package,
Boolean $manage_service,
Boolean $manage_package_repo ,
Boolean $nightly_repo,
Enum["present", "absent"] $ensure,
String $version,
Enum[debug, info, warn, error, fatal] $log_level,
Optional[String] $srvdomain,
Stdlib::Absolutepath $broker_config_file,
Stdlib::Absolutepath $server_config_file,
Stdlib::Absolutepath $server_provisioning_token_file,
Optional[String] $server_provisioning_token,
Boolean $manage_server_config,
Stdlib::Absolutepath $logfile,
Optional[Stdlib::Absolutepath] $statusfile,
Integer $status_write_interval,
Stdlib::Absolutepath $rubypath,
String $package_name,
String $broker_service_name,
String $server_service_name,
Boolean $server_service_enable,
String $identity,
Boolean $server,
Hash $server_config,
Optional[String] $config_user,
Optional[String] $config_group,
Boolean $purge_machines = true,
Hash $scout_overrides = {},
Hash[String, String] $scout_annotations = {},
Choria::ScoutChecks $scout_checks = {},
Choria::ScoutMetrics $scout_metrics = {},
Choria::GossFiles $scout_gossfile = {},
Enum[debug, info, warn, error, fatal] $broker_log_level = $log_level,
Enum[debug, info, warn, error, fatal] $server_log_level = $log_level,
Stdlib::Absolutepath $broker_logfile = $logfile,
Stdlib::Absolutepath $server_logfile = $logfile,
Boolean $manage_mcollective = true,
Choria::KVBuckets $kv_buckets = {},
Choria::Governors $governors = {},
Optional[String] $package_source = undef,
) {
if $manage_package_repo {
class{"choria::repo":
nightly => $nightly_repo,
ensure => $ensure,
before => Class["choria::install"]
}
}
class{"choria::install": }
-> class{"choria::config": }
-> class{"choria::scout_checks": }
# We use a different class to disable choria service than enable it
# to help the discovery system find machines where the service is actually
# running vs those with it off - it searches on all machines with class
# choria::service so this facilitates client oly installs by setting server false
if $server {
class{"choria::service":
require => Class["choria::scout_checks"]
}
contain choria::service
} else {
class{"choria::service_disable":
require => Class["choria::scout_checks"]
}
contain choria::service_disable
}
if $manage_mcollective {
include mcollective
}
contain choria::install
contain choria::scout_checks
contain choria::scout_metrics
contain choria::kv_buckets
contain choria::governors
}
|