Skip to content

Fix Liquid syntax errors due to embedded yaml and ini data #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/documentation/plugins/idoverrideuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ Usage

Example inventory file

{% raw %}
```ini
[ipaserver]
ipaserver.test.local
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -63,10 +66,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
idview: test_idview
anchor: test_user
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with description

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -81,10 +86,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
description: "test_user description"
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without description

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -99,10 +106,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
description: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with internal name test_123_user

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -117,10 +126,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
name: test_123_user
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without internal name

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -135,10 +146,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
name: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with uid 20001

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -153,10 +166,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
uid: 20001
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without uid

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -171,10 +186,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
uid: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with gecos "Gecos Test"

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -189,10 +206,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
gecos: Gecos Test
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without gecos

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -207,10 +226,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
gecos: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with gidnumber

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -225,10 +246,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
gidnumber: 20001
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without gidnumber

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -243,10 +266,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
gidnumber: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with homedir /Users

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -261,10 +286,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
homedir: /Users
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without homedir

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -279,10 +306,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
homedir: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with shell

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -297,10 +326,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
shell: /bin/someshell
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without shell

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -315,10 +346,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
shell: ""
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with sshpubkey

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -334,10 +367,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
sshpubkey:
- ssh-rsa AAAAB3NzaC1yc2EAAADAQABAAABgQCqmVDpEX5gnSjKuv97Ay ...
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without sshpubkey

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -352,10 +387,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
sshpubkey: []
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with 1 certificate

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -371,10 +408,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
certificate:
- "{{ lookup('file', 'cert1.b64', rstrip=False) }}"
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with 3 certificate members

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -393,10 +432,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
- "{{ lookup('file', 'cert3.b64', rstrip=False) }}"
action: member
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without 2 certificate members

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -415,10 +456,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
action: member
state: absent
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview without certificates

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -433,10 +476,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
certificate: []
```
{% endraw %}


Example playbook to make sure test user test_user is present in idview test_idview with enabling falling back to AD DC LDAP when resolving AD trusted objects. (For two-way trusts only.)

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -451,10 +496,12 @@ Example playbook to make sure test user test_user is present in idview test_idvi
anchor: test_user
fallback_to_ldap: true
```
{% endraw %}


Example playbook to make sure test user test_user is absent in idview test_idview

{% raw %}
```yaml
---
- name: Playbook to manage idoverrideuser
Expand All @@ -470,6 +517,7 @@ Example playbook to make sure test user test_user is absent in idview test_idvie
continue: true
state: absent
```
{% endraw %}


Variables
Expand Down
14 changes: 14 additions & 0 deletions src/documentation/plugins/idrange.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ Usage

Example inventory file

{% raw %}
```ini
[ipaserver]
ipaserver.test.local
```
{% endraw %}

Example playbook to ensure a local domain idrange is present:

{% raw %}
```yaml
---
- name: Playbook to manage IPA idrange.
Expand All @@ -71,9 +74,11 @@ Example playbook to ensure a local domain idrange is present:
base_id: 150000
range_size: 200000
```
{% endraw %}

Example playbook to ensure a local domain idrange is present, with RID and secondary RID base values:

{% raw %}
```yaml
---
- name: Playbook to manage IPA idrange.
Expand All @@ -90,9 +95,11 @@ Example playbook to ensure a local domain idrange is present, with RID and secon
rid_base: 1000000
secondary_rid_base: 200000000
```
{% endraw %}

Example playbook to ensure an AD-trust idrange is present, with range type 'trust-ad' and using domain SID:

{% raw %}
```yaml
---
- name: Playbook to manage IPA idrange.
Expand All @@ -109,9 +116,11 @@ Example playbook to ensure an AD-trust idrange is present, with range type 'trus
idrange_type: ipa-ad-trust
dom_sid: S-1-5-21-2870384104-3340008087-3140804251
```
{% endraw %}

Example playbook to ensure an AD-trust idrange is present, with range type 'trust-ad-posix' and using domain SID:

{% raw %}
```yaml
---
- name: Playbook to manage IPA idrange.
Expand All @@ -127,9 +136,11 @@ Example playbook to ensure an AD-trust idrange is present, with range type 'trus
idrange_type: ipa-ad-trust-posix
dom_name: ad.ipa.test
```
{% endraw %}

Example playbook to ensure an AD-trust idrange has auto creation of groups set to 'hybrid':

{% raw %}
```yaml
---
- name: Playbook to manage IPA idrange.
Expand All @@ -144,9 +155,11 @@ Example playbook to ensure an AD-trust idrange has auto creation of groups set t
name: ad_id_range
auto_private_groups: "hybrid"
```
{% endraw %}

Example playbook to make sure an idrange is absent:

{% raw %}
```yaml
---
- name: Playbook to manage IPA idrange.
Expand All @@ -160,6 +173,7 @@ Example playbook to make sure an idrange is absent:
name: ad_id_range
state: absent
```
{% endraw %}


Variables
Expand Down
Loading