Puppet Class: profile::openstack::base::observerenv

Defined in:
modules/profile/manifests/openstack/base/observerenv.pp

Overview

Access credentials for the keystone 'novaobserver' account

Parameters:

  • region (String) (defaults to: lookup('profile::openstack::base::region'))
  • keystone_api_fqdn (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::base::keystone_api_fqdn'))
  • observer_user (String) (defaults to: lookup('profile::openstack::base::observer_user'))
  • observer_password (String) (defaults to: lookup('profile::openstack::base::observer_password'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/profile/manifests/openstack/base/observerenv.pp', line 2

class profile::openstack::base::observerenv(
    String       $region            = lookup('profile::openstack::base::region'),
    Stdlib::Fqdn $keystone_api_fqdn = lookup('profile::openstack::base::keystone_api_fqdn'),
    String       $observer_user     = lookup('profile::openstack::base::observer_user'),
    String       $observer_password = lookup('profile::openstack::base::observer_password'),
  ) {

    # Keystone credentials for novaobserver
    file { '/etc/novaobserver.yaml':
        content => template('profile/openstack/base/novaobserver/novaobserver.yaml.erb'),
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
    }

    file { '/usr/local/bin/observerenv.sh':
        source => 'puppet:///modules/profile/openstack/base/novaobserver/observerenv.sh',
        mode   => '0555',
        owner  => 'root',
        group  => 'root',
    }
}