Removing OpenSteak Project
[genesis.git] / puppet / opnfv / manifests / controller.pp
1 class opnfv::controller {
2
3   if $admin_email == '' { fail('admin_email is empty') }
4   if $admin_password == '' { fail('admin_password is empty') }
5
6   if $public_ip == '' { fail('public_ip is empty') }
7   if $private_ip == '' { fail('private_ip is empty') }
8
9   if $mysql_ip == '' { fail('mysql_ip is empty') }
10   if $mysql_root_password == '' { fail('mysql_root_password is empty') }
11   if $amqp_ip == '' { fail('mysql_ip is empty') }
12
13   if $memcache_ip == '' { fail('memcache_ip is empty') }
14   if $neutron_ip == '' { fail('neutron_ip is empty') }
15
16   if $keystone_admin_token == '' { fail('keystone_admin_token is empty') }
17   if $keystone_db_password == '' { fail('keystone_db_password is empty') }
18
19   if $horizon_secret_key == '' { fail('horizon_secret_key is empty') }
20
21   if $nova_user_password == '' { fail('nova_user_password is empty') }
22   if $nova_db_password == '' { fail('nova_db_password is empty') }
23
24   if $cinder_user_password == '' { fail('cinder_user_password is empty') }
25   if $cinder_db_password == '' { fail('cinder_db_password is empty') }
26
27   if $glance_user_password == '' { fail('glance_user_password is empty') }
28   if $glance_db_password == '' { fail('glance_db_password is empty') }
29
30   if $neutron_user_password == '' { fail('neutron_user_password is empty') }
31   if $neutron_db_password == '' { fail('neutron_db_password is empty') }
32   if $neutron_metadata_shared_secret == '' { fail('neutron_metadata_shared_secret is empty') }
33
34   if $ceilometer_user_password == '' { fail('ceilometer_user_password is empty') }
35   if $ceilometer_metering_secret == '' { fail('ceilometer_user_password is empty') }
36
37   if $heat_user_password == '' { fail('heat_user_password is empty') }
38   if $heat_db_password == '' { fail('heat_db_password is empty') }
39   if $heat_auth_encrypt_key == '' { fail('heat_auth_encrypt_key is empty') }
40
41   if $swift_user_password == '' { fail('swift_user_password is empty') }
42   if $swift_shared_secret == '' { fail('swift_shared_secret is empty') }
43   if $swift_admin_password == '' { fail('swift_admin_password is empty') }
44
45   class { "quickstack::neutron::controller":
46     admin_email                   => $admin_email,
47     admin_password                => $admin_password,
48     controller_admin_host         => $private_ip,
49     controller_priv_host          => $private_ip,
50     controller_pub_host           => $public_ip,
51     ssl                           => false,
52     #support_profile               => $quickstack::params::support_profile,
53     #freeipa                       => $quickstack::params::freeipa,
54
55     mysql_host                    => $mysql_ip,
56     mysql_root_password           => $mysql_root_password,
57     #amqp_provider                 => $amqp_provider,
58     amqp_host                     => $amqp_ip,
59     amqp_username                 => 'guest',
60     amqp_password                 => 'guest',
61     #amqp_nssdb_password           => $quickstack::params::amqp_nssdb_password,
62
63     keystone_admin_token          => $keystone_admin_token,
64     keystone_db_password          => $keystone_db_password,
65
66     ceilometer_metering_secret    => $ceilometer_metering_secret,
67     ceilometer_user_password      => $ceilometer_user_password,
68
69     cinder_backend_gluster        => $quickstack::params::cinder_backend_gluster,
70     cinder_backend_gluster_name   => $quickstack::params::cinder_backend_gluster_name,
71     cinder_gluster_shares         => $quickstack::params::cinder_gluster_shares,
72     cinder_user_password          => $cinder_user_password,
73     cinder_db_password            => $cinder_db_password,
74
75     glance_db_password            => $glance_db_password,
76     glance_user_password          => $glance_user_password,
77
78     heat_cfn                      => true,
79     heat_cloudwatch               => true,
80     heat_db_password              => $heat_db_password,
81     heat_user_password            => $heat_user_password,
82     heat_auth_encrypt_key         => $heat_auth_encrypt_key,
83
84     horizon_secret_key            => $horizon_secret_key,
85     horizon_ca                    => $quickstack::params::horizon_ca,
86     horizon_cert                  => $quickstack::params::horizon_cert,
87     horizon_key                   => $quickstack::params::horizon_key,
88
89     #neutron                       => true,
90     neutron_metadata_proxy_secret => $neutron_metadata_shared_secret,
91     neutron_db_password           => $neutron_db_password,
92     neutron_user_password         => $neutron_user_password,
93     ml2_mechanism_drivers         => ['opendaylight'],
94     odl_controller_ip             => '10.1.254.4',
95
96     nova_db_password              => $nova_db_password,
97     nova_user_password            => $nova_user_password,
98
99     swift_shared_secret           => $swift_shared_secret,
100     swift_admin_password          => $swift_admin_password,
101     swift_ringserver_ip           => '192.168.203.1',
102     swift_storage_ips             => ["192.168.203.2","192.168.203.3","192.168.203.4"],
103     swift_storage_device          => 'device1',
104   }
105
106 }