system-config/modules/devstack_host/manifests/init.pp
Matthew Wagoner 5812510ea7 Clean up of minor puppet-lint warnings.
Mostly documentation and parameterised class parameter complaints.

Change-Id: Idbfd348a5befb041ce6eb36f9c6b195fc0c6799f
Reviewed-on: https://review.openstack.org/16685
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-23 21:41:37 +00:00

42 lines
994 B
Puppet

# == Class: devstack_host
#
# 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