Skip to content

Commit

Permalink
pipeline: use merged stack config
Browse files Browse the repository at this point in the history
  • Loading branch information
talset committed Apr 30, 2018
1 parent 0154bc1 commit dcadec3
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions pipeline/external-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ resources:
paths:
- ansible/*

# # The Ansible config (will be merged with the stack)
# - name: ((project))-config-ansible
# type: git
# source:
# uri: ((external-worker_config_git_repository))
# branch: ((external-worker_config_git_branch))
# check_every: 2m
# private_key: ((external-worker_config_git_key))
# paths:
# - ((project))/ansible/*
# The Ansible config (will be merged with the stack)
- name: ((project))-config-ansible
type: git
source:
uri: ((external-worker_config_git_repository))
branch: ((external-worker_config_git_branch))
check_every: 2m
private_key: ((external-worker_config_git_key))
paths:
- ((project))/ansible/*

# The AMI builder for the worker servers (for ASG scale-up)
- name: ((project))-worker-build-ami
Expand Down Expand Up @@ -172,25 +172,24 @@ jobs:

- get: ((project))-stack-ansible
trigger: true
# - get: ((project))-config-ansible
# trigger: true

# - task: merge-stack-and-config
# config:
# <<: *merge-stack-and-config
# inputs:
# - name: project))-config-ansible
# path: "config"
# - name: ((project))-stack-ansible
# path: "stack"
# params:
# CONFIG_PATH: ansible
# STACK_PATH: stack-((project))/ansible
- get: ((project))-config-ansible
trigger: true

- task: merge-stack-and-config
config:
<<: *merge-stack-and-config
inputs:
- name: ((project))-config-ansible
path: "config"
- name: ((project))-stack-ansible
path: "stack"
params:
CONFIG_PATH: external-worker/ansible
STACK_PATH: ansible

- put: ((project))-worker-build-ami
params:
# template: merged-stack/packer/worker/packer_template.json
template: ((project))-stack-ansible/ansible/packer_template.json
template: merged-stack/packer_template.json
env: ((env))
project: ((project))
role: worker
Expand Down

0 comments on commit dcadec3

Please sign in to comment.