Skip to content

Commit 21377c7

Browse files
jewnixdtwersky
andauthored
Closes #230 added splunk_package_arch (#231)
Co-authored-by: David Twersky <[email protected]>
1 parent 7469d61 commit 21377c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roles/splunk/defaults/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ splunk_package_url: auto_determined # This gets set by main.yml but we have to d
88
splunk_package_path: ~/
99
splunk_package_version: 9.3.0 # The default version to install or update to. This can be set in `group_vars` or `host_vars`.
1010
build_id: 51ccf43db5bd # The default build to install or update to. This can be set in `group_vars` or `host_vars`.
11-
splunk_package_url_full: "https://download.splunk.com/products/splunk/releases/{{ splunk_package_version }}/linux/splunk-{{ splunk_package_version }}-{{ build_id }}-Linux-x86_64.tgz"
12-
splunk_package_url_uf: "https://download.splunk.com/products/universalforwarder/releases/{{ splunk_package_version }}/linux/splunkforwarder-{{ splunk_package_version }}-{{ build_id }}-Linux-x86_64.tgz"
11+
splunk_package_arch: "{{ splunk_package_version is version(9.4, '<') | ternary('Linux-x86_64', 'linux-amd64') }}"
12+
splunk_package_url_full: "https://download.splunk.com/products/splunk/releases/{{ splunk_package_version }}/linux/splunk-{{ splunk_package_version }}-{{ build_id }}-{{ splunk_package_arch }}.tgz"
13+
splunk_package_url_uf: "https://download.splunk.com/products/universalforwarder/releases/{{ splunk_package_version }}/linux/splunkforwarder-{{ splunk_package_version }}-{{ build_id }}-{{ splunk_package_arch }}.tgz"
1314
splunk_download_local: true # This defines how the download process works. If `true` it will download to localhost and copy around to hosts from there. If `false` each host will download the package individually.
1415
splunk_install_type: undefined # There are two ways to configure this. The easiest way is to nest hosts under either a "full" group or a "uf" group in your inventory and main.yml will handle it for you. Or, you can also set the value via a group_vars or host_vars file.
1516
splunk_install_path: /opt # Base directory on the operating system to which splunk should be installed

0 commit comments

Comments
 (0)