2017-06-23 11:00:21 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Openstack nova-controller Container
|
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=0
|
|
|
|
Restart=always
|
2017-07-12 11:07:36 +02:00
|
|
|
ExecStartPre=-/usr/bin/docker rm -f %n
|
2017-06-23 11:00:21 +02:00
|
|
|
ExecStart=/usr/bin/docker run --name %n \
|
|
|
|
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }} \
|
|
|
|
--add-host=controller:{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }} \
|
2017-07-12 11:07:36 +02:00
|
|
|
--add-host=keystone:{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }} \
|
2017-06-23 11:00:21 +02:00
|
|
|
-p 8774:8774 \
|
|
|
|
-p 8778:8778 \
|
|
|
|
hpc/novacontroller /etc/run.sh
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|