Skip to content
Snippets Groups Projects
Commit c8ef16d3 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

add another class

parent fb5c269d
No related branches found
No related tags found
No related merge requests found
# $name is the distro
define su_debuild::pbuilder_conf(
$distribution = undef,
$debian_type = undef,
$include_stanford_keyring = true,
) {
if ($include_stanford_keyring) {
$conf_file_path = "/etc/pbuilder/${distribution}"
} else {
$conf_file_path = "/etc/pbuilder/${distribution}-no-stanford-keyring"
}
case $debian_type {
'debian': {
if ($distribution == 'sid') {
$erb_file_path = 'su_debuild/etc/pbuilder/sid.erb'
} else {
$erb_file_path = 'su_debuild/etc/pbuilder/debian.erb'
}
}
'ubuntu': {
$erb_file_path = 'su_debuild/etc/pbuilder/ubuntu.erb'
}
default: {
crit("do not understand '${debian_type}'")
}
}
if ($distribution == 'sid') {
file { $conf_file_path:
content => template($erb_file_path),
require => Package['pbuilder'],
}
} else {
file { $conf_file_path:
content => template($erb_file_path),
require => Package['pbuilder'],
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment