File tree Expand file tree Collapse file tree 3 files changed +18
-34
lines changed
deployments/ansible/roles/collector/tasks Expand file tree Collapse file tree 3 files changed +18
-34
lines changed Original file line number Diff line number Diff line change @@ -141,31 +141,6 @@ jobs:
141
141
name : ${{ matrix.SYS_PACKAGE }}-${{ matrix.ARCH }}-package
142
142
path : ./dist/splunk-otel-collector*
143
143
144
- msi-build :
145
- runs-on : ubuntu-24.04
146
- steps :
147
- - name : Check out the codebase.
148
- uses : actions/checkout@v4
149
- with :
150
- fetch-depth : 0
151
-
152
- - name : Set up Go
153
- uses : actions/setup-go@v5
154
- with :
155
- go-version : ${{ env.GO_VERSION }}
156
- cache-dependency-path : ' **/go.sum'
157
-
158
- - name : Build MSI
159
- run : |
160
- mkdir -p dist
161
- make msi VERSION=""
162
-
163
- - name : Uploading msi build artifacts
164
- uses : actions/upload-artifact@v4
165
- with :
166
- name : msi-build
167
- path : ./dist/*.msi
168
-
169
144
lint :
170
145
name : Lint
171
146
runs-on : ubuntu-24.04
@@ -215,8 +190,7 @@ jobs:
215
190
216
191
- uses : actions/download-artifact@v4
217
192
with :
218
- name : .*-package
219
- path : ./dist
193
+ path : /tmp
220
194
221
195
-
uses :
DamianReeves/[email protected]
222
196
with :
Original file line number Diff line number Diff line change 13
13
ansible.builtin.get_url :
14
14
url : " {{ splunk_repo_base_url }}/otel-collector-deb/splunk-B3CD4420.gpg"
15
15
dest : /etc/apt/trusted.gpg.d/splunk.gpg
16
+ when : not install_local_artifact
16
17
17
18
- name : Add Splunk OpenTelemetry Collector repo to apt source list
18
19
ansible.builtin.apt_repository :
19
20
repo : " deb {{ splunk_repo_base_url }}/otel-collector-deb release main"
20
21
filename : splunk-otel-collector.list
21
22
state : present
22
- when : not (splunk_skip_repo | bool)
23
+ when : not (splunk_skip_repo | bool) and not install_local_artifact
23
24
24
25
- name : Install Splunk OpenTelemetry Collector via apt package manager
25
26
ansible.builtin.apt :
31
32
notify :
32
33
- " restart splunk-otel-collector"
33
34
- " restart td-agent"
35
+ when : not install_local_artifact
36
+
37
+ - name : Install Splunk OpenTelemetry Collector via local artifact (arm64)
38
+ ansible.builtin.apt :
39
+ deb : /tmp/deb-{{ ansible_facts.ansible_architecture }}-package
40
+ notify :
41
+ - " restart splunk-otel-collector"
42
+ - " restart td-agent"
43
+ when : install_local_artifact
Original file line number Diff line number Diff line change 6
6
splunk_repo_base_url : https://splunk.jfrog.io/splunk
7
7
td_agent_repo_base : https://packages.treasuredata.com
8
8
9
- - name : Install Splunk OpenTelemetry Collector with apt package manager
9
+ - name : Install Splunk OpenTelemetry Collector for Debian
10
10
ansible.builtin.import_tasks : apt_install_otel_collector.yml
11
- when : ansible_os_family == "Debian" and not install_local_artifact
11
+ when : ansible_os_family == "Debian"
12
12
13
- - name : Install Splunk OpenTelemetry Collector with yum package manager
13
+ - name : Install Splunk OpenTelemetry Collector for RedHat
14
14
ansible.builtin.import_tasks : yum_install_otel_collector.yml
15
- when : ansible_os_family == "RedHat" and not install_local_artifact
15
+ when : ansible_os_family == "RedHat"
16
16
17
- - name : Install Splunk OpenTelemetry Collector with zypper package manager
17
+ - name : Install Splunk OpenTelemetry Collector for Suse
18
18
ansible.builtin.import_tasks : zypper_install_otel_collector.yml
19
- when : ansible_os_family == "Suse" and not install_local_artifact
19
+ when : ansible_os_family == "Suse"
20
20
21
21
- name : Set Splunk Otel Collector service owner
22
22
ansible.builtin.import_tasks : collector_service_owner.yml
You can’t perform that action at this time.
0 commit comments