Merge "metal: add docs + start using no_containers"

This commit is contained in:
Zuul 2019-09-06 12:31:04 +00:00 committed by Gerrit Code Review
commit 7128dfa2d3
3 changed files with 22 additions and 7 deletions

View File

@ -66,11 +66,32 @@ the ``is_metal`` property to ``true`` for the container group in the
The use of ``container_vars`` and mapping from container groups to host groups The use of ``container_vars`` and mapping from container groups to host groups
is the same for a service deployed directly onto the host. is the same for a service deployed directly onto the host.
You can also use the ``no_containers`` option to specify a host that will have
all services deployed on metal inside of it.
.. note:: .. note::
The ``cinder-volume`` component is deployed directly on the host by The ``cinder-volume`` component is deployed directly on the host by
default. See the ``env.d/cinder.yml`` file for this example. default. See the ``env.d/cinder.yml`` file for this example.
Example: Running all controllers on metal
-----------------------------------------
For example, if you'd like to run all your controllers on metal, you would
have the following inside your ``openstack_user_config.yml``.
.. code-block:: yaml
infra_hosts:
infra1:
ip: 172.39.123.11
no_containers: true
infra2:
ip: 172.39.123.12
no_containers: true
infra3:
ip: 172.39.123.13
no_containers: true
Example: Running galera on dedicated hosts Example: Running galera on dedicated hosts
------------------------------------------ ------------------------------------------

View File

@ -35,6 +35,7 @@ global_overrides:
# dynamic inventory testing. # dynamic inventory testing.
external_lb_vip_address: "{{ bootstrap_host_public_address | default(ansible_default_ipv4.address) }}" external_lb_vip_address: "{{ bootstrap_host_public_address | default(ansible_default_ipv4.address) }}"
management_bridge: "br-mgmt" management_bridge: "br-mgmt"
no_containers: {{ true if 'metal' in bootstrap_host_scenarios else false }}
provider_networks: provider_networks:
- network: - network:
container_bridge: "br-mgmt" container_bridge: "br-mgmt"

View File

@ -190,13 +190,6 @@
when: when:
- "'ceph' in bootstrap_host_scenarios_expanded" - "'ceph' in bootstrap_host_scenarios_expanded"
- name: Copy modified env.d file for metal scenario
copy:
src: "{{ playbook_dir }}/../etc/openstack_deploy/env.d/aio_metal.yml.example"
dest: "/etc/openstack_deploy/env.d/aio_metal.yml"
when:
- "'metal' in bootstrap_host_scenarios"
- name: Copy modified env.d file for calico scenario - name: Copy modified env.d file for calico scenario
copy: copy:
src: "{{ playbook_dir }}/../etc/openstack_deploy/env.d/calico.yml.example" src: "{{ playbook_dir }}/../etc/openstack_deploy/env.d/calico.yml.example"