summaryrefslogtreecommitdiffstats
path: root/prototypes/puppet-infracloud/modules/opnfv/manifests/compute.pp
blob: 77908c0b8bcf69c96583a1bf0e699ecf4c595af6 (plain)
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
class opnfv::compute (
  $nova_rabbit_password,
  $neutron_rabbit_password,
  $neutron_admin_password,
  $ssl_cert_file_contents,
  $ssl_key_file_contents,
  $br_name,
  $controller_public_address,
  $virt_type = 'kvm',
) {
  # disable selinux if needed
  if $::osfamily == 'RedHat' {
    class { 'selinux':
      mode   => 'permissive',
      before => Class['::infracloud::compute'],
    }
  }

  class { '::infracloud::compute':
    nova_rabbit_password          => $nova_rabbit_password,
    neutron_rabbit_password       => $neutron_rabbit_password,
    neutron_admin_password        => $neutron_admin_password,
    ssl_cert_file_contents        => $ssl_cert_file_contents,
    ssl_key_file_contents         => $ssl_key_file_contents,
    br_name                       => $br_name,
    controller_public_address     => $controller_public_address,
    virt_type                     => $virt_type,
  }

}