summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/sane_debian_system/subplot.yaml16
-rw-r--r--roles/unix_users/subplot.yaml24
2 files changed, 30 insertions, 10 deletions
diff --git a/roles/sane_debian_system/subplot.yaml b/roles/sane_debian_system/subplot.yaml
index 9ac1ee3..b7f03cb 100644
--- a/roles/sane_debian_system/subplot.yaml
+++ b/roles/sane_debian_system/subplot.yaml
@@ -1,11 +1,19 @@
- then: the host has the {package} package installed
- function: host_has_package_installed
+ impl:
+ python:
+ function: host_has_package_installed
- then: the host has an empty {pathname} directory
- function: host_directory_is_empty
+ impl:
+ python:
+ function: host_directory_is_empty
- then: the host has hostname {hostname}
- function: host_hostname_is
+ impl:
+ python:
+ function: host_hostname_is
- then: the host has {hostname} in /etc/hosts for {addr}
- function: host_hostname_has_address
+ impl:
+ python:
+ function: host_hostname_has_address
diff --git a/roles/unix_users/subplot.yaml b/roles/unix_users/subplot.yaml
index bf7c4b9..e495602 100644
--- a/roles/unix_users/subplot.yaml
+++ b/roles/unix_users/subplot.yaml
@@ -1,17 +1,29 @@
- then: the host has no user {username}
- function: host_does_not_have_user
+ impl:
+ python:
+ function: host_does_not_have_user
- then: the host has user {username}
- function: host_has_user
+ impl:
+ python:
+ function: host_has_user
- then: the user {username} on host has encrypted password {password}
- function: host_user_has_password
+ impl:
+ python:
+ function: host_user_has_password
- then: the user {username} on host has shell {shell}
- function: host_user_has_shell
+ impl:
+ python:
+ function: host_user_has_shell
- then: the user {username} on host has authorized_keys containing "{substring}"
- function: host_user_has_authorized_keys_containing
+ impl:
+ python:
+ function: host_user_has_authorized_keys_containing
- then: the user {username} on host is in group {group}
- function: host_user_is_in_group
+ impl:
+ python:
+ function: host_user_is_in_group