2015-07-13 15:04:45 -04:00
|
|
|
#
|
|
|
|
# Copyright 2015 Red Hat, Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2016-03-29 20:54:54 -04:00
|
|
|
case $::osfamily {
|
|
|
|
'Debian': {
|
2016-06-15 16:21:18 -04:00
|
|
|
$ipv6 = false
|
2016-11-21 16:33:55 -05:00
|
|
|
# panko is not packaged yet in debian/ubuntu
|
|
|
|
$enable_panko = false
|
2016-03-29 20:54:54 -04:00
|
|
|
}
|
|
|
|
'RedHat': {
|
2016-06-15 16:21:18 -04:00
|
|
|
$ipv6 = true
|
2016-11-21 16:33:55 -05:00
|
|
|
$enable_panko = true
|
2016-03-29 20:54:54 -04:00
|
|
|
}
|
|
|
|
default: {
|
|
|
|
fail("Unsupported osfamily (${::osfamily})")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-20 14:54:36 -04:00
|
|
|
# List of workarounds for Ubuntu Xenial:
|
|
|
|
# - disable SSL
|
|
|
|
if ($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemmajrelease, '16') >= 0) {
|
2016-09-30 20:29:28 +00:00
|
|
|
$ssl_enabled = false
|
2016-04-20 14:54:36 -04:00
|
|
|
} else {
|
2016-09-30 20:29:28 +00:00
|
|
|
$ssl_enabled = true
|
2016-04-20 14:54:36 -04:00
|
|
|
}
|
|
|
|
|
2015-11-06 14:43:25 -05:00
|
|
|
include ::openstack_integration
|
2016-03-29 20:51:03 -04:00
|
|
|
class { '::openstack_integration::config':
|
2016-04-20 14:54:36 -04:00
|
|
|
ssl => $ssl_enabled,
|
2016-03-29 20:54:54 -04:00
|
|
|
ipv6 => $ipv6,
|
2016-03-29 20:51:03 -04:00
|
|
|
}
|
|
|
|
include ::openstack_integration::cacert
|
2016-07-14 16:24:48 -04:00
|
|
|
include ::openstack_integration::memcached
|
2015-11-06 14:43:25 -05:00
|
|
|
include ::openstack_integration::rabbitmq
|
|
|
|
include ::openstack_integration::mysql
|
|
|
|
include ::openstack_integration::keystone
|
2016-02-17 13:22:08 -05:00
|
|
|
class { '::openstack_integration::glance':
|
2016-07-07 16:12:29 -04:00
|
|
|
backend => 'rbd',
|
2016-02-17 13:22:08 -05:00
|
|
|
}
|
2016-08-25 10:55:11 +02:00
|
|
|
include ::openstack_integration::neutron
|
2016-02-17 23:26:02 -05:00
|
|
|
class { '::openstack_integration::nova':
|
2016-07-07 16:12:29 -04:00
|
|
|
libvirt_rbd => true,
|
2016-02-17 23:26:02 -05:00
|
|
|
}
|
|
|
|
class { '::openstack_integration::cinder':
|
2016-07-07 16:12:29 -04:00
|
|
|
backend => 'rbd',
|
2016-02-17 23:26:02 -05:00
|
|
|
}
|
2016-06-15 16:21:18 -04:00
|
|
|
include ::openstack_integration::ceilometer
|
|
|
|
include ::openstack_integration::aodh
|
|
|
|
include ::openstack_integration::gnocchi
|
2016-07-07 16:12:29 -04:00
|
|
|
include ::openstack_integration::ceph
|
2015-12-23 22:54:56 +01:00
|
|
|
include ::openstack_integration::provision
|
2016-11-21 16:33:55 -05:00
|
|
|
if $enable_panko {
|
|
|
|
include ::openstack_integration::panko
|
|
|
|
}
|
2015-09-22 14:40:58 -04:00
|
|
|
|
2015-12-23 22:54:56 +01:00
|
|
|
class { '::openstack_integration::tempest':
|
|
|
|
cinder => true,
|
2016-10-30 22:10:55 +08:00
|
|
|
gnocchi => true,
|
2016-09-30 20:29:28 +00:00
|
|
|
ceilometer => true,
|
|
|
|
aodh => true,
|
2015-07-29 10:57:52 -04:00
|
|
|
}
|