Added def for burrow and for adding ppas.
This commit is contained in:
parent
ec2feb7671
commit
5f291e445b
9
manifests/burrow.pp
Normal file
9
manifests/burrow.pp
Normal 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
27
manifests/ppa.pp
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user