Puppet Class: profile::toolforge::mark_tool
- Defined in:
- modules/profile/manifests/toolforge/mark_tool.pp
Overview
mark_tool is a simple script for marking a tool as disabled, deleted, or enabledin ldap.
Installing this in cloudcontrol nodes because that's a safe place to keep the global ldap
password.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'modules/profile/manifests/toolforge/mark_tool.pp', line 6
class profile::toolforge::mark_tool (
Hash $ldap_config = lookup('ldap'),
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/mark_tool.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0500',
content => template('profile/toolforge/mark_tool.conf.erb'),
}
file { '/usr/local/bin/mark_tool':
ensure => file,
owner => 'root',
group => 'root',
mode => '0500',
source => 'puppet:///modules/profile/toolforge/mark_tool.py',
}
}
|