summaryrefslogtreecommitdiff
path: root/roles/unix_users/subplot.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/unix_users/subplot.yaml')
-rw-r--r--roles/unix_users/subplot.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/unix_users/subplot.yaml b/roles/unix_users/subplot.yaml
new file mode 100644
index 0000000..e495602
--- /dev/null
+++ b/roles/unix_users/subplot.yaml
@@ -0,0 +1,29 @@
+- then: the host has no user {username}
+ impl:
+ python:
+ function: host_does_not_have_user
+
+- then: the host has user {username}
+ impl:
+ python:
+ function: host_has_user
+
+- then: the user {username} on host has encrypted password {password}
+ impl:
+ python:
+ function: host_user_has_password
+
+- then: the user {username} on host has shell {shell}
+ impl:
+ python:
+ function: host_user_has_shell
+
+- then: the user {username} on host has authorized_keys containing "{substring}"
+ impl:
+ python:
+ function: host_user_has_authorized_keys_containing
+
+- then: the user {username} on host is in group {group}
+ impl:
+ python:
+ function: host_user_is_in_group