updated docker state
This commit is contained in:
parent
47549c25ee
commit
a3361646f2
12
states/docker/containers.sls
Normal file
12
states/docker/containers.sls
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
{%- from "docker/map.jinja" import docker with context %}
|
||||||
|
{% for k,v in docker.containers.items() -%}
|
||||||
|
docker-container-{{ k }}:
|
||||||
|
docker_container.running:
|
||||||
|
- name: {{ k }}
|
||||||
|
{%- for i,j in v.items() %}
|
||||||
|
- {{ i }}: {{ j }}
|
||||||
|
|
||||||
|
{% endfor -%}
|
||||||
|
|
||||||
|
{% endfor -%}
|
@ -7,7 +7,10 @@ docker:
|
|||||||
- docker-ce
|
- docker-ce
|
||||||
- docker-ce-cli
|
- docker-ce-cli
|
||||||
pip_pkgs:
|
pip_pkgs:
|
||||||
|
- docker
|
||||||
- docker-compose
|
- docker-compose
|
||||||
daemon:
|
daemon:
|
||||||
config:
|
config:
|
||||||
storage-driver: overlay2
|
storage-driver: overlay2
|
||||||
|
iptables: true
|
||||||
|
containers: {}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
include:
|
include:
|
||||||
|
- repos
|
||||||
- .install
|
- .install
|
||||||
- .config
|
- .config
|
||||||
- .service
|
- .service
|
||||||
|
- .containers
|
Loading…
Reference in New Issue
Block a user