Added def for burrow and for adding ppas.

This commit is contained in:
Monty Taylor 2011-07-16 16:24:14 -04:00
parent ec2feb7671
commit 5f291e445b
2 changed files with 36 additions and 0 deletions

9
manifests/burrow.pp Normal file
View File

@ -0,0 +1,9 @@
import "openstack_ci_admins_users"
import "static_users"
import "jenkins_slave"
node default {
include openstack_ci_admins_users
include static_users
include jenkins_slave
}

27
manifests/ppa.pp Normal file
View File

@ -0,0 +1,27 @@
define ppa($ensure = present) {
case $ensure {
present: {
exec { "Add $name PPA":
path => "/bin:/usr/bin",
environment => "HOME=/root",
command => "add-apt-repository $name",
user => "root",
group => "root",
logoutput => on_failure,
}
}
absent: {
exec { "Add $name PPA":
path => "/bin:/usr/bin",
environment => "HOME=/root",
command => "add-apt-repository --remove $name",
user => "root",
group => "root",
logoutput => on_failure,
}
}
default: {
fail "Invalid 'ensure' value '$ensure' for ppa"
}
}
}