https://github.com/nwops/puppet-environments
A example repo of enviornments.yaml to use with r10k yaml environment feature
https://github.com/nwops/puppet-environments
Last synced: 9 months ago
JSON representation
A example repo of enviornments.yaml to use with r10k yaml environment feature
- Host: GitHub
- URL: https://github.com/nwops/puppet-environments
- Owner: nwops
- Created: 2021-12-08T23:54:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-18T18:41:05.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T23:45:49.192Z (over 1 year ago)
- Language: Shell
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# puppet-environments
A example repo of environments.yaml to use with r10k yaml environment feature
## Promote script
Example script to help automate promotion of versions to environments.
```shell
./promote.sh
Welcome to the auto promote script, to get started please specify a version to promote:
If you do not see your version, the tag in the control repo must be created first
1) v0.1.0
#? 1
selected version v0.1.0
Select an environment to promote v0.1.0 to:
1) production 3) dev1_development 5) dev2_development 7) dev3_development 9) dev4_development 11) dev5_development
2) dev1_acceptance 4) dev2_acceptance 6) dev3_acceptance 8) dev4_acceptance 10) dev5_acceptance
#? 2
Promote v0.1.0 to dev1_acceptance? [Y/n] y
[promote-v0.1.0-dev2_acceptance 42eca26] Promoting version v0.1.0 to environment dev1_acceptance
1 file changed, 1 insertion(+), 1 deletion(-)
If you are ready to push run: git push origin promote-v0.1.0-dev1_acceptance
```