diff options
Diffstat (limited to 'tests/cloud_tests/testcases/modules/set_password_expire.yaml')
-rw-r--r-- | tests/cloud_tests/testcases/modules/set_password_expire.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/modules/set_password_expire.yaml b/tests/cloud_tests/testcases/modules/set_password_expire.yaml new file mode 100644 index 00000000..789604b0 --- /dev/null +++ b/tests/cloud_tests/testcases/modules/set_password_expire.yaml @@ -0,0 +1,30 @@ +# +# Expire password for all users +# +required_features: + - sshd +cloud_config: | + #cloud-config + chpasswd: { expire: True } + users: + - name: tom + password: $1$xyz$sPMsLNmf66Ohl.ol6JvzE. + lock_passwd: false + - name: dick + password: $1$xyz$sPMsLNmf66Ohl.ol6JvzE. + lock_passwd: false + - name: harry + password: $1$xyz$sPMsLNmf66Ohl.ol6JvzE. + lock_passwd: false + - name: jane + password: $1$xyz$sPMsLNmf66Ohl.ol6JvzE. + lock_passwd: false +collect_scripts: + shadow: | + #!/bin/bash + cat /etc/shadow + sshd_config: | + #!/bin/bash + grep '^PasswordAuth' /etc/ssh/sshd_config + +# vi: ts=4 expandtab |