Make etherpad configuration more generic for multiple hosts
This switches us to running the services against the etherpad group. We also define vars in a group_vars file rather than a host specific file. This allows us to switch testing over to etherpad99 to decouple it from our production hostnames. A followup change will add a new etherpad production server that will be deployed alongside the existing one. This refactor makes that a bit simpler. Change-Id: I838ad31eb74a3abfd02bbfa77c9c2d007d57a3d4
This commit is contained in:
parent
19352a6944
commit
ed1c7c94a3
@ -19,7 +19,7 @@ At a Glance
|
|||||||
* https://opendev.org/opendev/system-config
|
* https://opendev.org/opendev/system-config
|
||||||
* :git_file:`playbooks/roles/etherpad`
|
* :git_file:`playbooks/roles/etherpad`
|
||||||
* :git_file:`playbooks/service-etherpad.yaml`
|
* :git_file:`playbooks/service-etherpad.yaml`
|
||||||
* :git_file:`inventory/service/host_vars/etherpad01.opendev.org.yaml`
|
* :git_file:`inventory/service/group_vars/etherpad.yaml`
|
||||||
:Projects:
|
:Projects:
|
||||||
* https://etherpad.org/
|
* https://etherpad.org/
|
||||||
* https://github.com/ether/etherpad-lite
|
* https://github.com/ether/etherpad-lite
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
etherpad_vhost_name: etherpad.opendev.org
|
etherpad_vhost_name: etherpad.opendev.org
|
||||||
letsencrypt_certs:
|
letsencrypt_certs:
|
||||||
etherpad01-opendev-org-main:
|
etherpad-opendev-org-main:
|
||||||
- etherpad.opendev.org
|
- etherpad.opendev.org
|
||||||
- etherpad01.opendev.org
|
- '{{ inventory_hostname }}'
|
||||||
- etherpad.openstack.org
|
- etherpad.openstack.org
|
||||||
etherpad_redirect_vhost: etherpad.openstack.org
|
etherpad_redirect_vhost: etherpad.openstack.org
|
||||||
borg_backup_excludes_extra:
|
borg_backup_excludes_extra:
|
@ -55,7 +55,7 @@ groups:
|
|||||||
- adns*.opendev.org
|
- adns*.opendev.org
|
||||||
- ns*.opendev.org
|
- ns*.opendev.org
|
||||||
eavesdrop: eavesdrop[0-9]*.opendev.org
|
eavesdrop: eavesdrop[0-9]*.opendev.org
|
||||||
etherpad: etherpad[0-9]*.open*.org
|
etherpad: etherpad[0-9]*.opendev.org
|
||||||
gitea:
|
gitea:
|
||||||
- gitea[0-9]*.opendev.org
|
- gitea[0-9]*.opendev.org
|
||||||
gitea-lb:
|
gitea-lb:
|
||||||
|
@ -244,7 +244,7 @@
|
|||||||
- name: letsencrypt updated nb01-test-main
|
- name: letsencrypt updated nb01-test-main
|
||||||
include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml
|
include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml
|
||||||
|
|
||||||
- name: letsencrypt updated etherpad01-opendev-org-main
|
- name: letsencrypt updated etherpad-opendev-org-main
|
||||||
include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml
|
include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml
|
||||||
|
|
||||||
- name: letsencrypt updated keycloak01-opendev-org-main
|
- name: letsencrypt updated keycloak01-opendev-org-main
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- hosts: "etherpad01.opendev.org:!disabled"
|
- hosts: "etherpad:!disabled"
|
||||||
name: "Base: configure etherpad"
|
name: "Base: configure etherpad"
|
||||||
roles:
|
roles:
|
||||||
- iptables
|
- iptables
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
- group_vars/zuul-scheduler.yaml
|
- group_vars/zuul-scheduler.yaml
|
||||||
- group_vars/zuul-web.yaml
|
- group_vars/zuul-web.yaml
|
||||||
- host_vars/codesearch01.opendev.org.yaml
|
- host_vars/codesearch01.opendev.org.yaml
|
||||||
- host_vars/etherpad01.opendev.org.yaml
|
- host_vars/etherpad99.opendev.org.yaml
|
||||||
- host_vars/letsencrypt01.opendev.org.yaml
|
- host_vars/letsencrypt01.opendev.org.yaml
|
||||||
- host_vars/letsencrypt02.opendev.org.yaml
|
- host_vars/letsencrypt02.opendev.org.yaml
|
||||||
- host_vars/lists.openstack.org.yaml
|
- host_vars/lists.openstack.org.yaml
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
testinfra_hosts = ['etherpad01.opendev.org']
|
testinfra_hosts = ['etherpad99.opendev.org']
|
||||||
|
|
||||||
|
|
||||||
def test_etherpad_listening(host):
|
def test_etherpad_listening(host):
|
||||||
|
@ -188,8 +188,7 @@
|
|||||||
files:
|
files:
|
||||||
- inventory/base
|
- inventory/base
|
||||||
- playbooks/service-etherpad.yaml
|
- playbooks/service-etherpad.yaml
|
||||||
- inventory/service/host_vars/etherpad01.opendev.org.yaml
|
- inventory/service/group_vars/etherpad.yaml
|
||||||
- inventory/service/group_vars/etherpad
|
|
||||||
- playbooks/roles/install-docker/
|
- playbooks/roles/install-docker/
|
||||||
- playbooks/roles/pip3/
|
- playbooks/roles/pip3/
|
||||||
- playbooks/roles/etherpad
|
- playbooks/roles/etherpad
|
||||||
|
@ -651,7 +651,7 @@
|
|||||||
nodeset:
|
nodeset:
|
||||||
nodes:
|
nodes:
|
||||||
- <<: *bridge_node_x86
|
- <<: *bridge_node_x86
|
||||||
- name: etherpad01.opendev.org
|
- name: etherpad99.opendev.org
|
||||||
label: ubuntu-bionic
|
label: ubuntu-bionic
|
||||||
groups:
|
groups:
|
||||||
- <<: *bastion_group
|
- <<: *bastion_group
|
||||||
|
Loading…
Reference in New Issue
Block a user