1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'manifests/admin_client.pp', line 1
class pulp::admin_client($ensure = 'present', $server = $fqdn, $conf_template = '') {
package { [ 'pulp-admin-client',
'pulp-puppet-admin-extensions',
'pulp-rpm-admin-extensions']:
ensure => $ensure
}
# For the template
$pulp_server = $server
if $conf_template == '' {
$template = 'pulp/admin.conf.erb'
} else {
$template = $conf_template
}
if $ensure == 'absent' {
file { '/etc/pulp/admin/admin.conf':
ensure => 'absent'
}
} else {
file { '/etc/pulp/admin/admin.conf':
ensure => 'present',
content => template($template)
}
}
}
|