Terraform: Nomad resource definitions
[csit.git] / resources / tools / testbed-setup / ansible / inventories / lf_inventory / host_vars / 10.30.51.28.yaml
index 9aaf207..a302d21 100644 (file)
@@ -2,7 +2,7 @@
 # file: host_vars/10.30.51.28.yaml
 
 hostname: "s41-nomad"
-inventory_cimc_hostname: '10.30.50.28'
+inventory_cimc_hostname: "10.30.50.28"
 
 # User management.
 users:
@@ -19,14 +19,14 @@ users:
 
 # Nomad settings.
 nomad_certificates:
-  - src: "{{ vault_s41_nomad_ca_file }}"
+  - src: "{{ vault_nomad_v2_ca_file }}"
     dest: "{{ nomad_ca_file }}"
-  - src: "{{ vault_s41_nomad_cert_file }}"
+  - src: "{{ vault_nomad_v2_cert_file }}"
     dest: "{{ nomad_cert_file }}"
-  - src: "{{ vault_s41_nomad_key_file }}"
+  - src: "{{ vault_nomad_v2_key_file }}"
     dest: "{{ nomad_key_file }}"
 nomad_datacenter: "yul1"
-nomad_name: "s41-nomad-{{ ansible_architecture }}"
+nomad_name: "{{ hostname }}-{{ ansible_architecture }}"
 nomad_node_role: "client"
 nomad_node_class: "builder"
 nomad_options:
@@ -36,3 +36,21 @@ nomad_options:
   driver.whitelist: "docker,raw_exec,exec"
   fingerprint.network.disallow_link_local: true
 nomad_servers: [ "10.30.51.32:4647", "10.30.51.33:4647" ]
+
+# Consul settigs.
+consul_nomad_integration: true
+consul_certificates:
+  - src: "{{ vault_nomad_v2_ca_file }}"
+    dest: "{{ consul_ca_file }}"
+  - src: "{{ vault_nomad_v2_cert_file }}"
+    dest: "{{ consul_cert_file }}"
+  - src: "{{ vault_nomad_v2_key_file }}"
+    dest: "{{ consul_key_file }}"
+consul_datacenter: "yul1"
+consul_encrypt: "Y4T+5JGx1C3l2NFBBvkTWQ=="
+consul_node_name: "{{ hostname }}"
+consul_node_role: "client"
+consul_retry_servers:
+  - "10.30.51.30"
+  - "10.30.51.32"
+  - "10.30.51.33"
\ No newline at end of file