Remove devstack_host puppet module
The spec: http://specs.openstack.org/openstack-infra/infra-specs/specs/puppet-modules.html Change-Id: Ie6dc7a8e745b9446c0ecc7d56cafd17b49c060a6
This commit is contained in:
parent
28763cb29b
commit
535b56d663
@ -1,4 +0,0 @@
|
||||
# This file is managed by puppet
|
||||
# Use localhost in the node name so that we don't need to
|
||||
# touch /etc/hosts or use dns
|
||||
NODENAME=rabbit@localhost
|
@ -1,41 +0,0 @@
|
||||
# == 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
|
Loading…
x
Reference in New Issue
Block a user