268 lines
8.0 KiB
YAML
268 lines
8.0 KiB
YAML
---
|
|
driver:
|
|
name: vagrant
|
|
|
|
client_rb:
|
|
treat_deprecation_warnings_as_errors: true
|
|
resource_cloning: false
|
|
|
|
provisioner:
|
|
name: chef_zero
|
|
# You may wish to disable always updating cookbooks in CI or other testing
|
|
# environments.
|
|
# For example:
|
|
# always_update_cookbooks: <%= !ENV['CI'] %>
|
|
always_update_cookbooks: true
|
|
product_name: chef
|
|
product_version: 14
|
|
# Copy secret to /tmp/kitchen on test VM. Kitchen tries to gather secrets
|
|
# before any recipes had a chance to run -> we cannot use a recipe to put the
|
|
# secrets file in place.
|
|
encrypted_data_bag_secret_key_path: .chef/encrypted_data_bag_secret
|
|
attributes:
|
|
# Attributes copied from environments/multinode.json
|
|
apache:
|
|
listen: []
|
|
yum:
|
|
epel:
|
|
enabled: false
|
|
openstack:
|
|
is_release: true
|
|
apt:
|
|
update_apt_cache: true
|
|
bind_service:
|
|
db:
|
|
host: '192.168.101.60'
|
|
mq:
|
|
host: '192.168.101.60'
|
|
main:
|
|
identity:
|
|
host: '0.0.0.0'
|
|
admin:
|
|
identity:
|
|
host: '0.0.0.0'
|
|
all:
|
|
block-storage:
|
|
host: '0.0.0.0'
|
|
compute-api:
|
|
host: '0.0.0.0'
|
|
compute-metadata-api:
|
|
host: '0.0.0.0'
|
|
image_api:
|
|
host: '0.0.0.0'
|
|
image_registry:
|
|
host: '0.0.0.0'
|
|
network:
|
|
host: '0.0.0.0'
|
|
orchestration-api:
|
|
host: '0.0.0.0'
|
|
orchestration-api-cfn:
|
|
host: '0.0.0.0'
|
|
placement-api:
|
|
host: '0.0.0.0'
|
|
compute:
|
|
conf:
|
|
libvirt:
|
|
cpu_type: none
|
|
virt_type: qemu
|
|
dashboard:
|
|
server_hostname: controller.example.net
|
|
endpoints:
|
|
db:
|
|
host: '192.168.101.60'
|
|
mq:
|
|
host: '192.168.101.60'
|
|
admin:
|
|
block-storage:
|
|
host: '192.168.101.60'
|
|
compute-api:
|
|
host: '192.168.101.60'
|
|
compute-metadata-api:
|
|
host: '192.168.101.60'
|
|
identity:
|
|
host: '192.168.101.60'
|
|
image_api:
|
|
host: '192.168.101.60'
|
|
image_registry:
|
|
host: '192.168.101.60'
|
|
network:
|
|
host: '192.168.101.60'
|
|
orchestration-api:
|
|
host: '192.168.101.60'
|
|
orchestration-api-cfn:
|
|
host: '192.168.101.60'
|
|
placement-api:
|
|
host: '192.168.101.60'
|
|
internal:
|
|
block-storage:
|
|
host: '192.168.101.60'
|
|
compute-api:
|
|
host: '192.168.101.60'
|
|
compute-metadata-api:
|
|
host: '192.168.101.60'
|
|
identity:
|
|
host: '192.168.101.60'
|
|
image_api:
|
|
host: '192.168.101.60'
|
|
image_registry:
|
|
host: '192.168.101.60'
|
|
network:
|
|
host: '192.168.101.60'
|
|
orchestration-api:
|
|
host: '192.168.101.60'
|
|
orchestration-api-cfn:
|
|
host: '192.168.101.60'
|
|
placement-api:
|
|
host: '192.168.101.60'
|
|
public:
|
|
block-storage:
|
|
host: '192.168.101.60'
|
|
compute-api:
|
|
host: '192.168.101.60'
|
|
compute-metadata-api:
|
|
host: '192.168.101.60'
|
|
identity:
|
|
host: '192.168.101.60'
|
|
image_api:
|
|
host: '192.168.101.60'
|
|
image_registry:
|
|
host: '192.168.101.60'
|
|
network:
|
|
host: '192.168.101.60'
|
|
orchestration-api:
|
|
host: '192.168.101.60'
|
|
orchestration-api-cfn:
|
|
host: '192.168.101.60'
|
|
placement-api:
|
|
host: '192.168.101.60'
|
|
image:
|
|
image_upload: true
|
|
memcached_servers: ['127.0.0.1:11211']
|
|
mq:
|
|
user: admin
|
|
network:
|
|
conf:
|
|
DEFAULT:
|
|
service_plugins: router
|
|
ml2:
|
|
tenant_network_types: 'vxlan'
|
|
plugins:
|
|
ml2_openvswitch:
|
|
conf:
|
|
ml2_type_vxlan:
|
|
vni_ranges: '65537:69999'
|
|
vxlan_group: '239.1.1.40'
|
|
transport_url:
|
|
rabbit_host: '192.168.101.60'
|
|
tun_network_bridge_interface: 'eth2'
|
|
secret:
|
|
key_path: /tmp/kitchen/encrypted_data_bag_secret
|
|
sysctl:
|
|
net.ipv4.ip_forward: 1
|
|
telemetry:
|
|
conf:
|
|
DEFAULT:
|
|
meter_dispatchers: database
|
|
|
|
verifier:
|
|
name: inspec
|
|
|
|
platforms:
|
|
- name: ubuntu-16.04
|
|
- name: centos-7.5
|
|
|
|
suites:
|
|
- name: compute1
|
|
customize:
|
|
cpus: 2
|
|
memory: 2048
|
|
driver:
|
|
network:
|
|
- ["private_network", {ip: "192.168.100.61"}]
|
|
- ["private_network", {ip: "192.168.101.61"}]
|
|
run_list:
|
|
- recipe[openstack-common]
|
|
- recipe[openstack-common::logging]
|
|
- recipe[openstack-common::sysctl]
|
|
- recipe[openstack-common::python]
|
|
- recipe[openstack-compute::compute]
|
|
- name: compute2
|
|
customize:
|
|
cpus: 2
|
|
memory: 2048
|
|
driver:
|
|
network:
|
|
- ["private_network", {ip: "192.168.100.62"}]
|
|
- ["private_network", {ip: "192.168.101.62"}]
|
|
run_list:
|
|
- recipe[openstack-common]
|
|
- recipe[openstack-common::logging]
|
|
- recipe[openstack-common::sysctl]
|
|
- recipe[openstack-common::python]
|
|
- recipe[openstack-compute::compute]
|
|
- name: controller
|
|
customize:
|
|
cpus: 4
|
|
memory: 8192
|
|
driver:
|
|
network:
|
|
- ["private_network", {ip: "192.168.100.60"}]
|
|
- ["private_network", {ip: "192.168.101.60"}]
|
|
run_list:
|
|
# run_list taken from roles/multinode-controller.json
|
|
- recipe[openstack-common]
|
|
- recipe[openstack-common::logging]
|
|
- recipe[openstack-common::sysctl]
|
|
- recipe[openstack-common::python]
|
|
- recipe[openstack-common::client]
|
|
- recipe[openstack-common::etcd]
|
|
- recipe[openstack-ops-database::server]
|
|
- recipe[openstack-ops-database::openstack-db]
|
|
- recipe[openstack-ops-messaging::rabbitmq-server]
|
|
- recipe[openstack-identity::server-apache]
|
|
- recipe[openstack-identity::registration]
|
|
- recipe[openstack-identity::openrc]
|
|
- recipe[openstack-image::api]
|
|
- recipe[openstack-image::registry]
|
|
- recipe[openstack-image::identity_registration]
|
|
- recipe[openstack-network::plugin_config]
|
|
- recipe[openstack-network::ml2_openvswitch]
|
|
- recipe[openstack-network]
|
|
- recipe[openstack-network::openvswitch]
|
|
- recipe[openstack-network::_bridge_config_example]
|
|
- recipe[openstack-network::l3_agent]
|
|
- recipe[openstack-network::dhcp_agent]
|
|
- recipe[openstack-network::metadata_agent]
|
|
- recipe[openstack-network::openvswitch_agent]
|
|
- recipe[openstack-compute::nova-setup]
|
|
- recipe[openstack-compute::identity_registration]
|
|
- recipe[openstack-compute::conductor]
|
|
- recipe[openstack-compute::api-os-compute]
|
|
- recipe[openstack-compute::api-metadata]
|
|
- recipe[openstack-compute::placement_api]
|
|
- recipe[openstack-compute::scheduler]
|
|
- recipe[openstack-compute::vncproxy]
|
|
- recipe[openstack-compute::identity_registration]
|
|
# NOTE: block-storage, orchestration, dashboard, etc. will be installed
|
|
# but are not tested by tempest
|
|
- recipe[openstack-block-storage::api]
|
|
- recipe[openstack-block-storage::scheduler]
|
|
- recipe[openstack-block-storage::volume_driver_lvm]
|
|
- recipe[openstack-block-storage::volume]
|
|
- recipe[openstack-block-storage::backup]
|
|
- recipe[openstack-block-storage::identity_registration]
|
|
- recipe[openstack-orchestration::engine]
|
|
- recipe[openstack-orchestration::api]
|
|
- recipe[openstack-orchestration::api-cfn]
|
|
- recipe[openstack-orchestration::identity_registration]
|
|
- recipe[openstack-image::image_upload]
|
|
- recipe[openstack-dashboard::horizon]
|
|
- recipe[openstack-dashboard::neutron-lbaas-dashboard]
|
|
- recipe[openstack-integration-test::create_network]
|
|
- recipe[openstack-integration-test::setup]
|
|
- recipe[openstack-integration-test::run_tempest]
|
|
verifier:
|
|
inspec_tests:
|
|
- test/tempest/default
|
|
|