This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The basic ideas are: | |
// 1. We could use the cake Setup method thing to configure what the build does. | |
// 2. We can use implementation of interfaces to signal what needs to happen for each build step. | |
// 3. Custom steps would involve using a generic class, or creating your own and implementing required interfaces. | |
// 4. Each step would have to store state, e.g. a lock file to show it has been run. | |
// 5. The delivery step would use the strong typing to know which artefacts _should_ be there and what it should do with them. | |
// 6. You can pass a single parameter to the cake script and run it multiple times in parallel (maybe). You can also just run the "build-all" task to do it sequentially. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Interpret whether the input needs to go to ansible, or ansible-playbook and run appropriately | |
# First update the git repos for each project | |
/usr/bin/update-git-repos | |
export ANSIBLE_FORCE_COLOR=1 | |
export ANSIBLE_RETRY_FILES_ENABLED=False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Get list of databases | |
command: cat /etc/oratab | |
register: databases | |
changed_when: false | |
- name: Download latest create_db scripts | |
local_action: "git [email protected]:infrastructure/mosaic_infra_scripts.git dest=/tmp/mosaic_infra_scripts version={{ branch }}" |
NewerOlder