system-config/modules/devstack_host/manifests/init.pp
James E. Blair ae0f98e0cd Use unattended upgrades.
Stop using latest for packages installed by puppet.  This way,
all system packages get updated, not just some random ones.

The unattended-upgrades config will email root.  It is configured
for openstack servers and jenkins slaves, but not template hosts
so that it doesn't interfere with spin-up.

Also, fix some bits in the gerrit module that were causing
continuous restarts on gerrit-dev.

Install emacs.

Change-Id: I51c9083ccd3669f284fce4b50c36a37a0cac92d8
2012-06-05 22:59:46 +00:00

42 lines
923 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['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",
}
}