From 694ec577fb5c397e22b95887e0889b482aa69db8 Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Tue, 30 Aug 2016 14:10:56 +0300 Subject: [PATCH] Fix setting bgpd password with puppet The bgpd.conf file created by puppet was malformed, due to using the default key_val_seperator '=' which is wrong. This commit makes the ini_setting resource use the right separator for quagga, which is a space. Change-Id: I9dd1cf17f9056ec63d42ac254ffb6f6a1884873b Signed-off-by: Romanos Skiadas --- .../modules/opendaylight/manifests/quagga.pp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/deployment_scripts/puppet/modules/opendaylight/manifests/quagga.pp b/deployment_scripts/puppet/modules/opendaylight/manifests/quagga.pp index 0a76bc8..abcb604 100644 --- a/deployment_scripts/puppet/modules/opendaylight/manifests/quagga.pp +++ b/deployment_scripts/puppet/modules/opendaylight/manifests/quagga.pp @@ -1,7 +1,7 @@ class opendaylight::quagga ( ){ package { ['opnfv-quagga', 'libcapnp-0.5.99', 'python-pycapnp', 'python-thriftpy']: - ensure => installed, + ensure => installed, } service {'opnfv-quagga': ensure => running @@ -9,11 +9,12 @@ class opendaylight::quagga ( $config_path = '/usr/lib/quagga/qthrift/bgpd.conf' ini_setting { 'bgp_password': - ensure => present, - setting => 'password', - value => 'sdncbgpc', - path => $config_path, - require => Package['opnfv-quagga'], - notify => Service['opnfv-quagga'] + ensure => present, + setting => 'password', + value => 'sdncbgpc', + path => $config_path, + key_val_separator => ' ', + require => Package['opnfv-quagga'], + notify => Service['opnfv-quagga'] } }