Puppet Class: profile::openstack::eqiad1::nova::compute::service

Defined in:
modules/profile/manifests/openstack/eqiad1/nova/compute/service.pp

Overview

Parameters:

  • version (Any) (defaults to: hiera('profile::openstack::eqiad1::version'))
  • network_flat_interface (Any) (defaults to: hiera('profile::openstack::eqiad1::nova::network_flat_interface'))
  • network_flat_tagged_base_interface (Any) (defaults to: hiera('profile::openstack::eqiad1::nova::network_flat_tagged_base_interface'))
  • network_flat_interface_vlan (Any) (defaults to: hiera('profile::openstack::eqiad1::nova::network_flat_interface_vlan'))
  • network_flat_name (Any) (defaults to: hiera('profile::openstack::eqiad1::neutron::network_flat_name'))
  • physical_interface_mappings (Any) (defaults to: hiera('profile::openstack::eqiad1::nova::physical_interface_mappings'))
  • ceph_rbd_pool (Optional[String]) (defaults to: lookup('profile::ceph::client::rbd::pool', {'default_value' => undef}))
  • ceph_rbd_client_name (Optional[String]) (defaults to: lookup('profile::ceph::client::rbd::client_name', {'default_value' => undef}))
  • libvirt_rbd_uuid (Optional[String]) (defaults to: lookup('profile::ceph::client::rbd::libvirt_rbd_uuid', {'default_value' => undef}))


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
29
30
31
32
33
34
35
36
37
38
39
40
# File 'modules/profile/manifests/openstack/eqiad1/nova/compute/service.pp', line 1

class profile::openstack::eqiad1::nova::compute::service(
    $version = hiera('profile::openstack::eqiad1::version'),
    $network_flat_interface = hiera('profile::openstack::eqiad1::nova::network_flat_interface'),
    $network_flat_tagged_base_interface = hiera('profile::openstack::eqiad1::nova::network_flat_tagged_base_interface'),
    $network_flat_interface_vlan = hiera('profile::openstack::eqiad1::nova::network_flat_interface_vlan'),
    $network_flat_name = hiera('profile::openstack::eqiad1::neutron::network_flat_name'),
    $physical_interface_mappings = hiera('profile::openstack::eqiad1::nova::physical_interface_mappings'),
    Optional[String] $ceph_rbd_pool = lookup('profile::ceph::client::rbd::pool', {'default_value' => undef}),
    Optional[String] $ceph_rbd_client_name = lookup('profile::ceph::client::rbd::client_name', {'default_value' => undef}),
    Optional[String] $libvirt_rbd_uuid = lookup('profile::ceph::client::rbd::libvirt_rbd_uuid', {'default_value' => undef}),
    ) {

    require ::profile::openstack::eqiad1::neutron::common
    class {'::profile::openstack::base::neutron::linuxbridge_agent':
        version                     => $version,
        physical_interface_mappings => $physical_interface_mappings,
    }
    contain '::profile::openstack::base::neutron::linuxbridge_agent'

    require ::profile::openstack::eqiad1::nova::common
    class {'::profile::openstack::base::nova::compute::service':
        version                            => $version,
        network_flat_interface             => $network_flat_interface,
        network_flat_tagged_base_interface => $network_flat_tagged_base_interface,
        network_flat_interface_vlan        => $network_flat_interface_vlan,
        all_cloudvirts                     => unique(concat(query_nodes('Class[profile::openstack::eqiad1::nova::compute::service]'), [$::fqdn])),
        require                            => Class['::profile::openstack::base::neutron::linuxbridge_agent'],
        ceph_rbd_pool                      => $ceph_rbd_pool,
        ceph_rbd_client_name               => $ceph_rbd_client_name,
        libvirt_rbd_uuid                   => $libvirt_rbd_uuid,
    }
    contain '::profile::openstack::base::nova::compute::service'

    class {'::openstack::nova::compute::monitor':
        active           => true,
        verify_instances => true,
        contact_groups   => 'wmcs-team,admins',
    }
    contain '::openstack::nova::compute::monitor'
}