diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-07-01 22:32:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-01 22:32:28 -0400 |
commit | a9d8e96663ba0520e6ec89d968790c3d23cb18af (patch) | |
tree | 533372eba2ca10b7ca0be2edad3c84c3e4e7a921 /roles/openshift_node_dnsmasq/tasks | |
parent | 7c045ba7cfb6c6d15ea2d94830e048c335bda594 (diff) | |
parent | 841cefdae64bf6e01ff85b3fcec3a12e6aeabf7e (diff) | |
download | openshift-a9d8e96663ba0520e6ec89d968790c3d23cb18af.tar.gz openshift-a9d8e96663ba0520e6ec89d968790c3d23cb18af.tar.bz2 openshift-a9d8e96663ba0520e6ec89d968790c3d23cb18af.tar.xz openshift-a9d8e96663ba0520e6ec89d968790c3d23cb18af.zip |
Merge pull request #4530 from sdodson/node-dns
Utilize node dns services
Diffstat (limited to 'roles/openshift_node_dnsmasq/tasks')
-rw-r--r-- | roles/openshift_node_dnsmasq/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/openshift_node_dnsmasq/tasks/main.yml b/roles/openshift_node_dnsmasq/tasks/main.yml index 3311f7006..d0221a94b 100644 --- a/roles/openshift_node_dnsmasq/tasks/main.yml +++ b/roles/openshift_node_dnsmasq/tasks/main.yml @@ -14,6 +14,17 @@ package: name=dnsmasq state=installed when: not openshift.common.is_atomic | bool +# this file is copied to /etc/dnsmasq.d/ when the node starts and is removed +# when the node stops. A dbus-message is sent to dnsmasq to add the same entries +# so that dnsmasq doesn't need to be restarted. Once we can use dnsmasq 2.77 or +# newer we can use --server-file option to update the servers dynamically and +# reload them by sending dnsmasq a SIGHUP. We write the file in case someone else +# triggers a restart of dnsmasq but not a node restart. +- name: Install node-dnsmasq.conf + template: + src: node-dnsmasq.conf.j2 + dest: /etc/origin/node/node-dnsmasq.conf + - name: Install dnsmasq configuration template: src: origin-dns.conf.j2 |