summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2020-03-25 21:33:54 +0100
committerMichael Adam <obnox@samba.org>2020-03-25 22:32:23 +0100
commit600c764f5ee934fd8848ad361d35ae2968ffccc6 (patch)
tree8f7f01f25aeba3e6a0f08f0ee0cd260c4ee5cedb
parent4650647c81d052d5141c5ba3e3680b79c4cb9ef7 (diff)
downloadsamba-integration-600c764f5ee934fd8848ad361d35ae2968ffccc6.tar.gz
samba-integration-600c764f5ee934fd8848ad361d35ae2968ffccc6.tar.xz
samba-integration-600c764f5ee934fd8848ad361d35ae2968ffccc6.zip
Add a hosts file and distribute it to the nodes.
This is an attempt to unblock the issue with peer-probe in the centos-ci due to lack of name resolution from libvirt/dnsmasq. For now, the hosts file is hard-coded. If this works, we should generate it. Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--vagrant/ansible/etc-hosts3
-rw-r--r--vagrant/ansible/roles/node.prep/tasks/main.yml5
2 files changed, 8 insertions, 0 deletions
diff --git a/vagrant/ansible/etc-hosts b/vagrant/ansible/etc-hosts
new file mode 100644
index 0000000..42ae0c5
--- /dev/null
+++ b/vagrant/ansible/etc-hosts
@@ -0,0 +1,3 @@
+# TODO: generate this file
+192.168.122.100 storage0
+192.168.122.101 storage1
diff --git a/vagrant/ansible/roles/node.prep/tasks/main.yml b/vagrant/ansible/roles/node.prep/tasks/main.yml
index c68ddd9..f0b184c 100644
--- a/vagrant/ansible/roles/node.prep/tasks/main.yml
+++ b/vagrant/ansible/roles/node.prep/tasks/main.yml
@@ -12,3 +12,8 @@
copy:
src: ssh-config-setup
dest: /home/vagrant/.ssh/config
+
+- name: copy /etc/hosts
+ copy:
+ src: etc-hosts
+ dest: /etc/hosts