system-config/modules/devstack_host/manifests/init.pp
Paul Belanger 57d13bacfd Additional puppet-lint reformatting
Change-Id: I49e63755b8b5bf60673cf37b62371b3f299e3bbe
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/14971
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-10-29 19:21:24 +00:00

40 lines
965 B
Puppet

# A machine ready to run devstack
class devstack_host {
package { 'linux-headers-virtual':
ensure => present,
}
package { 'mysql-server':
ensure => present,
}
package { 'rabbitmq-server':
ensure => present,
require => File['/etc/rabbitmq/rabbitmq-env.conf'],
}
file { '/etc/rabbitmq':
ensure => directory,
}
file { '/etc/rabbitmq/rabbitmq-env.conf':
ensure => present,
group => 'root',
mode => '0444',
owner => 'root',
require => File['/etc/rabbitmq'],
source => 'puppet:///modules/devstack_host/rabbitmq-env.conf',
}
# TODO: We should be using existing mysql functions do this.
exec { 'Set MySQL server root password':
command => 'mysqladmin -uroot password secret',
path => '/bin:/usr/bin',
refreshonly => true,
subscribe => Package['mysql-server'],
unless => 'mysqladmin -uroot -psecret status',
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79