Ipsilon: improve the HBAC rule
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
35f2aeb15d
commit
157f1d2d52
2 changed files with 33 additions and 20 deletions
|
@ -1,5 +1,38 @@
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=ipsilon:ipsilon_stg"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=ipsilon:ipsilon_stg"
|
||||||
|
|
||||||
|
# This next block configures IPA, it only needs to be run on one member of the cluster
|
||||||
|
- name: setup IPA
|
||||||
|
hosts: ipa[0]:ipa_stg[0]
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Add the ipsilon HBAC service in IPA
|
||||||
|
ipahbacsvc:
|
||||||
|
name: ipsilon
|
||||||
|
description: Ipsilon authentication service
|
||||||
|
ipaadmin_password: "{{ ipa_admin_password }}"
|
||||||
|
tags:
|
||||||
|
- ipsilon
|
||||||
|
|
||||||
|
- name: Allow login through ipsilon
|
||||||
|
ipahbacrule:
|
||||||
|
name: ipsilon
|
||||||
|
description: Login through ipsilon
|
||||||
|
hbacsvc:
|
||||||
|
- ipsilon
|
||||||
|
usercategory: all
|
||||||
|
host: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}"
|
||||||
|
ipaadmin_password: "{{ ipa_admin_password }}"
|
||||||
|
tags:
|
||||||
|
- ipsilon
|
||||||
|
|
||||||
|
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: ipsilon:ipsilon_stg
|
hosts: ipsilon:ipsilon_stg
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -124,26 +124,6 @@
|
||||||
- include_role:
|
- include_role:
|
||||||
name: ipa/client
|
name: ipa/client
|
||||||
|
|
||||||
- name: Add the ipsilon HBAC service in IPA
|
|
||||||
ipahbacsvc:
|
|
||||||
name: ipsilon
|
|
||||||
description: Ipsilon authentication service
|
|
||||||
ipaadmin_password: "{{ ipa_admin_password }}"
|
|
||||||
delegate_to: "{{ ipa_server }}"
|
|
||||||
tags:
|
|
||||||
- ipsilon
|
|
||||||
|
|
||||||
- name: Allow login through ipsilon
|
|
||||||
ipahbacrule:
|
|
||||||
name: ipsilon_login
|
|
||||||
description: Login through ipsilon
|
|
||||||
hbacsvc:
|
|
||||||
- ipsilon
|
|
||||||
ipaadmin_password: "{{ ipa_admin_password }}"
|
|
||||||
delegate_to: "{{ ipa_server }}"
|
|
||||||
tags:
|
|
||||||
- ipsilon
|
|
||||||
|
|
||||||
- name: Get admin ticket
|
- name: Get admin ticket
|
||||||
shell: echo "{{ipa_admin_password}}" | kinit admin
|
shell: echo "{{ipa_admin_password}}" | kinit admin
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue