Salt + Docker evaluation issue
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
"sameersbn/mysql:latest": | |
docker.pulled: | |
- require: | |
- service: docker | |
gitlab_mysql_container: | |
docker.installed: | |
- name: mysql | |
- image: "sameersbn/mysql:latest" | |
- binds: | |
/opt/mysql/data: /var/lib/mysql | |
- require: | |
- docker: "sameersbn/mysql:latest" | |
gitlab_mysql: | |
docker.running: | |
- name: mysql | |
- binds: | |
/opt/mysql/data: /var/lib/mysql | |
- require: | |
- docker: gitlab_mysql_container | |
{{ pillar['mysql']['login']['uname'] }}: | |
mysql_user.present: | |
- host: 172.17.%.% | |
- password: {{ pillar['mysql']['login']['passwd'] }} | |
- connection_host: {{ salt['cmd.run']("docker inspect mysql | grep IPAddres | awk -F '\"' '{print $4}'") }} | |
- connection_user: root | |
- require: | |
- docker: gitlab_mysql | |
- pkg: python-mysqldb | |
- sls: gitlab |
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
local: | |
Data failed to compile: | |
---------- | |
Rendering SLS 'base:mysql-setup' failed: Unknown yaml render error; line 8 | |
--- | |
[...] | |
gitlab: | |
mysql_user.present: | |
- host: 172.17.%.% | |
- password: H54viC0z2ZHivaGMQnV7gz07b | |
- connection_host: Error: No such image or container: mysql <====================== | |
- connection_user: root | |
- require: | |
- docker: gitlab_mysql | |
- pkg: python-mysqldb | |
- sls: gitlab | |
[...] | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment