mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
Update README.md
This commit is contained in:
72
README.md
72
README.md
@@ -234,6 +234,42 @@ ipaserver_realm=TEST.LOCAL
|
|||||||
```
|
```
|
||||||
All these settings will be available in the ```[ipaserver]```, ```[ipareplicas]``` and ```[ipaclient]``` groups.
|
All these settings will be available in the ```[ipaserver]```, ```[ipareplicas]``` and ```[ipaclient]``` groups.
|
||||||
|
|
||||||
|
**Topology**
|
||||||
|
|
||||||
|
With this playbook it is possible to add a list of topology segments using the `ipatopologysegment` module.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
- name: Add topology segments
|
||||||
|
hosts: ipaserver
|
||||||
|
become: true
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
vars:
|
||||||
|
ipaadmin_password: password1
|
||||||
|
ipatopology_segments:
|
||||||
|
- {suffix: domain, left: replica1.test.local, right: replica2.test.local}
|
||||||
|
- {suffix: domain, left: replica2.test.local, right: replica3.test.local}
|
||||||
|
- {suffix: domain, left: replica3.test.local, right: replica4.test.local}
|
||||||
|
- {suffix: domain+ca, left: replica4.test.local, right: replica1.test.local}
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Add topology segment
|
||||||
|
ipatopologysegment:
|
||||||
|
password: "{{ ipaadmin_password }}"
|
||||||
|
suffix: "{{ item.suffix }}"
|
||||||
|
name: "{{ item.name | default(omit) }}"
|
||||||
|
left: "{{ item.left }}"
|
||||||
|
right: "{{ item.right }}"
|
||||||
|
#state: present
|
||||||
|
#state: absent
|
||||||
|
#state: checked
|
||||||
|
state: reinitialized
|
||||||
|
loop: "{{ ipatopology_segments | default([]) }}"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Playbooks
|
Playbooks
|
||||||
=========
|
=========
|
||||||
|
|
||||||
@@ -301,42 +337,6 @@ ansible-playbook -v -i inventory/hosts install-cluster.yml
|
|||||||
```
|
```
|
||||||
This will deploy the server, replicas and clients defined in the inventory file.
|
This will deploy the server, replicas and clients defined in the inventory file.
|
||||||
|
|
||||||
How to add tooplogy segments
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
With this playbook it is possible to add a list of topology segments using the `ipatopologysegment` module.
|
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
- name: Add topology segments
|
|
||||||
hosts: ipaserver
|
|
||||||
become: true
|
|
||||||
gather_facts: false
|
|
||||||
|
|
||||||
vars:
|
|
||||||
ipaadmin_password: password1
|
|
||||||
ipatopology_segments:
|
|
||||||
- {suffix: domain, left: replica1.test.local, right: replica2.test.local}
|
|
||||||
- {suffix: domain, left: replica2.test.local, right: replica3.test.local}
|
|
||||||
- {suffix: domain, left: replica3.test.local, right: replica4.test.local}
|
|
||||||
- {suffix: domain+ca, left: replica4.test.local, right: replica1.test.local}
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Add topology segment
|
|
||||||
ipatopologysegment:
|
|
||||||
password: "{{ ipaadmin_password }}"
|
|
||||||
suffix: "{{ item.suffix }}"
|
|
||||||
name: "{{ item.name | default(omit) }}"
|
|
||||||
left: "{{ item.left }}"
|
|
||||||
right: "{{ item.right }}"
|
|
||||||
#state: present
|
|
||||||
#state: absent
|
|
||||||
#state: checked
|
|
||||||
state: reinitialized
|
|
||||||
loop: "{{ ipatopology_segments | default([]) }}"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
Roles
|
Roles
|
||||||
=====
|
=====
|
||||||
|
|||||||
Reference in New Issue
Block a user