puppet-openstack-integration/manifests/ironic.pp
Emilien Macchi fcb6d4cf79 Bump to RDO trunk and update Ironic deployment
* Update RDO trunk URL to test latest Glance & Ironic that contains
  important changes.
* Make sure RabbitMQ resources are ready before starting Ironic.

Change-Id: Idd2d8bcb63b5c1b6c8a08731ec31eb124a6a4b99
2016-03-02 12:36:25 -05:00

45 lines
1.4 KiB
Puppet

class openstack_integration::ironic {
include ::openstack_integration::config
rabbitmq_user { 'ironic':
admin => true,
password => 'an_even_bigger_secret',
provider => 'rabbitmqctl',
require => Class['::rabbitmq'],
}
rabbitmq_user_permissions { 'ironic@/':
configure_permission => '.*',
write_permission => '.*',
read_permission => '.*',
provider => 'rabbitmqctl',
require => Class['::rabbitmq'],
}
class { '::ironic':
rabbit_userid => 'ironic',
rabbit_password => 'an_even_bigger_secret',
rabbit_host => $::openstack_integration::config::rabbit_host,
rabbit_port => $::openstack_integration::config::rabbit_port,
rabbit_use_ssl => $::openstack_integration::config::ssl,
database_connection => 'mysql+pymysql://ironic:ironic@127.0.0.1/ironic?charset=utf8',
debug => true,
verbose => true,
enabled_drivers => ['fake', 'pxe_ssh', 'pxe_ipmitool'],
}
class { '::ironic::db::mysql':
password => 'ironic',
}
class { '::ironic::keystone::auth':
password => 'a_big_secret',
}
class { '::ironic::client': }
class { '::ironic::api':
admin_password => 'a_big_secret',
workers => '2',
}
class { '::ironic::conductor': }
Rabbitmq_user_permissions['ironic@/'] -> Service<| tag == 'ironic-service' |>
}