- "client.smbdata"
- cephadm.wait_for_service:
service: smb.saserv1
- - cephadm.exec:
+ - template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U smbuser1%insecure321 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
service: smb.modusr1
# verify CTDB is healthy, cluster well formed
-- cephadm.exec:
+- template.exec:
host.a:
- sleep 30
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.modusr1\")))[-1].name' > /tmp/svcname"
service: smb.modusr1
# verify CTDB status doesn't include the node that was removed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.modusr1\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb listnodes > /tmp/ctdb_listnodes"
- cephadm.wait_for_service:
service: smb.admem1
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cephadm.wait_for_service:
service: smb.modusr1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
service: smb.modusr1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share2 -c ls"
# verify CTDB is healthy, cluster well formed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.modusr1\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb status > /tmp/ctdb_status"
- rm -rf /tmp/svcname /tmp/ctdb_status
# Test the assigned VIP
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{VIP0}}/share1 -c ls"
- cmd: rados --pool=.smb -N uctdb1 get cluster.meta.json /dev/stdout
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user2%t3stP4ss2 //{{'host.a'|role_to_remote|attr('ip_address')}}/share2 -c ls"
# verify CTDB is healthy, cluster well formed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.uctdb1\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb status > /tmp/ctdb_status"
- rm -rf /tmp/svcname /tmp/ctdb_status
# Test a different host in the cluster
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.c'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cmd: rados --pool=.smb -N adctdb1 get cluster.meta.json /dev/stdout
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share2 -c ls"
# verify CTDB is healthy, cluster well formed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.adctdb1\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb status > /tmp/ctdb_status"
- rm -rf /tmp/svcname /tmp/ctdb_status
# Test a different host in the cluster
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.c'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cmd: rados --pool=.smb -N adipctdb get cluster.meta.json /dev/stdout
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share2 -c ls"
# verify CTDB is healthy, cluster well formed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.adipctdb\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb status > /tmp/ctdb_status"
- rm -rf /tmp/svcname /tmp/ctdb_status
# Test the two assigned VIPs
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{VIP0}}/share1 -c ls"
- cmd: rados --pool=.smb -N ac2 get cluster.meta.json /dev/stdout
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -p4455 -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/s1ac2 -c ls"
# verify CTDB is healthy, cluster 1 is well formed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.ac1\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb status > /tmp/ctdb_status"
- grep 'Number of nodes:3' /tmp/ctdb_status
- rm -rf /tmp/svcname /tmp/ctdb_status
# verify CTDB is healthy, cluster 2 is well formed
-- cephadm.exec:
+- template.exec:
host.a:
- "{{ctx.cephadm}} ls --no-detail | {{ctx.cephadm}} shell jq -r 'map(select(.name | startswith(\"smb.ac2\")))[-1].name' > /tmp/svcname"
- "{{ctx.cephadm}} enter -n $(cat /tmp/svcname) ctdb status > /tmp/ctdb_status"
- rm -rf /tmp/svcname /tmp/ctdb_status
# Test the two assigned VIPs on cluster 1
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{VIP0}}/share1 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{VIP0}}/share2 -c ls"
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{VIP1}}/share2 -c ls"
# Test the assigned VIP on cluster 2
-- cephadm.exec:
+- template.exec:
host.d:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -p4455 -U DOMAIN1\\\\ckent%1115Rose. //{{VIP2}}/s1ac2 -c ls"
- cephadm.wait_for_service:
service: smb.modtest1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cephadm.wait_for_service:
service: smb.modusr1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cephadm.wait_for_service:
service: smb.modtest1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cephadm.wait_for_service:
service: smb.altports
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -p4455 -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cephadm.wait_for_service:
service: smb.modtest1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
- cephadm.wait_for_service:
service: smb.modtest1
# Check if shares exist
-- cephadm.exec:
+- template.exec:
host.b:
- sleep 30
- "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U DOMAIN1\\\\ckent%1115Rose. //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"