Add documentation and example playbooks
This commit is contained in:
parent
c88e5c4371
commit
148a8d858e
4 changed files with 161 additions and 0 deletions
63
nextcloud/ansible/deploy-example-no-talk-ha.yaml
Normal file
63
nextcloud/ansible/deploy-example-no-talk-ha.yaml
Normal file
|
@ -0,0 +1,63 @@
|
|||
- hosts: localhost
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
vars:
|
||||
services:
|
||||
- nginx
|
||||
- postgresql
|
||||
- redis
|
||||
roles:
|
||||
- name: certificates
|
||||
|
||||
- hosts: all
|
||||
serial: 1
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: common
|
||||
|
||||
- hosts: postgresql
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: postgresql
|
||||
|
||||
- hosts: redis
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: redis
|
||||
|
||||
# Este es el collabora
|
||||
- hosts: coolwsd
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: coolwsd
|
||||
|
||||
- hosts: nextcloud
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: nextcloud
|
||||
- name: coolwsd-nginx
|
||||
|
||||
# Enable this for Talk HA
|
||||
# - name: nextcloud-spreed
|
||||
|
||||
#- hosts: turn
|
||||
# vars_files:
|
||||
# - vars/main.example.yaml
|
||||
# - "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
# roles:
|
||||
# - name: turn
|
||||
# - name: nats-server
|
||||
# - name: signaling-server
|
||||
# - name: janus
|
||||
|
61
nextcloud/ansible/deploy-example-talk-ha.yaml
Normal file
61
nextcloud/ansible/deploy-example-talk-ha.yaml
Normal file
|
@ -0,0 +1,61 @@
|
|||
- hosts: localhost
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
vars:
|
||||
services:
|
||||
- nginx
|
||||
- postgresql
|
||||
- redis
|
||||
roles:
|
||||
- name: certificates
|
||||
|
||||
- hosts: all
|
||||
serial: 1
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: common
|
||||
|
||||
- hosts: postgresql
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: postgresql
|
||||
|
||||
- hosts: redis
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: redis
|
||||
|
||||
# Este es el collabora
|
||||
- hosts: coolwsd
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: coolwsd
|
||||
|
||||
- hosts: nextcloud
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
- vars/main.example.yaml
|
||||
roles:
|
||||
- name: nextcloud
|
||||
- name: coolwsd-nginx
|
||||
- name: nextcloud-spreed
|
||||
|
||||
- hosts: turn
|
||||
vars_files:
|
||||
- vars/main.example.yaml
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
roles:
|
||||
- name: turn
|
||||
- name: nats-server
|
||||
- name: signaling-server
|
||||
- name: janus
|
||||
|
12
nextcloud/ansible/inventory-example-single-no-talk-ha
Normal file
12
nextcloud/ansible/inventory-example-single-no-talk-ha
Normal file
|
@ -0,0 +1,12 @@
|
|||
[redis]
|
||||
<your server fqdn>
|
||||
|
||||
[postgresql]
|
||||
<your server fqdn>
|
||||
|
||||
[nextcloud]
|
||||
<your server fqdn>
|
||||
|
||||
[coolwsd]
|
||||
<your server fqdn>
|
||||
|
25
nextcloud/ansible/inventory-example-talk-ha
Normal file
25
nextcloud/ansible/inventory-example-talk-ha
Normal file
|
@ -0,0 +1,25 @@
|
|||
[redis]
|
||||
<your server fqdn>
|
||||
|
||||
[postgresql]
|
||||
<your server fqdn>
|
||||
|
||||
[nextcloud]
|
||||
<your server fqdn>
|
||||
|
||||
[coolwsd]
|
||||
<your server fqdn>
|
||||
|
||||
|
||||
# Uncomment this if you're going to use HA with Nextcloud Talk
|
||||
[turn]
|
||||
<turn server fqdn>
|
||||
|
||||
[nats]
|
||||
<nats server fqdn> ansible_host=<nats server IP>
|
||||
|
||||
[signaling]
|
||||
<signaling spreed server fqdn> ansible_host=<signaling server IP>
|
||||
|
||||
[janus]
|
||||
<janus server fqdn> ansible_host=<janus server IP>
|
Loading…
Reference in a new issue