Browse Source

cloud: add wereport

keep-around/ba50dcfebb55b79f93234ba87ee3ab8b47cd1bfa
Loïc Dachary 3 years ago
parent
commit
79400411f2
Signed by: dachary GPG Key ID: 283AFA30CA7F55A4
  1. 1
      enough-community-playbook.yml
  2. 1
      inventory/02-all.yml
  3. 7
      molecule/cloud/molecule.yml
  4. 1
      molecule/cloud/playbook.yml
  5. 2
      molecule/cloud/roles/wereport/tasks/main.yml
  6. 1
      molecule/cloud/roles/wereport/tasks/wereport.yml
  7. 2
      molecule/cloud/tests/test_nextcloud.py
  8. 8
      molecule/cloud/wereport-playbook.yml
  9. 5
      molecule/preprod/molecule.yml

1
enough-community-playbook.yml

@ -19,6 +19,7 @@
- import_playbook: molecule/chat/chat-playbook.yml
- import_playbook: molecule/cloud/enough-playbook.yml
- import_playbook: molecule/cloud/cloud-playbook.yml
- import_playbook: molecule/cloud/wereport-playbook.yml
- import_playbook: molecule/website/website-playbook.yml
- import_playbook: molecule/forum/forum-playbook.yml
- import_playbook: molecule/misc/commit_etc-playbook.yml

1
inventory/02-all.yml

@ -13,3 +13,4 @@ pets:
enough:
hosts:
cloud-host:
wereport-host:

7
molecule/cloud/molecule.yml

@ -10,6 +10,13 @@ platforms:
flavor: "s1-2"
- name: icinga-host
flavor: "s1-2"
- name: wereport-host
flavor: "s1-2"
groups:
- enough
volumes:
- name: wereport-volume
size: 10
- name: cloud-host
flavor: "s1-2"
groups:

1
molecule/cloud/playbook.yml

@ -11,4 +11,5 @@
- import_playbook: ../gitlab/test-real-gitlab-playbook.yml
- import_playbook: enough-playbook.yml
- import_playbook: cloud-playbook.yml
- import_playbook: wereport-playbook.yml
- import_playbook: ../misc/commit_etc-playbook.yml

2
molecule/cloud/roles/wereport/tasks/main.yml

@ -0,0 +1,2 @@
---
- import_tasks: wereport.yml

1
molecule/cloud/roles/wereport/tasks/wereport.yml

@ -0,0 +1 @@
---

2
molecule/cloud/tests/test_nextcloud.py

@ -1,4 +1,4 @@
testinfra_hosts = ['cloud-host']
testinfra_hosts = ['cloud-host', 'wereport-host']
def test_nextcloud(host):
cmd = host.run("""

8
molecule/cloud/wereport-playbook.yml

@ -0,0 +1,8 @@
---
- name: prepare wereport environment
hosts: wereport-host
roles:
- { role: wereport }
become: True

5
molecule/preprod/molecule.yml

@ -27,6 +27,11 @@ platforms:
volumes:
- name: cloud-volume
size: 100
- name: wereport-host
flavor: "s1-2"
volumes:
- name: wereport-volume
size: 10
- name: forum-host
flavor: "s1-4"
provisioner:

Loading…
Cancel
Save