Re-organise

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-25 21:52:45 +01:00
parent 34a2740106
commit 6891a7517a
440 changed files with 0 additions and 16 deletions

View file

@ -0,0 +1,95 @@
.. page:: titlePage
.. class:: centredtitle
Multiple environments development, test, production
.. page:: standardPage
.. code-block:: yaml
# vars.yml
---
vars:
mysql_databases:
- name: production
- name: staging
mysql_users:
- name: production
password: '{{ live_db_password }}'
priv: '{{ live_db_name }}.*:ALL'
- name: staging
password: '{{ staging_db_password }}'
priv: staging.*:ALL
.. raw:: pdf
PageBreak
.. code-block:: yaml
# hosts.yml
---
production:
children:
hosts:
webservers:
ansible_ssh_host: 192.168.33.10
ansible_ssh_port: 22
project_deploy_path: /app
git_branch: production
drupal_hash_salt: '{{ vault_drupal_hash_salt }}'
drupal_install: false
drupal_settings:
# ...
.. raw:: pdf
PageBreak
.. code-block:: yaml
# hosts.yml
---
staging:
children:
hosts:
webservers:
ansible_ssh_host: 192.168.33.10
ansible_ssh_port: 22
project_deploy_path: /app-staging
git_branch: staging
drupal_hash_salt: '{{ vault_drupal_hash_salt }}'
drupal_install: true
drupal_settings:
# ...
.. page:: titlePage
.. class:: centredtitle
``ansible-playbook deploy.yml
-i hosts.yml
--limit staging``
.. raw:: pdf
PageBreak
.. class:: centredtitle
``ansible-playbook deploy.yml
-i hosts.yml
--limit production``