Skip to content
Merged
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
2 changes: 1 addition & 1 deletion roles/freeipa_server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ None.
```yaml
- name: Install FreeIPA server for DNS, Kerberos, TLS, and LDAP.
ansible.builtin.import_role:
name: freeipa_server
name: cloudera.exe.freeipa_server
vars:
ipaserver_forwarders: [ "1.1.1.1" ]
ipaserver_cidr: [ "10.0.0.1/20" ]
Expand Down
3 changes: 2 additions & 1 deletion roles/freeipa_server/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -12,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# ipaserver_packages: []
# freeipa_server_packages: []

ipaserver_domain: "{{ undef(hint='Please define the DNS domain') }}"
ipaserver_realm: "{{ undef(hint='Please define the Kerberos realm') }}"
Expand Down
1 change: 1 addition & 0 deletions roles/freeipa_server/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
3 changes: 2 additions & 1 deletion roles/freeipa_server/meta/argument_specs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -20,7 +21,7 @@ argument_specs:
Optionally, install the FreeIPA server packages.
author: Cloudera Labs
options:
ipaserver_packages:
freeipa_server_packages:
description:
- List of FreeIPA packages to install.
- If not defined, the role will default to the packages defined in the C(freeipa.ansible_freeipa.ipaserver) role.
Expand Down
1 change: 1 addition & 0 deletions roles/freeipa_server/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
7 changes: 4 additions & 3 deletions roles/freeipa_server/molecule/default/create.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_assign_public_ip: true
Expand All @@ -38,7 +39,7 @@
default_public_key_path: "{{ default_private_key_path }}.pub"
default_ssh_user: ansible
default_ssh_port: 22
default_user_data: ''
default_user_data: ""

default_security_group_name: "molecule-{{ run_config.run_id }}"
default_security_group_description: Ephemeral security group for Molecule instances
Expand Down Expand Up @@ -123,7 +124,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
5 changes: 3 additions & 2 deletions roles/freeipa_server/molecule/default/destroy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_aws_profile: "{{ lookup('env', 'AWS_PROFILE') }}"
Expand Down Expand Up @@ -69,7 +70,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
1 change: 1 addition & 0 deletions roles/freeipa_server/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/freeipa_server/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/freeipa_server/molecule/default/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/freeipa_server/molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
7 changes: 4 additions & 3 deletions roles/freeipa_server/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -36,11 +37,11 @@
net.ipv6.conf.lo.disable_ipv6: 0

- name: Install defined FreeIPA server packages
when: ipaserver_packages is defined
when: freeipa_server_packages is defined
ansible.builtin.package:
name: "{{ __ipa_package }}"
state: present
loop: "{{ ipaserver_packages }}"
loop: "{{ freeipa_server_packages }}"
loop_control:
loop_var: __ipa_package

Expand All @@ -51,7 +52,7 @@
state: present
ipaserver_hostname: "{{ inventory_hostname }}"
# ipaserver_no_host_dns: yes # redundant with ipaserver_setup_dns
ipaserver_install_packages: "{{ (ipaserver_packages is undefined) | ternary('true', 'false') }}"
ipaserver_install_packages: "{{ freeipa_server_packages is undefined }}"
ipaserver_setup_firewalld: false
ipaserver_setup_dns: true
ipaserver_auto_reverse: true
Expand Down
Loading