28 lines
665 B
Puppet
28 lines
665 B
Puppet
class opendaylight::quagga (
|
|
){
|
|
|
|
firewall {'215 quagga':
|
|
dport => 179,
|
|
proto => 'tcp',
|
|
action => 'accept',
|
|
}
|
|
|
|
package { ['opnfv-quagga', 'libcapnp-0.5.99', 'python-pycapnp', 'python-thriftpy']:
|
|
ensure => installed,
|
|
}
|
|
service {'opnfv-quagga':
|
|
ensure => running
|
|
}
|
|
|
|
$config_path = '/usr/lib/quagga/qthrift/bgpd.conf'
|
|
ini_setting { 'bgp_password':
|
|
ensure => present,
|
|
setting => 'password',
|
|
value => 'sdncbgpc',
|
|
path => $config_path,
|
|
key_val_separator => ' ',
|
|
require => Package['opnfv-quagga'],
|
|
notify => Service['opnfv-quagga']
|
|
}
|
|
}
|