39 lines
904 B
Puppet
39 lines
904 B
Puppet
class openstack_tasks::roles::controller {
|
|
|
|
notice('MODULAR: roles/controller.pp')
|
|
|
|
$primary_controller = hiera('primary_controller')
|
|
|
|
if $primary_controller {
|
|
package { 'cirros-testvm' :
|
|
ensure => 'installed',
|
|
name => 'cirros-testvm',
|
|
}
|
|
|
|
# create m1.micro flavor for OSTF
|
|
include ::osnailyfacter::wait_for_keystone_backends
|
|
class { '::osnailyfacter::wait_for_nova_backends':
|
|
backends => ['nova-api']
|
|
}
|
|
|
|
nova_flavor { 'm1.micro':
|
|
ensure => present,
|
|
ram => 64,
|
|
disk => 0,
|
|
vcpus => 1,
|
|
}
|
|
|
|
Class['::osnailyfacter::wait_for_keystone_backends'] ->
|
|
Class['::osnailyfacter::wait_for_nova_backends'] ->
|
|
Nova_flavor['m1.micro']
|
|
}
|
|
|
|
Exec { logoutput => true }
|
|
|
|
# BP https://blueprints.launchpad.net/mos/+spec/include-openstackclient
|
|
package { 'python-openstackclient' :
|
|
ensure => installed,
|
|
}
|
|
|
|
}
|