summaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2020-04-03 17:34:27 +0100
committerMichael Adam <obnox@samba.org>2020-04-28 08:11:24 +0200
commita1297cd340dbd510fcb64622495628357306220f (patch)
tree033f80bdf9d242d92c32e8c14d7bac059429998a /vagrant
parent977e7ee062ed96e3b5cfb1450ac348fac07d9eb8 (diff)
downloadsamba-integration-a1297cd340dbd510fcb64622495628357306220f.tar.gz
samba-integration-a1297cd340dbd510fcb64622495628357306220f.tar.xz
samba-integration-a1297cd340dbd510fcb64622495628357306220f.zip
Add a README file in the clients created
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/ansible/roles/client.prep/tasks/main.yml8
-rw-r--r--vagrant/ansible/roles/client.prep/templates/README.j25
2 files changed, 13 insertions, 0 deletions
diff --git a/vagrant/ansible/roles/client.prep/tasks/main.yml b/vagrant/ansible/roles/client.prep/tasks/main.yml
index 63e512e..a2fbe9e 100644
--- a/vagrant/ansible/roles/client.prep/tasks/main.yml
+++ b/vagrant/ansible/roles/client.prep/tasks/main.yml
@@ -53,3 +53,11 @@
with_sequence: start=0 end={{ num_hosts |int -1 }}
loop_control:
loop_var: testhost_num
+
+- name: Create a README file
+ template:
+ src: README.j2
+ dest: /root/README
+ owner: root
+ group: root
+ mode: '0644'
diff --git a/vagrant/ansible/roles/client.prep/templates/README.j2 b/vagrant/ansible/roles/client.prep/templates/README.j2
new file mode 100644
index 0000000..d55f642
--- /dev/null
+++ b/vagrant/ansible/roles/client.prep/templates/README.j2
@@ -0,0 +1,5 @@
+Welcome to client1
+
+- The setup contains {{ ctdb_network_public_interfaces|length }} public ip addresses which are accessible from the clients on hostname testhost[0..n]
+- There are {{ samba_users|length }} test users available.
+- The SMB mounts are available to mount in /test-mnt/<hostname>/<username> and the /etc/fstab entries have already been added.