diff --git a/inventories/ansible_test/hosts b/inventories/ansible_test/hosts index 2d709c7..1518e0d 100644 --- a/inventories/ansible_test/hosts +++ b/inventories/ansible_test/hosts @@ -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 diff --git a/tests/deploy_docker_mgmt.yml b/tests/deploy_docker_mgmt.yml deleted file mode 100644 index e85835a..0000000 --- a/tests/deploy_docker_mgmt.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- - -- hosts: container_hosts - become: True - become_user: root - vars: - pip_install_packages: - - name: docker - roles: - - geerlingguy.pip - -- hosts: container_hosts - roles: - - deploy_docker_mgmt - tasks: - - name: Load logging variables - include_vars: - file: vars/logging.yml - name: logging - - - name: Set logging environment - include_role: - name: env_files - vars: - container: logging - env: "{{ logging.environment }}" - - - name: Deploy docker management | define volumes - docker_volume: - name: metacpan_git_shared - driver_options: - type: none - device: "{{ grep_repo }}" - o: bind - become: True - become_user: root diff --git a/tests/deploy_github-meets-cpan.yml b/tests/deploy_github-meets-cpan.yml deleted file mode 100644 index 59f3b7c..0000000 --- a/tests/deploy_github-meets-cpan.yml +++ /dev/null @@ -1,20 +0,0 @@ -# vim: set filetype=ansible.yaml: ---- - -- hosts: github-meets-cpan - vars: - site: github-meets-cpan - roles: - - deploy_site - -- hosts: github-meets-cpan - tasks: - - name: Create cron entries for github-meets-cpan - cron: - name: update data - cron_file: github-meets-cpan - user: "{{ metacpan_user | default(docker_mgmt.git.user) }}" - special_time: hourly - job: "cd {{ docker_mgmt['directory'] }} && /usr/local/bin/docker-compose start github-meets-cpan-cron" - become: yes - become_user: root diff --git a/tests/deploy_grep_metacpan.yml b/tests/deploy_grep_metacpan.yml deleted file mode 100644 index 9ca11e8..0000000 --- a/tests/deploy_grep_metacpan.yml +++ /dev/null @@ -1,33 +0,0 @@ -# vim: set filetype=ansible.yaml: ---- - -- hosts: grep_metacpan - environment: - MC_CONF_PRIVATE_DIR: "{{ grep_repo }}" - vars: - site: grep - vars_files: - - vars/settings.yml - tasks: - - name: Deploy grep site | checkout grep git repository - git: - clone: True - repo: "{{ github_repo }}" - version: master - dest: "{{ grep_repo }}" - become: True - become_user: metacpan - - - name: Deploy grep site | define volume for git repository - docker_volume: - name: metacpan_git_shared - driver_options: - type: none - device: "{{ grep_repo }}" - o: bind - become: True - become_user: root - - - name: Deploy grep site | deploy site - include_role: - name: deploy_site diff --git a/tests/deploy_hound_metacpan.yml b/tests/deploy_hound_metacpan.yml deleted file mode 100644 index 291b704..0000000 --- a/tests/deploy_hound_metacpan.yml +++ /dev/null @@ -1,33 +0,0 @@ -# vim: set filetype=ansible.yaml: ---- - -- hosts: hound_metacpan - environment: - MC_CONF_PRIVATE_DIR: "{{ grep_repo }}" - vars: - site: hound - vars_files: - - vars/settings.yml - tasks: - - name: Deploy hound site | checkout grep git repository - git: - clone: True - repo: "{{ github_repo }}" - version: master - dest: "{{ grep_repo }}" - become: True - become_user: metacpan - - - name: Deploy hound site | define volume for git repository - docker_volume: - name: metacpan_git_shared - driver_options: - type: none - device: "{{ grep_repo }}" - o: bind - become: True - become_user: root - - - name: Deploy hound site | deploy site - include_role: - name: deploy_site diff --git a/tests/deploy_web_metacpan.yml b/tests/deploy_web_metacpan.yml deleted file mode 100644 index 74ed0b7..0000000 --- a/tests/deploy_web_metacpan.yml +++ /dev/null @@ -1,24 +0,0 @@ -# vim: set filetype=ansible.yaml: ---- - -- hosts: web_metacpan - vars: - site: web - site_scale: "{{ metacpan_web_scale | default(1) }}" - site_config_type: template - site_config_file: /home/metacpan/docker-production/configs/metacpan-web/metacpan_web_local.conf - site_config_template: ../templates/web/config.j2 - vars_files: - - vars/settings.yml - become: yes - become_user: root - tasks: - - name: Create configuration directory - file: - dest: /metacpan-web - state: directory - mode: 0755 - - - name: Deploy web site | deploy site - include_role: - name: deploy_site