Puppet Class: openstack::util::envscripts

Defined in:
modules/openstack/manifests/util/envscripts.pp

Overview

Scripts to set up shell environment for openstack commandline

Parameters:

  • ldap_user_pass (Any)
  • keystone_api_fqdn (Any)
  • region (Any)
  • nova_db_pass (Any)
  • wmflabsdotorg_admin (Any)
  • wmflabsdotorg_pass (Any)
  • wmflabsdotorg_project (Any)


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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'modules/openstack/manifests/util/envscripts.pp', line 2

class openstack::util::envscripts(
    $ldap_user_pass,
    $keystone_api_fqdn,
    $region,
    $nova_db_pass,
    $wmflabsdotorg_admin,
    $wmflabsdotorg_pass,
    $wmflabsdotorg_project,
    ) {

    # Keystone credentials for novaadmin
    file { '/etc/novaadmin.yaml':
        content => template('openstack/util/novaadmin.yaml.erb'),
        mode    => '0440',
        owner   => 'root',
        group   => 'root',
    }

    # Handy script to set up environment for commandline nova magic
    file { '/root/novaenv.sh':
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
        source  => 'puppet:///modules/openstack/util/novaenv.sh',
        require => File['/etc/novaadmin.yaml'],
    }

    # Handy script to set up environment for commandline glance magic
    # TODO: convert to yaml + wrapper script
    file { '/root/wmflabsorg-domainadminenv.sh':
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
        content => template('openstack/util/wmflabsorg-domainadminenv.sh.erb'),
    }

    # Config for region-migrate.conf
    file { '/root/region-migrate.conf':
        ensure  => 'present',
        owner   => 'root',
        group   => 'root',
        mode    => '0500',
        content => template('openstack/util/region-migrate.conf.erb'),
    }
}