From c76ae7d9398e3a04ded06c7e54811ad7a379921a Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Thu, 31 Mar 2016 10:57:30 +0200 Subject: Allow containerized deployment of dns role If containerized, docker image for bind service is built during ansible run. The default named systemd unit file triggers named-checkconf on named service start so it's not neccessary to include this validation when copying file templates (equivalent named-checkconf is included in the containerized named unit file too). --- roles/dns/templates/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/dns/templates/Dockerfile (limited to 'roles/dns/templates/Dockerfile') diff --git a/roles/dns/templates/Dockerfile b/roles/dns/templates/Dockerfile new file mode 100644 index 000000000..cdff0a228 --- /dev/null +++ b/roles/dns/templates/Dockerfile @@ -0,0 +1,11 @@ +FROM {{ base_docker_image }} +MAINTAINER Jan Provaznik + +# install main packages: +RUN yum -y update; yum clean all; +RUN yum -y install bind-utils bind + +EXPOSE 53 + +# start services: +CMD ["/usr/sbin/named", "-f"] -- cgit v1.2.3