networking
This commit is contained in:
@@ -78,15 +78,27 @@
|
|||||||
dest: "/container/volumes/{{item}}/"
|
dest: "/container/volumes/{{item}}/"
|
||||||
with_items: [ "cm", "exec", "sub"]
|
with_items: [ "cm", "exec", "sub"]
|
||||||
|
|
||||||
|
- name: "create docker network to make service discovery work"
|
||||||
|
docker_network:
|
||||||
|
name: condor
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: "run htcondor containers"
|
- name: "run htcondor containers"
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "condor-cm"
|
name: "condor-{{item}}"
|
||||||
|
hostname: "condor-{{item}}"
|
||||||
|
domainname: "htc.local"
|
||||||
image: htcondor
|
image: htcondor
|
||||||
state: started
|
state: started
|
||||||
detach: True
|
detach: True
|
||||||
cleanup: True
|
cleanup: True
|
||||||
|
networks_cli_compatible: True
|
||||||
|
networks:
|
||||||
|
- name: "condor"
|
||||||
|
aliases: [ "condor-{{item}}.htc.local" ]
|
||||||
volumes:
|
volumes:
|
||||||
- "/container/volumes/cm/:/etc/condor/:rw"
|
- "/container/volumes/{{item}}/:/etc/condor/:rw"
|
||||||
|
with_items: [ "cm", "exec", "sub"]
|
||||||
# auto_remove: True
|
# auto_remove: True
|
||||||
# mounts:
|
# mounts:
|
||||||
# src: /container/volumes/cm/
|
# src: /container/volumes/cm/
|
||||||
|
Reference in New Issue
Block a user