Remove deploy role
This commit is contained in:
parent
e6cb8d661e
commit
9a82dd6ae9
4 changed files with 0 additions and 90 deletions
|
|
@ -1,35 +0,0 @@
|
||||||
---
|
|
||||||
deploy_reitanlage_oranienburg_token: "{{ undef() }}"
|
|
||||||
|
|
||||||
deploy_svc:
|
|
||||||
domain: "{{ all_services | service_get_domain(service_name) }}"
|
|
||||||
port: 9000
|
|
||||||
|
|
||||||
deploy_yml:
|
|
||||||
- id: deploy-reitanlage_oranienburg
|
|
||||||
trigger-rule-mismatch-http-response-code: 400
|
|
||||||
execute-command: /config/deploy-reitanlage_oranienburg
|
|
||||||
pass-file-to-command:
|
|
||||||
- source: payload
|
|
||||||
name: data
|
|
||||||
envname: WEBHOOK_DATA
|
|
||||||
base64decode: true
|
|
||||||
trigger-rule:
|
|
||||||
and:
|
|
||||||
- match:
|
|
||||||
type: value
|
|
||||||
value: "{{ deploy_reitanlage_oranienburg_token | mandatory }}"
|
|
||||||
parameter:
|
|
||||||
source: header
|
|
||||||
name: X-Webhook-Token
|
|
||||||
|
|
||||||
deploy_compose:
|
|
||||||
watchtower: update
|
|
||||||
image: lwlook/webhook
|
|
||||||
volumes:
|
|
||||||
- ./config:/config:ro
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
file:
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
command: ["-verbose", "-hooks=/config/hooks.yml", "-hotreload"]
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
if [ -n "$WEBHOOK_DATA" ]
|
|
||||||
then
|
|
||||||
docker exec -i reitanlage_oranienburg-app-1 sh < "$WEBHOOK_DATA"
|
|
||||||
fi
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
---
|
|
||||||
- name: Set common facts
|
|
||||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
|
||||||
|
|
||||||
- name: Deploy {{ service_name }}
|
|
||||||
vars:
|
|
||||||
svc: "{{ deploy_svc }}"
|
|
||||||
compose: "{{ deploy_compose }}"
|
|
||||||
block:
|
|
||||||
- name: Import prepare tasks for common service
|
|
||||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
|
||||||
|
|
||||||
- name: Set webhook config path
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
deploy_config_path: "{{ (service_path, 'config') | path_join }}"
|
|
||||||
|
|
||||||
- name: Create config directory
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ deploy_config_path }}"
|
|
||||||
state: directory
|
|
||||||
mode: "0755"
|
|
||||||
|
|
||||||
- name: Create main config
|
|
||||||
ansible.builtin.copy:
|
|
||||||
dest: "{{ (deploy_config_path, 'hooks.yml') | path_join }}"
|
|
||||||
content: '{{ deploy_yml | to_nice_yaml }}'
|
|
||||||
mode: "0644"
|
|
||||||
|
|
||||||
- name: Copy the deploy-reitanlage_oranienburg script
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: deploy-reitanlage_oranienburg
|
|
||||||
dest: "{{ (deploy_config_path, 'deploy-reitanlage_oranienburg') | path_join }}"
|
|
||||||
mode: "0755"
|
|
||||||
|
|
||||||
- name: Import start tasks for common service
|
|
||||||
ansible.builtin.import_tasks: tasks/start-common-service.yml
|
|
||||||
|
|
@ -108,19 +108,6 @@ services = {
|
||||||
storage_box = true
|
storage_box = true
|
||||||
}
|
}
|
||||||
|
|
||||||
"deploy" = {
|
|
||||||
host = "node001"
|
|
||||||
dns = [
|
|
||||||
{
|
|
||||||
domain = "deploy.serguzim.me"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
monitoring = {
|
|
||||||
}
|
|
||||||
auth = false
|
|
||||||
database = false
|
|
||||||
}
|
|
||||||
|
|
||||||
"dmarc_report" = {
|
"dmarc_report" = {
|
||||||
host = "node001"
|
host = "node001"
|
||||||
dns = [{
|
dns = [{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue