1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'modules/profile/manifests/toolforge/disable_tool.pp', line 1
class profile::toolforge::disable_tool (
Hash $ldap_config = lookup('ldap', Hash, hash, {}),
String $novaadmin_bind_dn = lookup('profile::openstack::base::ldap_user_dn'),
String $novaadmin_bind_pass = lookup('profile::openstack::eqiad1::ldap_user_pass')
) {
$ldap_uri = "ldap://${ldap_config['rw-server']}:389"
file { '/etc/disable_tool.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0500',
content => template('profile/toolforge/disable_tool.conf.erb'),
}
git::clone { 'cloud/toolforge/disable-tool':
ensure => latest,
directory => '/srv/disable-tool',
}
}
|