Skip to content

Commit

Permalink
Merge pull request #33 from metacpan/ssoriche/inventory-cleanup
Browse files Browse the repository at this point in the history
Project Clean Ups
  • Loading branch information
ssoriche authored Feb 1, 2024
2 parents 32703e2 + c48325f commit ea15c91
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 227 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/check-ubuntu-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,43 +39,3 @@ jobs:
idempotence=$(mktemp)
sudo ansible-playbook -i inventories/ansible_test tests/deploy_packages.yml | tee -a ${idempotence}
tail ${idempotence} | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
- name: playbooks/deploy_docker_mgmt.yml
run: |
ansible-playbook -i inventories/ansible_test playbooks/deploy_docker_mgmt.yml --syntax-check
ansible-playbook -vvvv -i inventories/ansible_test tests/deploy_docker_mgmt.yml
idempotence=$(mktemp)
sudo ansible-playbook -i inventories/ansible_test tests/deploy_docker_mgmt.yml | tee -a ${idempotence}
tail ${idempotence} | grep -q 'changed=2.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
- name: playbooks/deploy_github-meets-cpan.yml
run: |
ansible-playbook -i inventories/ansible_test tests/deploy_github-meets-cpan.yml --syntax-check
ansible-playbook -vvvv -i inventories/ansible_test tests/deploy_github-meets-cpan.yml
idempotence=$(mktemp)
sudo ansible-playbook -i inventories/ansible_test tests/deploy_github-meets-cpan.yml | tee -a ${idempotence}
tail ${idempotence} | grep -q 'changed=1.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
- name: playbooks/deploy_grep_metacpan.yml
run: |
ansible-playbook -i inventories/ansible_test tests/deploy_grep_metacpan.yml --syntax-check
ansible-playbook -vvvv -i inventories/ansible_test tests/deploy_grep_metacpan.yml
idempotence=$(mktemp)
sudo ansible-playbook -i inventories/ansible_test tests/deploy_grep_metacpan.yml | tee -a ${idempotence}
tail ${idempotence} | grep -q 'changed=1.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
- name: playbooks/deploy_hound_metacpan.yml
run: |
ansible-playbook -i inventories/ansible_test tests/deploy_hound_metacpan.yml --syntax-check
ansible-playbook -vvvv -i inventories/ansible_test tests/deploy_hound_metacpan.yml
idempotence=$(mktemp)
sudo ansible-playbook -i inventories/ansible_test tests/deploy_hound_metacpan.yml | tee -a ${idempotence}
tail ${idempotence} | grep -q 'changed=1.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
- name: playbooks/deploy_web_metacpan.yml
run: |
ansible-playbook -i inventories/ansible_test tests/deploy_web_metacpan.yml --syntax-check
ansible-playbook -vvvv -i inventories/ansible_test tests/deploy_web_metacpan.yml
idempotence=$(mktemp)
sudo ansible-playbook -i inventories/ansible_test tests/deploy_web_metacpan.yml | tee -a ${idempotence}
tail ${idempotence} | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
**NOTE**: This repository is for maintaining the legacy un-containerized
clusters. Any changes here are to support the clusters while the transition
continues. Do not add any new site deployments to this repository, instead see
https://github.com/metacpan/metacpan-k8s

## Up and Running with Ansible

This is meant to be a quick guide to getting going with Ansible with this
Expand Down
15 changes: 0 additions & 15 deletions inventories/ansible_test/hosts
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
# required for creating local docker containers based on inventory
[docker-hosts]
localhost ansible_connection=local ansible_python_interpreter="/usr/bin/env python3"

[container_hosts]
localhost

[github-meets-cpan]
localhost

[grep_metacpan]
localhost

[hound_metacpan]
localhost

[web_metacpan]
localhost
26 changes: 0 additions & 26 deletions inventories/production/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,3 @@ lw-mc-03.metacpan.org
bm-mc-01.metacpan.org
bm-mc-02.metacpan.org
bm-mc-04.metacpan.org

[hivelocity]
hc-mc-01.metacpan.org ansible_python_interpreter="/usr/bin/env python3"
hc-mc-02.metacpan.org ansible_python_interpreter="/usr/bin/env python3"
hc-mc-03.metacpan.org ansible_python_interpreter="/usr/bin/env python3"

[container_hosts]
lw-mc-01.metacpan.org
lw-mc-02.metacpan.org
hc-mc-01.metacpan.org ansible_python_interpreter="/usr/bin/env python3"
hc-mc-02.metacpan.org ansible_python_interpreter="/usr/bin/env python3"
hc-mc-03.metacpan.org ansible_python_interpreter="/usr/bin/env python3"

[github-meets-cpan]
lw-mc-02.metacpan.org

[grep_metacpan]
hc-mc-01.metacpan.org ansible_python_interpreter="/usr/bin/env python3"

[hound_metacpan]
hc-mc-01.metacpan.org ansible_python_interpreter="/usr/bin/env python3"
hc-mc-02.metacpan.org ansible_python_interpreter="/usr/bin/env python3"

[web_metacpan]
hc-mc-01.metacpan.org ansible_python_interpreter="/usr/bin/env python3" metacpan_web_scale=2
hc-mc-02.metacpan.org ansible_python_interpreter="/usr/bin/env python3" metacpan_web_scale=2
36 changes: 0 additions & 36 deletions tests/deploy_docker_mgmt.yml

This file was deleted.

20 changes: 0 additions & 20 deletions tests/deploy_github-meets-cpan.yml

This file was deleted.

33 changes: 0 additions & 33 deletions tests/deploy_grep_metacpan.yml

This file was deleted.

33 changes: 0 additions & 33 deletions tests/deploy_hound_metacpan.yml

This file was deleted.

24 changes: 0 additions & 24 deletions tests/deploy_web_metacpan.yml

This file was deleted.

0 comments on commit ea15c91

Please sign in to comment.