Allow dynamic alarm and notification bootstrapping
Change-Id: I10d1e0ab7a7c88b29fd05fbf4173317ac96434c9
This commit is contained in:
parent
b988e01a44
commit
ab26276973
|
@ -5,13 +5,13 @@
|
||||||
# === Parameters:
|
# === Parameters:
|
||||||
#
|
#
|
||||||
# [*alarm_definition_config_source*]
|
# [*alarm_definition_config_source*]
|
||||||
# location of alarm definitions to bootstrap in mysql database
|
# location of alarm definitions template to bootstrap in mysql database
|
||||||
#
|
#
|
||||||
# [*notification_config_source*]
|
# [*notification_config_source*]
|
||||||
# location of notification methods to bootstrap in mysql database
|
# location of notification methods template to bootstrap in mysql database
|
||||||
#
|
#
|
||||||
# [*notification_assignments_source*]
|
# [*notification_assignments_source*]
|
||||||
# location of notification assignments to bootstrap in mysql database
|
# location of notification assignments template to bootstrap in mysql database
|
||||||
#
|
#
|
||||||
# [*admin_username*]
|
# [*admin_username*]
|
||||||
# name of the monasca admin user
|
# name of the monasca admin user
|
||||||
|
@ -38,9 +38,9 @@
|
||||||
# flag for whether or not to ensure/update python dependencies
|
# flag for whether or not to ensure/update python dependencies
|
||||||
#
|
#
|
||||||
class monasca::alarmdefs(
|
class monasca::alarmdefs(
|
||||||
$alarm_definition_config_source = 'puppet:///modules/monasca/alarm_definition_config.json',
|
$alarm_definition_config_source = 'monasca/alarm_definition_config.json.erb',
|
||||||
$notification_config_source = 'puppet:///modules/monasca/notification_config.json',
|
$notification_config_source = 'monasca/notification_config.json.erb',
|
||||||
$notification_assignments_source = 'puppet:///modules/monasca/notification_assignments.json',
|
$notification_assignments_source = 'monasca/notification_assignments.json.erb',
|
||||||
$admin_username = 'monasca-admin',
|
$admin_username = 'monasca-admin',
|
||||||
$admin_password = undef,
|
$admin_password = undef,
|
||||||
$api_server_url = undef,
|
$api_server_url = undef,
|
||||||
|
@ -88,7 +88,7 @@ class monasca::alarmdefs(
|
||||||
|
|
||||||
file { $alarm_definition_config:
|
file { $alarm_definition_config:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
source => $alarm_definition_config_source,
|
content => template($alarm_definition_config_source),
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
|
@ -96,7 +96,7 @@ class monasca::alarmdefs(
|
||||||
|
|
||||||
file { $notification_config:
|
file { $notification_config:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
source => $notification_config_source,
|
content => template($notification_config_source),
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
|
@ -104,7 +104,7 @@ class monasca::alarmdefs(
|
||||||
|
|
||||||
file { $notification_assignments:
|
file { $notification_assignments:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
source => $notification_assignments_source,
|
content => template($notification_assignments_source),
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
|
|
Loading…
Reference in New Issue