system-config/modules/devstack_host/manifests/init.pp
James E. Blair d7b7c463d1 Add linux-headers-virtual to devstack hosts.
This is so that dkms modules can build.

Change-Id: I70e6ced8d89c0c4d005870925484ea6354b36ed9
2012-02-10 11:24:23 -08:00

42 lines
926 B
Puppet

# A machine ready to run devstack
class devstack_host {
package { "linux-headers-virtual":
ensure => "latest",
}
package { "mysql-server":
ensure => "latest",
}
package { "rabbitmq-server":
ensure => "latest",
require => File['rabbitmq-env.conf'],
}
file { "/etc/rabbitmq":
ensure => "directory",
}
file { 'rabbitmq-env.conf':
name => '/etc/rabbitmq/rabbitmq-env.conf',
owner => 'root',
group => 'root',
mode => 444,
ensure => 'present',
source => [
"puppet:///modules/devstack_host/rabbitmq-env.conf",
],
require => File['/etc/rabbitmq'],
}
exec { "Set MySQL server root password":
subscribe => [ Package["mysql-server"]],
refreshonly => true,
unless => "mysqladmin -uroot -psecret status",
path => "/bin:/usr/bin",
command => "mysqladmin -uroot password secret",
}
}