Remove ara

This commit is contained in:
Salt 2023-02-14 17:19:43 -06:00
parent 5f9313bf20
commit 0178751efd
7 changed files with 1 additions and 55 deletions

View File

@ -2,8 +2,6 @@ image: rehashedsalt/ansible-env:bleeding
variables: variables:
ANSIBLE_INVENTORY: inventories/production-no-auto ANSIBLE_INVENTORY: inventories/production-no-auto
ANSIBLE_STRATEGY: free ANSIBLE_STRATEGY: free
ARA_API_CLIENT: http
ARA_API_SERVER: "https://ara.desu.ltd"
stages: stages:
- lint - lint
- test - test
@ -33,8 +31,6 @@ before_script:
zerotier-cli listnetworks zerotier-cli listnetworks
# Get ready for execution # Get ready for execution
- ansible-galaxy install -r requirements.yml - ansible-galaxy install -r requirements.yml
# Set up our callback plugins
- source <(python3 -m ara.setup.env)
# Run a quick test SSH connection to the bastion box # Run a quick test SSH connection to the bastion box
- ssh -o StrictHostKeyChecking=no ansible@bastion1.dallas.mgmt.desu.ltd uptime - ssh -o StrictHostKeyChecking=no ansible@bastion1.dallas.mgmt.desu.ltd uptime
# And a quick test SSH connection over proxy # And a quick test SSH connection over proxy

View File

@ -9,8 +9,6 @@ Useful for management across all of 9iron, thefuck, and desu.
For quick bootstrapping of tools and libraries used in this repo, see [rehashedsalt/ansible-env](https://gitlab.com/rehashedsalt/docker-ansible-env). I use that exact image for CI/CD. For quick bootstrapping of tools and libraries used in this repo, see [rehashedsalt/ansible-env](https://gitlab.com/rehashedsalt/docker-ansible-env). I use that exact image for CI/CD.
I use ara to record Ansible plays. If your environment has it installed, source the script in `contrib/ara.sh` to configure your environment properly.
## Deployment ## Deployment
### Linux Machines ### Linux Machines

View File

@ -1,23 +0,0 @@
#! /bin/bash
#
# ara.sh
# Copyright (C) 2022 Vintage Salt <rehashedsalt@cock.li>
#
# Distributed under terms of the MIT license.
#
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "Source this script, don't execute it"
echo " source \"${0}\""
exit 1
fi
ara="$(python3 -m ara.setup.callback_plugins)"
if [ -n "$ara" ]; then
export ANSIBLE_CALLBACK_PLUGINS="$ara"
export ARA_API_CLIENT="http"
export ARA_API_SERVER="https://ara.desu.ltd"
echo "Ansible configured to report to ara at $ARA_API_SERVER"
else
echo "Unable to find ara; is it installed?"
fi
unset ara

View File

@ -91,8 +91,6 @@
value: [ "{{ item.value }}" ] value: [ "{{ item.value }}" ]
with_items: with_items:
# Public # Public
- record: ara.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: firefly.desu.ltd - record: firefly.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd value: vm-general-1.ashburn.mgmt.desu.ltd
- record: firefly-importer.desu.ltd - record: firefly-importer.desu.ltd

View File

@ -20,7 +20,6 @@
- app/redis.yml - app/redis.yml
- app/vaultwarden.yml - app/vaultwarden.yml
- web/9iron.yml - web/9iron.yml
- web/ara.yml
- web/desultd.yml - web/desultd.yml
- web/element-web.yml - web/element-web.yml
- web/firefly-iii.yml - web/firefly-iii.yml
@ -225,8 +224,6 @@
vars: vars:
ingress_servers: ingress_servers:
# desu.ltd # desu.ltd
- name: ara.desu.ltd
proxy_pass: http://ara:8000
- name: desu.ltd - name: desu.ltd
proxy_pass: http://desultd:80 proxy_pass: http://desultd:80
locations: locations:

View File

@ -1,20 +0,0 @@
# vim:ft=ansible:
- name: docker deploy ara
docker_container:
name: ara
image: recordsansible/ara-api:centos8-stream-pypi-latest
env:
ARA_ALLOWED_HOSTS: "['ara.desu.ltd']"
ARA_DATABASE_ENGINE: django.db.backends.postgresql
ARA_DATABASE_NAME: ara-desultd
ARA_DATABASE_USER: ara-desultd
ARA_DATABASE_PASSWORD: "{{ secret_ara_db_pass }}"
ARA_DATABASE_HOST: 10.0.0.2
networks:
- name: web
aliases: [ "ara" ]
volumes:
- /data/ara/server:/opt/ara:z
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
tags: [ docker, ara ]

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
# vim:ft=ansible: # vim:ft=ansible:
- name: install ansible - name: install ansible
pip: name=ansible<5,ansible-lint,ara state=latest pip: name=ansible<5,ansible-lint state=latest