system-config/manifests/openstack.pp
Clark Boylan f08b681b76 Add clarkb to base openstack host.
Add the clarkb localuser to the base openstack host so that clarkb
can log into things. Particularly important for troubleshooting
issues.

Change-Id: I3f157999e11579de49390dad6e83f1f029976df0
2012-07-05 09:26:29 -07:00

74 lines
1.7 KiB
Puppet

import "users"
#
# Abstract classes:
#
class openstack_base {
include openstack_project::users
include sudoers
file { '/etc/profile.d/Z98-byobu.sh':
ensure => 'absent'
}
package { "popularity-contest":
ensure => purged
}
$packages = ["puppet",
"git",
"python-setuptools",
"python-virtualenv",
"python-software-properties",
"bzr",
"byobu",
"emacs23-nox"]
package { $packages: ensure => "present" }
realize (
User::Virtual::Localuser["mordred"],
User::Virtual::Localuser["corvus"],
User::Virtual::Localuser["soren"],
User::Virtual::Localuser["linuxjedi"],
User::Virtual::Localuser["devananda"],
User::Virtual::Localuser["clarkb"],
)
}
# A template host with no running services
class openstack_template ($iptables_public_tcp_ports) {
include openstack_base
include ssh
include snmpd
include apt::unattended-upgrades
class { 'iptables':
public_tcp_ports => $iptables_public_tcp_ports,
}
package { "ntp":
ensure => installed
}
service { 'ntpd':
name => 'ntp',
ensure => running,
enable => true,
hasrestart => true,
require => Package['ntp'],
}
}
# A server that we expect to run for some time
class openstack_server ($iptables_public_tcp_ports) {
class { 'openstack_template':
iptables_public_tcp_ports => $iptables_public_tcp_ports
}
class { 'exim':
sysadmin => ['corvus@inaugust.com',
'mordred@inaugust.com',
'andrew@linuxjedi.co.uk',
'devananda.vdv@gmail.com',
'clark.boylan@gmail.com']
}
}