From 0d49595a8fdb311a4fd5341e71c6c12112bf1767 Mon Sep 17 00:00:00 2001 From: "sammy.smati" Date: Fri, 22 Apr 2022 18:37:46 +1100 Subject: [PATCH] test(map): verify `map.jinja` dump using `_mapdata` state --- test/integration/default/controls/_mapdata.rb | 47 +++++++++++++++++++ .../default/files/_mapdata/almalinux-8.yaml | 29 ++++++++++++ .../default/files/_mapdata/amazonlinux-2.yaml | 29 ++++++++++++ .../files/_mapdata/arch-base-latest.yaml | 29 ++++++++++++ .../default/files/_mapdata/centos-7.yaml | 29 ++++++++++++ .../default/files/_mapdata/centos-8.yaml | 29 ++++++++++++ .../default/files/_mapdata/debian-10.yaml | 29 ++++++++++++ .../default/files/_mapdata/debian-11.yaml | 29 ++++++++++++ .../default/files/_mapdata/debian-9.yaml | 29 ++++++++++++ .../default/files/_mapdata/fedora-34.yaml | 29 ++++++++++++ .../default/files/_mapdata/fedora-35.yaml | 29 ++++++++++++ .../default/files/_mapdata/fedora-36.yaml | 29 ++++++++++++ .../default/files/_mapdata/gentoo-2-sysd.yaml | 29 ++++++++++++ .../default/files/_mapdata/gentoo-2-sysv.yaml | 29 ++++++++++++ .../default/files/_mapdata/opensuse-15.yaml | 29 ++++++++++++ .../files/_mapdata/opensuse-tumbleweed.yaml | 29 ++++++++++++ .../default/files/_mapdata/oraclelinux-7.yaml | 29 ++++++++++++ .../default/files/_mapdata/oraclelinux-8.yaml | 29 ++++++++++++ .../default/files/_mapdata/rockylinux-8.yaml | 29 ++++++++++++ .../default/files/_mapdata/ubuntu-18.yaml | 29 ++++++++++++ .../default/files/_mapdata/ubuntu-20.yaml | 29 ++++++++++++ 21 files changed, 627 insertions(+) create mode 100644 test/integration/default/controls/_mapdata.rb create mode 100644 test/integration/default/files/_mapdata/almalinux-8.yaml create mode 100644 test/integration/default/files/_mapdata/amazonlinux-2.yaml create mode 100644 test/integration/default/files/_mapdata/arch-base-latest.yaml create mode 100644 test/integration/default/files/_mapdata/centos-7.yaml create mode 100644 test/integration/default/files/_mapdata/centos-8.yaml create mode 100644 test/integration/default/files/_mapdata/debian-10.yaml create mode 100644 test/integration/default/files/_mapdata/debian-11.yaml create mode 100644 test/integration/default/files/_mapdata/debian-9.yaml create mode 100644 test/integration/default/files/_mapdata/fedora-34.yaml create mode 100644 test/integration/default/files/_mapdata/fedora-35.yaml create mode 100644 test/integration/default/files/_mapdata/fedora-36.yaml create mode 100644 test/integration/default/files/_mapdata/gentoo-2-sysd.yaml create mode 100644 test/integration/default/files/_mapdata/gentoo-2-sysv.yaml create mode 100644 test/integration/default/files/_mapdata/opensuse-15.yaml create mode 100644 test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml create mode 100644 test/integration/default/files/_mapdata/oraclelinux-7.yaml create mode 100644 test/integration/default/files/_mapdata/oraclelinux-8.yaml create mode 100644 test/integration/default/files/_mapdata/rockylinux-8.yaml create mode 100644 test/integration/default/files/_mapdata/ubuntu-18.yaml create mode 100644 test/integration/default/files/_mapdata/ubuntu-20.yaml diff --git a/test/integration/default/controls/_mapdata.rb b/test/integration/default/controls/_mapdata.rb new file mode 100644 index 00000000..c4241385 --- /dev/null +++ b/test/integration/default/controls/_mapdata.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +require 'yaml' + +control 'TEMPLATE._mapdata' do + title '`map.jinja` should match the reference file' + + ### Method + # The steps below for each file appear convoluted but they are both required + # and similar in nature: + # 1. The earliest method was to simply compare the files textually but this often + # led to false positives due to inconsistencies (e.g. spacing, ordering) + # 2. The next method was to load the files back into YAML structures and then + # compare but InSpec provided block diffs this way, unusable by end users + # 3. The final step was to dump the YAML structures back into a string to use + # for the comparison; this both worked and provided human-friendly diffs + + ### Comparison file for the specific platform + ### Static, adjusted as part of code contributions, as map data is changed + # Strip the `platform[:finger]` version number down to the "OS major release" + platform_finger = system.platform[:finger].split('.').first.to_s + # Use that to set the path to the file (relative to the InSpec suite directory) + mapdata_file_path = "_mapdata/#{platform_finger}.yaml" + # Load the mapdata from profile, into a YAML structure + # https://docs.chef.io/inspec/profiles/#profile-files + mapdata_file_yaml = YAML.load(inspec.profile.file(mapdata_file_path)) + # Dump the YAML back into a string for comparison + mapdata_file_dump = YAML.dump(mapdata_file_yaml) + + ### Output file produced by running the `_mapdata` state + ### Dynamic, generated during Kitchen's `converge` phase + # Derive the location of the dumped mapdata (differs for Windows) + output_dir = platform[:family] == 'windows' ? '/temp' : '/tmp' + # Use that to set the path to the file (absolute path, i.e. within the container) + output_file_path = "#{output_dir}/salt_mapdata_dump.yaml" + # Load the output into a YAML structure using InSpec's `yaml` resource + # https://github.com/inspec/inspec/blob/49b7d10/lib/inspec/resources/yaml.rb#L29 + output_file_yaml = yaml(output_file_path).params + # Dump the YAML back into a string for comparison + output_file_dump = YAML.dump(output_file_yaml) + + describe 'File content' do + it 'should match profile map data exactly' do + expect(output_file_dump).to eq(mapdata_file_dump) + end + end +end diff --git a/test/integration/default/files/_mapdata/almalinux-8.yaml b/test/integration/default/files/_mapdata/almalinux-8.yaml new file mode 100644 index 00000000..ee2c5e01 --- /dev/null +++ b/test/integration/default/files/_mapdata/almalinux-8.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# AlmaLinux-8 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/amazonlinux-2.yaml b/test/integration/default/files/_mapdata/amazonlinux-2.yaml new file mode 100644 index 00000000..c5e1f83a --- /dev/null +++ b/test/integration/default/files/_mapdata/amazonlinux-2.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Arch +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/arch-base-latest.yaml b/test/integration/default/files/_mapdata/arch-base-latest.yaml new file mode 100644 index 00000000..c5e1f83a --- /dev/null +++ b/test/integration/default/files/_mapdata/arch-base-latest.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Arch +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/centos-7.yaml b/test/integration/default/files/_mapdata/centos-7.yaml new file mode 100644 index 00000000..c5e1f83a --- /dev/null +++ b/test/integration/default/files/_mapdata/centos-7.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Arch +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/centos-8.yaml b/test/integration/default/files/_mapdata/centos-8.yaml new file mode 100644 index 00000000..41ab3aaf --- /dev/null +++ b/test/integration/default/files/_mapdata/centos-8.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# CentOS Stream-8 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/debian-10.yaml b/test/integration/default/files/_mapdata/debian-10.yaml new file mode 100644 index 00000000..d58a4bda --- /dev/null +++ b/test/integration/default/files/_mapdata/debian-10.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Debian-10 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/debian-11.yaml b/test/integration/default/files/_mapdata/debian-11.yaml new file mode 100644 index 00000000..e7112ac5 --- /dev/null +++ b/test/integration/default/files/_mapdata/debian-11.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Debian-11 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/debian-9.yaml b/test/integration/default/files/_mapdata/debian-9.yaml new file mode 100644 index 00000000..3be27b53 --- /dev/null +++ b/test/integration/default/files/_mapdata/debian-9.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Debian-9 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/fedora-34.yaml b/test/integration/default/files/_mapdata/fedora-34.yaml new file mode 100644 index 00000000..48aca1df --- /dev/null +++ b/test/integration/default/files/_mapdata/fedora-34.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Fedora-34 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/fedora-35.yaml b/test/integration/default/files/_mapdata/fedora-35.yaml new file mode 100644 index 00000000..e8ecd1a4 --- /dev/null +++ b/test/integration/default/files/_mapdata/fedora-35.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Fedora Linux-35 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/fedora-36.yaml b/test/integration/default/files/_mapdata/fedora-36.yaml new file mode 100644 index 00000000..1bd74756 --- /dev/null +++ b/test/integration/default/files/_mapdata/fedora-36.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Fedora Linux-36 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/gentoo-2-sysd.yaml b/test/integration/default/files/_mapdata/gentoo-2-sysd.yaml new file mode 100644 index 00000000..7a6607cd --- /dev/null +++ b/test/integration/default/files/_mapdata/gentoo-2-sysd.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Gentoo-2 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/gentoo-2-sysv.yaml b/test/integration/default/files/_mapdata/gentoo-2-sysv.yaml new file mode 100644 index 00000000..7a6607cd --- /dev/null +++ b/test/integration/default/files/_mapdata/gentoo-2-sysv.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Gentoo-2 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/opensuse-15.yaml b/test/integration/default/files/_mapdata/opensuse-15.yaml new file mode 100644 index 00000000..307b63a1 --- /dev/null +++ b/test/integration/default/files/_mapdata/opensuse-15.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Leap-15 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml b/test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml new file mode 100644 index 00000000..b9153e44 --- /dev/null +++ b/test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# openSUSE Tumbleweed-20220420 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/oraclelinux-7.yaml b/test/integration/default/files/_mapdata/oraclelinux-7.yaml new file mode 100644 index 00000000..c5e1f83a --- /dev/null +++ b/test/integration/default/files/_mapdata/oraclelinux-7.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Arch +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/oraclelinux-8.yaml b/test/integration/default/files/_mapdata/oraclelinux-8.yaml new file mode 100644 index 00000000..9a6ce188 --- /dev/null +++ b/test/integration/default/files/_mapdata/oraclelinux-8.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Oracle Linux Server-8 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/rockylinux-8.yaml b/test/integration/default/files/_mapdata/rockylinux-8.yaml new file mode 100644 index 00000000..7bfcfabc --- /dev/null +++ b/test/integration/default/files/_mapdata/rockylinux-8.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Rocky Linux-8 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/ubuntu-18.yaml b/test/integration/default/files/_mapdata/ubuntu-18.yaml new file mode 100644 index 00000000..a977a821 --- /dev/null +++ b/test/integration/default/files/_mapdata/ubuntu-18.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Ubuntu-18.04 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0 diff --git a/test/integration/default/files/_mapdata/ubuntu-20.yaml b/test/integration/default/files/_mapdata/ubuntu-20.yaml new file mode 100644 index 00000000..c714ebd8 --- /dev/null +++ b/test/integration/default/files/_mapdata/ubuntu-20.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:indentation rule:line-length +# Ubuntu-20.04 +--- +values: + arch: amd64 + config: + bind_addr: 0.0.0.0 + bootstrap_expect: 3 + data_dir: /var/consul + datacenter: eu + enable_debug: true + encrypt: RIxqpNlOXqtr/j4BgvIMEw== + log_level: info + retry_interval: 15s + retry_join: + - 1.1.1.1 + - 2.2.2.2 + server: true + ui_config: + enabled: true + download_host: releases.hashicorp.com + group: consul + group_gid: '' + register: [] + scripts: [] + service: true + user: consul + user_uid: '' + version: 1.9.0