Skip to content

Commit 4eb06ca

Browse files
authored
Merge pull request #11 from Diesel-Net/development
Promotion
2 parents 2b51005 + 12a8707 commit 4eb06ca

File tree

12 files changed

+32
-49
lines changed

12 files changed

+32
-49
lines changed

.ansible/ansible.cfg

Lines changed: 0 additions & 9 deletions
This file was deleted.

.ansible/deploy.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
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'
@@ -66,15 +65,15 @@
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

.ansible/inventories/production/group_vars/all/certs.yaml renamed to .ansible/inventories/prod/group_vars/all/certs.yaml

File renamed without changes.

.ansible/inventories/production/group_vars/all/config.yaml renamed to .ansible/inventories/prod/group_vars/all/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
env: prod
2-
31
domain: ca.diesel.net
42
fingerprint: c4dfdfdece152139fe58280eebaa142ef25b0a19f0984ca5e5338d0d8522f7d8
53

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
all:
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

.ansible/roles/requirements.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
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
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2222
networks:
23-
{{ docker_network }}:
23+
{{ traefik_network }}:
2424
external:
25-
name: {{ docker_network }}
25+
name: {{ traefik_network }}

.drone.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
22
kind: pipeline
33
type: docker
4-
name: Install Step CA Server
4+
name: Install Step CA Server (prod)
55

66
clone:
77
depth: 1
88

9+
concurrency:
10+
limit: 1
11+
912
steps:
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

2525
trigger:
2626
branch:

0 commit comments

Comments
 (0)