From 284e3817e060e70d9e096035abee737b778d5cb1 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 6 Jan 2019 12:20:27 -0600 Subject: [PATCH] jenkins0: Bind Samba to real interface only Because *jenkins0.pyrocufflink.blue* runs Docker, it has an extra virtual interface and IP address, for container communication. By default, Samba registers all IP addresses in DNS, and cannot differentiate between the actual interface and the Docker bridge. This can cause other hosts to attempt to contact *jenkins0.pyrocufflink.blue* using the wrong address. The `samba_interfaces` variable controls the value of the `interfaces` global configuration option for Samba. One of the things this option controls is which addresses to register in DNS. By setting it to the network address of the *pyrocufflink.blue* network, we can prevent the virtual address from being used at all. --- host_vars/jenkins0.pyrocufflink.blue | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 host_vars/jenkins0.pyrocufflink.blue diff --git a/host_vars/jenkins0.pyrocufflink.blue b/host_vars/jenkins0.pyrocufflink.blue new file mode 100644 index 0000000..0dc5da7 --- /dev/null +++ b/host_vars/jenkins0.pyrocufflink.blue @@ -0,0 +1,2 @@ +samba_interfaces: +- '{{ dch_networks.blue.ipv4_address }}'