From a4b2401e4fc6f1e1f5a07eb5ebd1c62f19445c9d Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Wed, 4 Apr 2018 16:23:26 +0200 Subject: [PATCH] Add example client and cluster playbooks and also cluster inventory file --- install-client.yml | 8 ++++++++ install-cluster.yml | 24 ++++++++++++++++++++++++ inventory/hosts.cluster | 35 +++++++++++++++++++++++++++++++++++ uninstall-client.yml | 8 ++++++++ uninstall-cluster.yml | 24 ++++++++++++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 install-client.yml create mode 100644 install-cluster.yml create mode 100644 inventory/hosts.cluster create mode 100644 uninstall-client.yml create mode 100644 uninstall-cluster.yml diff --git a/install-client.yml b/install-client.yml new file mode 100644 index 00000000..62e97440 --- /dev/null +++ b/install-client.yml @@ -0,0 +1,8 @@ +--- +- name: Playbook to configure IPA clients with username/password + hosts: ipaclients + become: true + + roles: + - role: ipaclient + state: present diff --git a/install-cluster.yml b/install-cluster.yml new file mode 100644 index 00000000..5a0781dd --- /dev/null +++ b/install-cluster.yml @@ -0,0 +1,24 @@ +--- +- name: Install IPA servers + hosts: ipaserver + become: true + + roles: + - role: ipaserver + state: present + +- name: Install IPA replicas + hosts: ipareplicas + become: true + + roles: + - role: ipareplica + state: present + +- name: Install IPA clients + hosts: ipaclients + become: true + + roles: + - role: ipaclient + state: present diff --git a/inventory/hosts.cluster b/inventory/hosts.cluster new file mode 100644 index 00000000..b1d0ea4e --- /dev/null +++ b/inventory/hosts.cluster @@ -0,0 +1,35 @@ +[ipaserver] +ipaserver.test.local + +[ipaserver:vars] +#ipaserver_setup_dns=yes +#ipaserver_auto_forwarders=yes +#ipaserver_no_firewalld=no + + +[ipareplicas] +ipareplica1.test.local + +[ipareplicas:vars] +ipaclient_force_join=yes + + +[ipaclients] +ipaclient1.test.local +ipaclient2.test.local + +[ipaclients:vars] +#ipaclient_use_otp=yes +ipaclient_allow_repair=yes + + +[ipa:children] +ipaserver +ipareplicas +ipaclients + +[ipa:vars] +ipaadmin_password=password1 +ipadm_password=password1 +ipaserver_domain=test.local +ipaserver_realm=TEST.LOCAL diff --git a/uninstall-client.yml b/uninstall-client.yml new file mode 100644 index 00000000..80313756 --- /dev/null +++ b/uninstall-client.yml @@ -0,0 +1,8 @@ +--- +- name: Playbook to unconfigure IPA clients + hosts: ipaclients + become: true + + roles: + - role: ipaclient + state: absent diff --git a/uninstall-cluster.yml b/uninstall-cluster.yml new file mode 100644 index 00000000..b8cec9ba --- /dev/null +++ b/uninstall-cluster.yml @@ -0,0 +1,24 @@ +--- +- name: Uninstall IPA clients + hosts: ipaclients + become: true + + roles: + - role: ipaclient + state: absent + +- name: Uninstall IPA replicas + hosts: ipareplicas + become: true + + roles: + - role: ipareplica + state: absent + +- name: Uninstall IPA servers + hosts: ipaserver + become: true + + roles: + - role: ipaserver + state: absent -- GitLab