diff --git a/deployment_scripts/puppet/manifests/override_configuration.pp b/deployment_scripts/puppet/manifests/override_configuration.pp new file mode 100644 index 0000000..fdc159e --- /dev/null +++ b/deployment_scripts/puppet/manifests/override_configuration.pp @@ -0,0 +1,10 @@ +notice('zabbix_monitoring/override_configuration') + +file { '/etc/hiera/plugins/zabbix_monitoring.yaml': + ensure => present, + content => template('plugin_zabbix/config_override.erb'), + owner => root, + group => root, + mode => '0644', +} + diff --git a/deployment_scripts/puppet/modules/plugin_zabbix/templates/config_override.erb b/deployment_scripts/puppet/modules/plugin_zabbix/templates/config_override.erb new file mode 100644 index 0000000..a46a62d --- /dev/null +++ b/deployment_scripts/puppet/modules/plugin_zabbix/templates/config_override.erb @@ -0,0 +1,5 @@ +--- +network_metadata: + vips: + zbx_vip_mgmt: + namespace: zabbix diff --git a/deployment_tasks.yaml b/deployment_tasks.yaml index fc69516..585de79 100644 --- a/deployment_tasks.yaml +++ b/deployment_tasks.yaml @@ -100,3 +100,15 @@ timeout: 300 reexecute_on: - deploy_changes + +- id: zbx-override-configuration + type: puppet + version: 2.0.0 + # Zabbix deployment start at post_deploy stage only + requires: [upload_configuration] + required_for: [globals] + role: '*' + parameters: + puppet_manifest: puppet/manifests/override_configuration.pp + puppet_modules: puppet/modules:/etc/puppet/modules + timeout: 120