openstack-ansible/playbooks/etcd-install.yml
Dmitriy Rabotyagov bb1b6ab618 Do not try to run etcd in serial mode
Etcd static discovery, even in bootstrap mode, tries to wait for all
members to join. Until that systemd unit is in `activating` state which
means that task just timeouts waiting for activation. So etcd can not be
run in serial.

With that we also move etcd installation from zun role to the playbook.
As we still want to run playbook for zun installation/configuration in
serial mode, having etcd in independent play allows us to
do that.

This partially reverts commit Ie996262043edb8fb9c7221a5cd98e98a0111ac28

Change-Id: Ic621a7618b99abb56d24e4dcbb52b495c1b39d57
2022-06-27 17:48:43 +00:00

40 lines
1.3 KiB
YAML

---
# Copyright 2016, Logan Vig <logan2211@gmail.com>
#
# 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.
- name: Gather etcd facts
hosts: etcd
gather_facts: "{{ osa_gather_facts | default(True) }}"
tags:
- always
- name: Install etcd server cluster
hosts: etcd
gather_facts: false
serial: "{{ etcd_serial | default('100%') }}"
user: root
pre_tasks:
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
when: not is_metal
- include_tasks: common-tasks/unbound-clients.yml
when:
- hostvars['localhost']['resolvconf_enabled'] | bool
roles:
- role: "etcd"
etcd_install_type: server
tags:
- etcd-server
- role: "openstack.osa.system_crontab_coordination"
environment: "{{ deployment_environment_variables | default({}) }}"