Skip to content

Commit

Permalink
Merge pull request #39 from Diesel-Net/development
Browse files Browse the repository at this point in the history
Promotion
  • Loading branch information
tomdaley92 authored Aug 18, 2021
2 parents 836b003 + 51abddf commit ddf5b10
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .ansible/inventory/production/group_vars/all/main.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
env: prod
auto_reboots: no
auto_reboots: yes
4 changes: 4 additions & 0 deletions .ansible/update.yaml → .ansible/maintain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
- import_role:
name: ubuntu
tasks_from: update

- import_role:
name: docker
tasks_from: system_prune
4 changes: 0 additions & 4 deletions .ansible/roles/requirements.update.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
- name: docker
scm: git
src: "[email protected]:Diesel-Net/ansible-role-docker.git"
version: 1.3.0
version: 1.4.0
56 changes: 44 additions & 12 deletions .drone.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
name: main deployment pipeline
name: swarm bootstrap

clone:
depth: 1
Expand All @@ -18,7 +18,7 @@ steps:
from_secret: super_pass
settings:
requirements: .ansible/files/requirements.txt
galaxy: .ansible/roles/requirements.deploy.yaml
galaxy: .ansible/roles/requirements.yaml
playbook: .ansible/deploy.yaml
private_key:
from_secret: automation_id_rsa
Expand Down Expand Up @@ -48,39 +48,39 @@ clone:
depth: 1

steps:
- name: Update development server(s)
- name: running maintenance tasks on development server(s)
image: plugins/ansible:3
environment:
ANSIBLE_CONFIG: .ansible/ansible.cfg
settings:
galaxy: .ansible/roles/requirements.update.yaml
playbook: .ansible/update.yaml
galaxy: .ansible/roles/requirements.yaml
playbook: .ansible/maintain.yaml
inventory: .ansible/inventory/development
private_key:
from_secret: automation_id_rsa
vault_password:
from_secret: ansible_vault_password

- name: Update test server(s)
- name: running maintenance tasks on test server(s)s
image: plugins/ansible:3
environment:
ANSIBLE_CONFIG: .ansible/ansible.cfg
settings:
galaxy: .ansible/roles/requirements.update.yaml
playbook: .ansible/update.yaml
galaxy: .ansible/roles/requirements.yaml
playbook: .ansible/maintain.yaml
inventory: .ansible/inventory/stable
private_key:
from_secret: automation_id_rsa
vault_password:
from_secret: ansible_vault_password

- name: Update production server(s)
- name: running maintenance tasks on production server(s)
image: plugins/ansible:3
environment:
ANSIBLE_CONFIG: .ansible/ansible.cfg
settings:
galaxy: .ansible/roles/requirements.update.yaml
playbook: .ansible/update.yaml
galaxy: .ansible/roles/requirements.yaml
playbook: .ansible/maintain.yaml
inventory: .ansible/inventory/production
private_key:
from_secret: automation_id_rsa
Expand All @@ -91,5 +91,37 @@ trigger:
event:
- cron
cron:
- daily_updates
- daily_maintenance
# ---

# kind: pipeline
# type: docker
# name: daily maintenance (test)

# clone:
# depth: 1

# steps:

# - name: Running maintenance tasks on development server(s)
# image: plugins/ansible:3
# environment:
# ANSIBLE_CONFIG: .ansible/ansible.cfg
# settings:
# galaxy: .ansible/roles/requirements.yaml
# playbook: .ansible/maintain.yaml
# inventory: .ansible/inventory/development
# private_key:
# from_secret: automation_id_rsa
# vault_password:
# from_secret: ansible_vault_password

# depends_on:
# - swarm bootstrap

# trigger:
# event:
# - push
# branch:
# - development
...

0 comments on commit ddf5b10

Please sign in to comment.