Skip to content
Snippets Groups Projects
Unverified Commit 183ea7fd authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #1047 from dkarpele/dkarpele-1040

Update `EXAMPLE` sections for multiuser and multihost handling.
parents fb3ff6d6 78b5e66d
No related branches found
No related tags found
No related merge requests found
...@@ -441,6 +441,15 @@ EXAMPLES = """ ...@@ -441,6 +441,15 @@ EXAMPLES = """
description: Example host description: Example host
force: yes force: yes
# Ensure multiple hosts are present with random passwords
- ipahost:
ipaadmin_password: SomeADMINpassword
hosts:
- name: host01.example.com
random: yes
- name: host02.example.com
random: yes
# Initiate generation of a random password for the host # Initiate generation of a random password for the host
- ipahost: - ipahost:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
...@@ -449,6 +458,18 @@ EXAMPLES = """ ...@@ -449,6 +458,18 @@ EXAMPLES = """
ip_address: 192.168.0.123 ip_address: 192.168.0.123
random: yes random: yes
# Ensure multiple hosts are present with principals
- ipahost:
ipaadmin_password: SomeADMINpassword
hosts:
- name: host01.example.com
principal:
- host/testhost01.example.com
- name: host02.example.com
principal:
- host/myhost01.example.com
action: member
# Ensure host is disabled # Ensure host is disabled
- ipahost: - ipahost:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
......
...@@ -548,6 +548,17 @@ EXAMPLES = """ ...@@ -548,6 +548,17 @@ EXAMPLES = """
first: brain first: brain
last: Acme last: Acme
# Create multiple users pinky and brain
- ipauser:
ipaadmin_password: SomeADMINpassword
users:
- name: pinky
first: pinky
last: Acme
- name: brain
first: brain
last: Acme
# Delete user pinky, but preserved # Delete user pinky, but preserved
- ipauser: - ipauser:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
...@@ -573,6 +584,14 @@ EXAMPLES = """ ...@@ -573,6 +584,14 @@ EXAMPLES = """
name: pinky,brain name: pinky,brain
state: enabled state: enabled
# Remove but preserve user pinky
- ipauser:
ipaadmin_password: SomeADMINpassword
users:
- name: pinky
preserve: yes
state: absent
# Remove user pinky and brain # Remove user pinky and brain
- ipauser: - ipauser:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment