diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-19 16:15:42 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-06-30 16:22:53 -0400 |
commit | d195bb2dba76da80df33b777a13d2d719e74b735 (patch) | |
tree | c4fd95064213e73ab217f365d476d5a08051923d /roles/openshift_node_dnsmasq/tasks | |
parent | a4eccf0279529c2179afd72cf2b478e1ff51cf86 (diff) | |
download | openshift-d195bb2dba76da80df33b777a13d2d719e74b735.tar.gz openshift-d195bb2dba76da80df33b777a13d2d719e74b735.tar.bz2 openshift-d195bb2dba76da80df33b777a13d2d719e74b735.tar.xz openshift-d195bb2dba76da80df33b777a13d2d719e74b735.zip |
Run dns on the node and use that for dnsmasq
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 |