puppet-magnum/manifests/conductor.pp
Michal Adamczyk e941ab51fa Various fixes
- correcting "host_ip" entry to be "host" entry for magnum.conf
- correcting "userid" to be "rabbit_userid" entry inside magnum.conf
- db sync function
- beaker tests are working on Ubuntu as well
- update metadata.json with new openstacklib version
- as we don't have a database parameters in main class we don't want to pickup values from it inside db class

Adding:
- client class with client package installation
- examples folder with example which works with Mitaka release
- spec for db_sync
- adding nodesets spec for CentOS 7.2
- adding class and spec for creating user and domain for trust setup: http://osdir.com/ml/openstack-dev/2016-02/msg02123.html
- class to configure cert_manager_type properties

Known issues:
- In CentOS/RDP cannot create magnum bay due to the neutron issues: https://bugs.launchpad.net/magnum/+bug/1575524
- Trust domain and trust domain user has to be set to ID, not a names. Bug reported to magnum devs: https://bugs.launchpad.net/puppet-magnum/+bug/1581372

Change-Id: Ib923f79da691b5c71bb1c4efba8935c774598888
2016-05-16 07:48:21 +00:00

63 lines
1.5 KiB
Puppet

# == Class: magnum::conductor
#
# Manages magnum conductor package and service
#
# === Parameters:
#
# [*enabled*]
# (optional) Whether to enable the magnum-conductor service
# Defaults to true
#
# [*manage_service*]
# (optional) Whether to start/stop the service
# Defaults to true
#
# [*package_ensure*]
# (optional) The state of the magnum conductor package
# Defaults to 'present'
#
# [*conductor_life_check_timeout*]
# (optional) RPC timeout for the conductor liveness check that is
# used for bay locking.
# Defaults to $::os_service_default
#
class magnum::conductor(
$enabled = true,
$manage_service = true,
$package_ensure = 'present',
$conductor_life_check_timeout = $::os_service_default,
) {
include ::magnum::db
include ::magnum::params
# Install package
Package['magnum-conductor'] -> Service['magnum-conductor']
package { 'magnum-conductor':
ensure => $package_ensure,
name => $::magnum::params::conductor_package,
tag => ['openstack', 'magnum-package']
}
if $manage_service {
if $enabled {
$service_ensure = 'running'
} else {
$service_ensure = 'stopped'
}
}
# Manage service
service { 'magnum-conductor':
ensure => $service_ensure,
name => $::magnum::params::conductor_package,
enable => $enabled,
hasstatus => true,
tag => ['magnum-service', 'magnum-db-sync-service'],
}
magnum_config {
'conductor/conductor_life_check_timeout': value => $conductor_life_check_timeout;
}
}