From 838a033b408e193c2c76966c6c451940bbfb9487 Mon Sep 17 00:00:00 2001 From: Pedro Guerra <5890852+PedroGuerraPT@users.noreply.github.com> Date: Sat, 23 Jan 2021 20:04:28 +0000 Subject: [PATCH] Added modified inventory files --- .gitignore | 4 --- inventory/.gitkeep | 0 inventory/host_vars/.gitkeep | 0 .../host_vars/matrix.pguerra.pt/vars.yml | 35 +++++++++++++++++++ inventory/hosts | 18 ++++++++++ 5 files changed, 53 insertions(+), 4 deletions(-) delete mode 100644 inventory/.gitkeep delete mode 100644 inventory/host_vars/.gitkeep create mode 100644 inventory/host_vars/matrix.pguerra.pt/vars.yml create mode 100644 inventory/hosts diff --git a/.gitignore b/.gitignore index 36c65bdaa..74631f4e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,3 @@ -/inventory/* -!/inventory/.gitkeep -!/inventory/host_vars/.gitkeep -!/inventory/scripts /roles/*/files/scratchpad .DS_Store .python-version diff --git a/inventory/.gitkeep b/inventory/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/inventory/host_vars/.gitkeep b/inventory/host_vars/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/inventory/host_vars/matrix.pguerra.pt/vars.yml b/inventory/host_vars/matrix.pguerra.pt/vars.yml new file mode 100644 index 000000000..4e7c8b218 --- /dev/null +++ b/inventory/host_vars/matrix.pguerra.pt/vars.yml @@ -0,0 +1,35 @@ +# The bare domain name which represents your Matrix identity. +# Matrix user ids for your server will be of the form (`@user:`). +# +# Note: this playbook does not touch the server referenced here. +# Installation happens on another server ("matrix."). +# +# If you've deployed using the wrong domain, you'll have to run the Uninstalling step, +# because you can't change the Domain after deployment. +# +# Example value: example.com +matrix_domain: pguerra.pt + +# This is something which is provided to Let's Encrypt when retrieving SSL certificates for domains. +# +# In case SSL renewal fails at some point, you'll also get an email notification there. +# +# If you decide to use another method for managing SSL certifites (different than the default Let's Encrypt), +# you won't be required to define this variable (see `docs/configuring-playbook-ssl-certificates.md`). +# +# Example value: someone@example.com +matrix_ssl_lets_encrypt_support_email: '' + +# A shared secret (between Coturn and Synapse) used for authentication. +# You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`). +matrix_coturn_turn_static_auth_secret: '' + +# A secret used to protect access keys issued by the server. +# You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`). +matrix_synapse_macaroon_secret_key: '' + +# A Postgres password to use for the superuser Postgres user (called `matrix` by default). +# +# The playbook creates additional Postgres users and databases (one for each enabled service) +# using this superuser account. +matrix_postgres_connection_password: '' diff --git a/inventory/hosts b/inventory/hosts new file mode 100644 index 000000000..d84cecce9 --- /dev/null +++ b/inventory/hosts @@ -0,0 +1,18 @@ +# We explicitly ask for your server's external IP address, because the same value is used for configuring Coturn. +# If you'd rather use a local IP here, make sure to set up `matrix_coturn_turn_external_ip_address`. +# +# To connect using a non-root user (and elevate to root with sudo later), +# replace `ansible_ssh_user=root` with something like this: `ansible_ssh_user=username become=true become_user=root` +# +# For improved Ansible performance, SSH pipelining is enabled by default in `ansible.cfg`. +# If this causes SSH connection troubles, disable it by adding `ansible_ssh_pipelining=False` +# to the host line below or by adding `ansible_ssh_pipelining: False` to your variables file. +# +# If you're running this Ansible playbook on the same server as the one you're installing to, +# consider adding an additional `ansible_connection=local` argument below. +# +# Ansible may fail to discover which Python interpreter to use on the host for some distros (like Ubuntu 20.04). +# You may sometimes need to explicitly add `ansible_python_interpreter=/usr/bin/python3` to lines below. + +[matrix_servers] +matrix.pguerra.pt ansible_host={{ lookup('env', 'EXTERNAL_IP') }} ansible_ssh_user=root ansible_connection=local