From 24104f04806dddfe87c24dbc27fbf8c3a95ce2c5 Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Sat, 16 Oct 2021 03:51:26 +0000 Subject: [PATCH 1/2] Adding variables for opting to build hosts file --- defaults/main.yml | 2 ++ tasks/node.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 2e3b366..bce9a8a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,6 +4,8 @@ nebula_network_cidr: 24 nebula_ca_cert_duration: "87600h0m0s" #10 years nebula_client_cert_duration: "43800h0m0s" #5 years nebula_clean_install: false +nebula_lighthouse_build_hosts_file: true +nebula_node_lighthouse_in_hosts_file: true nebula_lighthouse_hostname: lighthouse nebula_lighthouse_internal_ip_addr: 192.168.77.1 diff --git a/tasks/node.yml b/tasks/node.yml index 4e4fcc8..f6ab9bc 100644 --- a/tasks/node.yml +++ b/tasks/node.yml @@ -10,11 +10,13 @@ path: /etc/hosts line: "{{ nebula_internal_ip_addr }} {{ inventory_hostname }}.neb" delegate_to: "{{ groups.nebula_lighthouse[0] }}" + when: nebula_lighthouse_build_hosts_file - name: Ensure node has hosts file entry for lighthouse lineinfile: path: /etc/hosts line: "{{ nebula_lighthouse_internal_ip_addr }} {{ nebula_lighthouse_hostname }}.neb" + when: nebula_node_lighthouse_in_hosts_file - name: Read cert/key from lighthouse slurp: From 591cdf190ff4b176608f94dcac527787ba45519a Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Sat, 16 Oct 2021 03:53:42 +0000 Subject: [PATCH 2/2] yes -> true --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9dcc03f..5ae36da 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,7 +6,7 @@ nebula_client_cert_duration: "43800h0m0s" #5 years nebula_clean_install: false nebula_lighthouse_build_hosts_file: true nebula_node_lighthouse_in_hosts_file: true -nebula_install_check_cron: yes +nebula_install_check_cron: true nebula_lighthouse_hostname: lighthouse