diff options
author | Jason DeTiberus <detiber@gmail.com> | 2016-05-05 13:08:48 -0400 |
---|---|---|
committer | Jason DeTiberus <detiber@gmail.com> | 2016-05-05 13:08:48 -0400 |
commit | 2534b73692e16f54ffdd623e305c3cd1f494eff3 (patch) | |
tree | 96fca3cb076b2afe87ab7f51c93f4d434e5b5f00 /roles/dns/templates/named.service.j2 | |
parent | 2f87e0c3f19d313cf16bf91d88a00c7a2938a3d8 (diff) | |
parent | c76ae7d9398e3a04ded06c7e54811ad7a379921a (diff) | |
download | openshift-2534b73692e16f54ffdd623e305c3cd1f494eff3.tar.gz openshift-2534b73692e16f54ffdd623e305c3cd1f494eff3.tar.bz2 openshift-2534b73692e16f54ffdd623e305c3cd1f494eff3.tar.xz openshift-2534b73692e16f54ffdd623e305c3cd1f494eff3.zip |
Merge pull request #1688 from jprovaznik/dns
Allow containerized deployment of dns role
Diffstat (limited to 'roles/dns/templates/named.service.j2')
-rw-r--r-- | roles/dns/templates/named.service.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/dns/templates/named.service.j2 b/roles/dns/templates/named.service.j2 new file mode 100644 index 000000000..566739f25 --- /dev/null +++ b/roles/dns/templates/named.service.j2 @@ -0,0 +1,15 @@ +[Unit] +Requires=docker.service +After=docker.service +PartOf=docker.service + +[Service] +Type=simple +TimeoutStartSec=5m +ExecStartPre=/usr/bin/docker run --rm -v /etc/named.conf:/etc/named.conf -v /var/named:/var/named:z bind named-checkconf -z /etc/named.conf +ExecStartPre=-/usr/bin/docker rm -f bind +ExecStart=/usr/bin/docker run --name bind -p 53:53/udp -v /var/log:/var/log -v /etc/named.conf:/etc/named.conf -v /var/named:/var/named:z bind +ExecStop=/usr/bin/docker stop bind + +[Install] +WantedBy=docker.service |