Last active
October 17, 2017 10:03
-
-
Save EvaSDK/e9cb0f7d1e8d9656bd65eefbfb59aa0a to your computer and use it in GitHub Desktop.
Example of problematic cross-env dependency
This file contains 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
fileserver_backend: | |
- git | |
- roots | |
gitfs_remotes: | |
- file:///srv/salt-states.git | |
file_roots: | |
base: | |
- /srv/formulas/postgres-formula | |
dev: | |
- /srv/formulas/postgres-formula |
This file contains 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
myapp: | |
dbname: mydbname | |
postgres: | |
databases: | |
mydbname: | |
owner: mydbuser | |
users: | |
mydbuser: | |
ensure: present | |
password: mydevpassword |
This file contains 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
myapp: | |
dbname: mydbname | |
postgres: | |
databases: | |
mydbname: | |
owner: mydbuser | |
users: | |
mydbuser: | |
ensure: present | |
password: myprdpassword |
This file contains 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
base: | |
'webapp.prd.domain.tld': | |
# has roles: postgres | |
- myapp.prd | |
dev: | |
'webapp.dev.domain.tld': | |
# has roles: postgres | |
- myapp.dev |
This file contains 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
# Broken single-env dependency due to conflicting state IDs | |
# Applied with salt '*' state.apply --force-color --state-output=changes 2>&1 | tee ~/state.log | |
base: | |
'roles:postgres' | |
- postgres (formula) | |
'webapp.prd.domain.tld': | |
# has roles: postgres | |
- myapp | |
dev: | |
'roles:postgres' | |
- postgres (formula) | |
'webapp.dev.domain.tld': | |
# has roles: postgres | |
- myapp |
This file contains 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
include: | |
- postgres | |
somestate: | |
file.managed: | |
- blabla | |
- require: | |
- postgres_database: {{ pillar.myapp.dbname }}_database |
This file contains 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
# Broken cross-env dependency due to missing state IDs | |
# Applied with salt '*' state.apply --force-color --state-output=changes 2>&1 | tee ~/state.log | |
base: | |
'roles:postgres' | |
- postgres (formula) | |
'webapp.prd.domain.tld': | |
# has roles: postgres | |
- myapp | |
dev: | |
'webapp.dev.domain.tld': | |
# has roles: postgres | |
- myapp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment