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 <rski@intracom-telecom.com>
This commit is contained in:
Romanos Skiadas 2016-08-30 14:10:56 +03:00 committed by Romanos Skiadas
parent 0ff4ebdbfe
commit 694ec577fb
1 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,7 @@
class opendaylight::quagga ( class opendaylight::quagga (
){ ){
package { ['opnfv-quagga', 'libcapnp-0.5.99', 'python-pycapnp', 'python-thriftpy']: package { ['opnfv-quagga', 'libcapnp-0.5.99', 'python-pycapnp', 'python-thriftpy']:
ensure => installed, ensure => installed,
} }
service {'opnfv-quagga': service {'opnfv-quagga':
ensure => running ensure => running
@ -9,11 +9,12 @@ class opendaylight::quagga (
$config_path = '/usr/lib/quagga/qthrift/bgpd.conf' $config_path = '/usr/lib/quagga/qthrift/bgpd.conf'
ini_setting { 'bgp_password': ini_setting { 'bgp_password':
ensure => present, ensure => present,
setting => 'password', setting => 'password',
value => 'sdncbgpc', value => 'sdncbgpc',
path => $config_path, path => $config_path,
require => Package['opnfv-quagga'], key_val_separator => ' ',
notify => Service['opnfv-quagga'] require => Package['opnfv-quagga'],
notify => Service['opnfv-quagga']
} }
} }