Puppet Class: profile::toolforge::disable_tool

Defined in:
modules/profile/manifests/toolforge/disable_tool.pp

Overview

Parameters:

  • ldap_config (Hash) (defaults to: lookup('ldap', Hash, hash, {}))
  • novaadmin_bind_dn (String) (defaults to: lookup('profile::openstack::base::ldap_user_dn'))
  • novaadmin_bind_pass (String) (defaults to: lookup('profile::openstack::eqiad1::ldap_user_pass'))


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',
    }
}