261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378 
       | 
      
        # File 'manifests/init.pp', line 261
class st2(
  $version                    = 'present',
  String  $python_version     = 'system',
  St2::Repository $repository = $st2::params::repository,
  $conf_dir                   = $st2::params::conf_dir,
  $conf_file                  = "${st2::params::conf_dir}/st2.conf",
  $use_ssl                    = $st2::params::use_ssl,
  $ssl_cert_manage            = true,
  $ssl_dir                    = $st2::params::ssl_dir,
  $ssl_cert                   = $st2::params::ssl_cert,
  $ssl_key                    = $st2::params::ssl_key,
  $auth                       = true,
  $auth_api_url               = "http://${st2::params::hostname}:${st2::params::api_port}",
  $auth_debug                 = false,
  $auth_mode                  = $st2::params::auth_mode,
  $auth_backend               = $st2::params::auth_backend,
  $auth_backend_config        = $st2::params::auth_backend_config,
  $cli_base_url               = "http://${st2::params::hostname}",
  $cli_api_version            = 'v1',
  $cli_debug                  = false,
  $cli_cache_token            = true,
  $cli_silence_ssl_warnings   = false,
  $cli_username               = $st2::params::admin_username,
  $cli_password               = $st2::params::admin_password,
  $cli_apikey                 = undef,
  $cli_api_url                = "http://${st2::params::hostname}:${st2::params::api_port}",
  $cli_auth_url               = "http://${st2::params::hostname}:${st2::params::auth_port}",
  $actionrunner_workers       = $st2::params::actionrunner_workers,
  $packs                      = {},
  $packs_group                = $st2::params::packs_group_name,
  $index_url                  = undef,
  $syslog                     = false,
  $syslog_host                = 'localhost',
  $syslog_protocol            = 'udp',
  $syslog_port                = 514,
  $syslog_facility            = 'local7',
  $ssh_key_location           = '/home/stanley/.ssh/st2_stanley_key',
  $db_host                    = $st2::params::hostname,
  $db_port                    = $st2::params::mongodb_port,
  $db_bind_ips                = $st2::params::mongodb_bind_ips,
  $db_name                    = $st2::params::mongodb_st2_db,
  $db_username                = $st2::params::mongodb_st2_username,
  $db_password                = $st2::params::admin_password,
  $mongodb_version            = undef,
  $mongodb_manage_repo        = true,
  $mongodb_auth               = true,
  $ng_init                    = true,
  $datastore_keys_dir         = $st2::params::datstore_keys_dir,
  $datastore_key_path         = "${st2::params::datstore_keys_dir}/datastore_key.json",
  $nginx_basicstatus_enabled  = $st2::params::basicstatus_enabled,
  $nginx_basicstatus_port     = $st2::params::basicstatus_port,
  $nginx_manage_repo          = true,
  $nginx_client_max_body_size = $st2::params::nginx_client_max_body_size,
  $nginx_ssl_ciphers          = $st2::params::nginx_ssl_ciphers,
  $nginx_ssl_port             = $st2::params::nginx_ssl_port,
  $nginx_ssl_protocols        = $st2::params::nginx_ssl_protocols,
  $web_root                   = $st2::params::web_root,
  $rabbitmq_username          = $st2::params::rabbitmq_username,
  $rabbitmq_password          = $st2::params::rabbitmq_password,
  $rabbitmq_hostname          = $st2::params::rabbitmq_hostname,
  $rabbitmq_port              = $st2::params::rabbitmq_port,
  $rabbitmq_bind_ip           = $st2::params::rabbitmq_bind_ip,
  $rabbitmq_vhost             = $st2::params::rabbitmq_vhost,
  $erlang_url                 = $st2::params::erlang_url,
  $erlang_key                 = $st2::params::erlang_key,
  $erlang_key_id              = $st2::params::erlang_key_id,
  $erlang_key_source          = $st2::params::erlang_key_source,
  $erlang_packages            = $st2::params::erlang_packages,
  $erlang_rhel_sslcacert_location = $st2::params::erlang_rhel_sslcacert_location,
  $erlang_rhel_sslverify      = $st2::params::erlang_rhel_sslverify,
  $erlang_rhel_gpgcheck       = $st2::params::erlang_rhel_gpgcheck,
  $erlang_rhel_repo_gpgcheck  = $st2::params::erlang_rhel_repo_gpgcheck,
  $redis_bind_ip              = $st2::params::redis_bind_ip,
  $redis_hostname             = $st2::params::redis_hostname,
  $redis_port                 = $st2::params::redis_port,
  $redis_password             = $st2::params::redis_password,
  $timersengine_enabled       = $st2::params::timersengine_enabled,
  $timersengine_timezone      = $st2::params::timersengine_timezone,
  $scheduler_sleep_interval   = $st2::params::scheduler_sleep_interval,
  $scheduler_gc_interval      = $st2::params::scheduler_gc_interval,
  $scheduler_pool_size        = $st2::params::scheduler_pool_size,
  $chatops_adapter            = $st2::params::chatops_adapter,
  $chatops_adapter_conf       = $st2::params::chatops_adapter_conf,
  $chatops_hubot_log_level              = $st2::params::hubot_log_level,
  $chatops_hubot_express_port           = $st2::params::hubot_express_port,
  $chatops_tls_cert_reject_unauthorized = $st2::params::tls_cert_reject_unauthorized,
  $chatops_hubot_name                   = $st2::params::hubot_name,
  $chatops_hubot_alias                  = $st2::params::hubot_alias,
  $chatops_api_key                      = undef,
  $chatops_st2_hostname                 = $st2::params::hostname,
  $chatops_api_url                      = "https://${st2::params::hostname}/api",
  $chatops_auth_url                     = "https://${st2::params::hostname}/auth",
  $chatops_web_url                      = undef,
  $nodejs_version             = undef,
  $nodejs_manage_repo         = true,
  $workflowengine_num         = $st2::params::workflowengine_num,
  $scheduler_num              = $st2::params::scheduler_num,
  $rulesengine_num            = $st2::params::rulesengine_num,
  $notifier_num               = $st2::params::notifier_num,
  $metrics_include            = $st2::params::metrics_include,
  $metric_driver              = $st2::params::metric_driver,
  $metric_host                = $st2::params::metric_host,
  $metric_port                = $st2::params::metric_port,
  $validate_output_schema     = $st2::params::validate_output_schema,
) inherits st2::params {
  ########################################
  ## Control commands
  exec {'/usr/bin/st2ctl reload --register-all':
    tag         => 'st2::reload',
    refreshonly => true,
  }
  exec {'/usr/bin/st2ctl reload --register-configs':
    tag         => 'st2::register-configs',
    refreshonly => true,
  }
}
       |