File tree Expand file tree Collapse file tree 12 files changed +32
-49
lines changed
Expand file tree Collapse file tree 12 files changed +32
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # ansible-playbook deploy.yaml -i inventories/dev/hosts --vault-id ~/.tokens/master_id
2-
31- hosts : all
42 roles :
5- - common
3+ - application
4+ - traefik
65
76 tasks :
87
98 - include_role :
10- name : common
9+ name : application
1110 tasks_from : make_config_dir
1211
1312 - name : ' Ensure {{ config_dir }}/config/ exists'
6665 dest : ' {{ config_dir }}/secrets/password'
6766 mode : ' u=rwx,g=rwx,o=rwx'
6867
69- - name : ' Render ca.json.j2 to {{ config_dir }}/config/ca.json'
68+ - name : ' Render ca.json to {{ config_dir }}/config/ca.json'
7069 template :
71- src : ca.json.j2
70+ src : ca.json
7271 dest : ' {{ config_dir }}/config/ca.json'
7372 mode : ' u=rwx,g=rwx,o=rwx'
7473
75- - name : ' Render defaults.json.j2 to {{ config_dir }}/config/defaults.json'
74+ - name : ' Render defaults.json to {{ config_dir }}/config/defaults.json'
7675 template :
77- src : defaults.json.j2
76+ src : defaults.json
7877 dest : ' {{ config_dir }}/config/defaults.json'
7978 mode : ' u=rwx,g=rwx,o=rwx'
8079
File renamed without changes.
Original file line number Diff line number Diff line change 1- env : prod
2-
31domain : ca.diesel.net
42fingerprint : c4dfdfdece152139fe58280eebaa142ef25b0a19f0984ca5e5338d0d8522f7d8
53
Original file line number Diff line number Diff line change 11all:
22 children:
3- tools:
3+
4+ swarm_manager:
45 hosts:
5- tools.diesel.net
6+ tools.diesel.net:
7+
68 vars:
79 ansible_user: automation
810 ansible_python_interpreter: /usr/bin/python3
Original file line number Diff line number Diff line change 1- - name : common
1+ - name : application
22 scm : git
3- src : " git@github.com:Diesel-Net/ansible-role-common .git"
4- version : 1.1 .0
3+ src : " git@github.com:Diesel-Net/ansible-role-application .git"
4+ version : 2.0 .0
55
66- name : docker
77 scm : git
88 src : " git@github.com:Diesel-Net/ansible-role-docker.git"
9- version : 1.3.0
9+ version : 2.0.0
10+
11+ - name : traefik
12+ scm : git
13+ src : " git@github.com:Diesel-Net/ansible-role-traefik.git"
14+ version : 2.0.0
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ services:
77 image : smallstep/step-ca:0.16.0
88 volumes :
99 - /etc/localtime:/etc/localtime
10- - {{ ssl_cert_dir }} /:/etc/ssl/certs/
10+ - /etc/ssl/certs /:/etc/ssl/certs/
1111 - {{ config_dir }}/:/home/step/
1212 networks :
13- - {{ docker_network }}
13+ - {{ traefik_network }}
1414 # environment:
1515 # - STEPDEBUG=1
1616 deploy :
@@ -20,6 +20,6 @@ services:
2020 - traefik.tcp.routers.{{ git_repository }}.rule=HostSNI(`{{ domain }}`)
2121 - traefik.tcp.routers.{{ git_repository }}.tls.passthrough=true
2222networks :
23- {{ docker_network }}:
23+ {{ traefik_network }}:
2424 external :
25- name: {{ docker_network }}
25+ name : {{ traefik_network }}
Original file line number Diff line number Diff line change 11---
22kind : pipeline
33type : docker
4- name : Install Step CA Server
4+ name : Install Step CA Server (prod)
55
66clone :
77 depth : 1
88
9+ concurrency :
10+ limit : 1
11+
912steps :
1013
1114 - name : deploy
12- image : plugins/ansible:3
13- environment :
14- ANSIBLE_CONFIG : .ansible/ansible.cfg
15+ image : docker.nexus.diesel.net/drone-ansible:2.13
1516 settings :
1617 galaxy : .ansible/roles/requirements.yaml
17- inventory : .ansible/inventories/production
18+ inventory : .ansible/inventories/prod
1819 playbook : .ansible/deploy.yaml
1920 private_key :
2021 from_secret : automation_id_rsa
2122 vault_password :
2223 from_secret : ansible_vault_password
23- extra_vars : version=production
2424
2525trigger :
2626 branch :
You can’t perform that action at this time.
0 commit comments