Puppet Class: kickstack::neutron::server

Inherits:
kickstack
Defined in:
manifests/neutron/server.pp

Overview



1
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
# File 'manifests/neutron/server.pp', line 1

class kickstack::neutron::server inherits kickstack {

  include kickstack::neutron::config
  include pwgen

  $service_password = pick(getvar("${fact_prefix}neutron_keystone_password"),pwgen())
  $keystone_internal_address = getvar("${fact_prefix}keystone_internal_address")

  class { '::neutron::server':
    auth_tenant   => $kickstack::keystone_service_tenant,
    auth_user     => 'neutron',
    auth_password => $service_password,
    auth_host     => $keystone_internal_address,
    package_ensure => $::kickstack::package_version,
  }

  kickstack::endpoint { 'neutron':
    service_password => $service_password,
    require       => Class['::neutron::server']
  }

  kickstack::exportfact::export { "neutron_host":
    value => "${hostname}",
    tag => 'neutron',
    require => Class['::neutron::server']
  }

}