Skip to content

Commit

Permalink
fix(ansible): Removed unused kea-ctrl-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Aug 3, 2023
1 parent 628e1ff commit 47619a8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 84 deletions.
23 changes: 0 additions & 23 deletions ansible/group_vars/dhcp/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,26 +220,3 @@ self_signed_certs:
port: 8080
cert_path: /etc/kea/ssl/kea.crt
pdns_zone: "{{ inventory_hostname.split('.')[-2:] | join('.') }}"
- common_name: "{{ inventory_hostname }}"
country: "{{ country }}"
organization: "{{ organization }}"
ca_cert_local_path: "{{ ca_certificates_local_path_ca_certificate }}"
intermediate_cert_local_path: "{{ certs_dir_role_path }}intermediate/homelab/homelab.crt"
intermediate_private_local_path: "{{ certs_dir_role_path }}intermediate/homelab/homelab.key"
intermediate_private_passphrase: "{{ ca_private_passphrase }}"
cert_remote_folder:
- { path: /etc/kea/ssl, filename: kea_ctrl_agent, owner: _kea, group: _kea }
ownca_not_after: +365d
upload_key: true
generate_pkcs12: false
subject_alt_name:
- "DNS:localhost"
- "email:{{ admin_email }}"
systemd_services:
- { name: isc-kea-ctrl-agent, state: restarted }
force_renew: false
tlsa:
- proto: tcp
port: 8443
cert_path: /etc/kea/ssl/kea_ctrl_agent.crt
pdns_zone: "{{ inventory_hostname.split('.')[-2:] | join('.') }}"
2 changes: 0 additions & 2 deletions ansible/roles/kea_dhcp/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ kea_dhcp_repo_version: "Kea-2.5"
kea_dhcp_repo_gpg_key: D4FEAEAEFBD81FB9
# kea_dhcp_hooks_version:
kea_dhcp_hooks_package_state: latest
# kea_dhcp_agent_version:
kea_dhcp_agent_package_state: latest
# kea_dhcp_v4_version:
kea_dhcp_v4_package_state: latest
# kea_dhcp_v6_version:
Expand Down
10 changes: 0 additions & 10 deletions ansible/roles/kea_dhcp/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,11 @@
name: isc-kea-dhcp4-server
enabled: true

- name: Enable isc-kea-dhcp4-server
ansible.builtin.systemd:
name: isc-kea-dhcp4-server
enabled: true

- name: Enable isc-kea-dhcp6-server
ansible.builtin.systemd:
name: isc-kea-dhcp6-server
enabled: true

- name: Restart isc-kea-ctrl-agent
ansible.builtin.systemd:
name: isc-kea-ctrl-agent
state: restarted

- name: Restart isc-kea-dhcp4-server
ansible.builtin.systemd:
name: isc-kea-dhcp4-server
Expand Down
16 changes: 0 additions & 16 deletions ansible/roles/kea_dhcp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
with_items:
- { port: "67", proto: udp, direction: "in", comment: "Kea-dhcp DHCP (ansible_managed)" }
- { port: "547", proto: udp, direction: "in", comment: "Kea-dhcp DHCPv6 (ansible_managed)" }
- { port: "8443", proto: tcp, direction: "in", comment: "Kea-dhcp ctrl-agent (ansible_managed)" }
- { port: "8080", proto: tcp, direction: "in", comment: "Kea-dhcp HA (ansible_managed)" }
- { port: "8080", proto: tcp, direction: "out", comment: "Kea-dhcp HA (ansible_managed)" }

Expand Down Expand Up @@ -50,12 +49,6 @@
update_cache: true
state: "{{ kea_dhcp_hooks_package_state }}"

- name: Install isc-kea-ctrl-agent
ansible.builtin.apt:
name: "isc-kea-ctrl-agent{% if kea_dhcp_agent_version is defined %}={{ kea_dhcp_agent_version }}{% endif %}"
update_cache: true
state: "{{ kea_dhcp_agent_package_state }}"

- name: Install isc-kea-dhcp4
ansible.builtin.apt:
name: "isc-kea-dhcp4{% if kea_dhcp_v4_version is defined %}={{ kea_dhcp_v4_version }}{% endif %}"
Expand All @@ -79,15 +72,6 @@
- /etc/kea
- /usr/lib/x86_64-linux-gnu/kea

- name: Configure kea-ctrl-agent
ansible.builtin.template:
src: kea-ctrl-agent.conf.j2
dest: /etc/kea/kea-ctrl-agent.conf
owner: _kea
group: _kea
mode: "0640"
notify: Restart isc-kea-ctrl-agent

- name: Configure kea-dhcp4-server
ansible.builtin.template:
src: kea-dhcp4.conf.j2
Expand Down
33 changes: 0 additions & 33 deletions ansible/roles/kea_dhcp/templates/kea-ctrl-agent.conf.j2

This file was deleted.

0 comments on commit 47619a8

Please sign in to comment.