77908c0b8bcf69c96583a1bf0e699ecf4c595af6
[releng.git] / prototypes / puppet-infracloud / modules / opnfv / manifests / compute.pp
1 class opnfv::compute (
2   $nova_rabbit_password,
3   $neutron_rabbit_password,
4   $neutron_admin_password,
5   $ssl_cert_file_contents,
6   $ssl_key_file_contents,
7   $br_name,
8   $controller_public_address,
9   $virt_type = 'kvm',
10 ) {
11   # disable selinux if needed
12   if $::osfamily == 'RedHat' {
13     class { 'selinux':
14       mode   => 'permissive',
15       before => Class['::infracloud::compute'],
16     }
17   }
18
19   class { '::infracloud::compute':
20     nova_rabbit_password          => $nova_rabbit_password,
21     neutron_rabbit_password       => $neutron_rabbit_password,
22     neutron_admin_password        => $neutron_admin_password,
23     ssl_cert_file_contents        => $ssl_cert_file_contents,
24     ssl_key_file_contents         => $ssl_key_file_contents,
25     br_name                       => $br_name,
26     controller_public_address     => $controller_public_address,
27     virt_type                     => $virt_type,
28   }
29
30 }
31