mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-22 13:11:29 +00:00
commit
bf2fb2fd90
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
# RabbitMQ Staging Vars
|
# RabbitMQ Staging Vars
|
||||||
rabbitmq_cluster_name: "rabbitprod"
|
rabbitmq_cluster_name: "rabbit"
|
||||||
rabbitmq_cluster_list: "{{ groups['rabbitmq'] }}"
|
rabbitmq_cluster_list: "{{ groups['rabbitmq'] }}"
|
||||||
rabbitmq_env: "production"
|
rabbitmq_env: "production"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
# RabbitMQ Staging Vars
|
# RabbitMQ Staging Vars
|
||||||
rabbitmq_cluster_name: "rabbitstage"
|
rabbitmq_cluster_name: "rabbit"
|
||||||
rabbitmq_cluster_list: "{{ groups['rabbitmq'] }}"
|
rabbitmq_cluster_list: "{{ groups['rabbitmq'] }}"
|
||||||
rabbitmq_env: "staging"
|
rabbitmq_env: "staging"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
become: false
|
become: false
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vaults/encpass.yml
|
- vars/vaults/hostman.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Checking for user variables"
|
- name: "Checking for user variables"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
become: false
|
become: false
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vaults/encpass.yml
|
- vars/vaults/hostman.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Checking for user variables"
|
- name: "Checking for user variables"
|
||||||
|
@ -18,12 +18,13 @@
|
|||||||
become: true
|
become: true
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vaults/encpass.yml
|
- vars/vaults/kerbman.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Checking for user variables"
|
- name: "Checking for user variables"
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
|
- ipa_admin | mandatory
|
||||||
- ipaadmin_password | mandatory
|
- ipaadmin_password | mandatory
|
||||||
- ipa_service | mandatory
|
- ipa_service | mandatory
|
||||||
- ipa_keytab_fullpath | mandatory
|
- ipa_keytab_fullpath | mandatory
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
become: false
|
become: false
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vaults/encpass.yml
|
- vars/vaults/userman.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Checking for user variables"
|
- name: "Checking for user variables"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
become: false
|
become: false
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vaults/encpass.yml
|
- vars/vaults/kerbman.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Checking for user variables"
|
- name: "Checking for user variables"
|
||||||
|
29
ansible/playbooks/adhoc-ipauser-disable.yml
Normal file
29
ansible/playbooks/adhoc-ipauser-disable.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||||
|
# What: Creates users in the idm infrastructure based on the variables provided.
|
||||||
|
|
||||||
|
- name: Create a User
|
||||||
|
hosts: ipaserver
|
||||||
|
become: false
|
||||||
|
gather_facts: false
|
||||||
|
vars_files:
|
||||||
|
- vars/vaults/userman.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "Checking for user variables"
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- ipa_admin | mandatory
|
||||||
|
- ipaadmin_password | mandatory
|
||||||
|
- ipa_name | mandatory
|
||||||
|
success_msg: "Required variables provided"
|
||||||
|
fail_msg: "We are missing user information or ipa admin password"
|
||||||
|
|
||||||
|
- name: "Disabling User Account"
|
||||||
|
freeipa.ansible_freeipa.ipauser:
|
||||||
|
ipaadmin_principal: "{{ ipa_admin }}"
|
||||||
|
ipaadmin_password: "{{ ipaadmin_password }}"
|
||||||
|
name: "{{ ipa_name }}"
|
||||||
|
state: disabled
|
||||||
|
tags:
|
||||||
|
- users
|
29
ansible/playbooks/adhoc-ipauser-enable.yml
Normal file
29
ansible/playbooks/adhoc-ipauser-enable.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||||
|
# What: Creates users in the idm infrastructure based on the variables provided.
|
||||||
|
|
||||||
|
- name: Create a User
|
||||||
|
hosts: ipaserver
|
||||||
|
become: false
|
||||||
|
gather_facts: false
|
||||||
|
vars_files:
|
||||||
|
- vars/vaults/userman.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "Checking for user variables"
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- ipa_admin | mandatory
|
||||||
|
- ipaadmin_password | mandatory
|
||||||
|
- ipa_name | mandatory
|
||||||
|
success_msg: "Required variables provided"
|
||||||
|
fail_msg: "We are missing user information or ipa admin password"
|
||||||
|
|
||||||
|
- name: "Enabling User Account"
|
||||||
|
freeipa.ansible_freeipa.ipauser:
|
||||||
|
ipaadmin_principal: "{{ ipa_admin }}"
|
||||||
|
ipaadmin_password: "{{ ipaadmin_password }}"
|
||||||
|
name: "{{ ipa_name }}"
|
||||||
|
state: enabled
|
||||||
|
tags:
|
||||||
|
- users
|
@ -7,7 +7,7 @@
|
|||||||
become: false
|
become: false
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vaults/encpass.yml
|
- vars/vaults/userman.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Checking for user variables"
|
- name: "Checking for user variables"
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
# rocky-release-rabbitmq repo
|
# rocky-release-rabbitmq repo
|
||||||
- name: Install centos rabbitmq
|
- name: Install centos rabbitmq
|
||||||
yum:
|
yum:
|
||||||
name: centos-release-rabbitmq
|
name: centos-release-rabbitmq-38
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
@ -26,6 +26,13 @@ iparoles:
|
|||||||
- "Netgroups Administrators"
|
- "Netgroups Administrators"
|
||||||
user:
|
user:
|
||||||
- hostman
|
- hostman
|
||||||
|
- role: Kerberos Managers
|
||||||
|
description: Kerberos Key Managers
|
||||||
|
privileges:
|
||||||
|
- "Privileges - Kerberos Managers"
|
||||||
|
- "Service Administrators"
|
||||||
|
user:
|
||||||
|
- kerbman
|
||||||
- role: IPA User Managers
|
- role: IPA User Managers
|
||||||
description: Rocky IPA User Managers responsible for idm flow
|
description: Rocky IPA User Managers responsible for idm flow
|
||||||
privileges:
|
privileges:
|
||||||
|
Loading…
Reference in New Issue
Block a user