File tree Expand file tree Collapse file tree 9 files changed +105
-22
lines changed Expand file tree Collapse file tree 9 files changed +105
-22
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog
2
2
3
3
## Navigation
4
+ * [ 9.2.1-patch1] ( #921-patch1 )
4
5
* [ 9.2.1] ( #921 )
5
6
* [ 9.2.0.1] ( #9201 )
6
7
* [ 9.2.0] ( #920 )
8
+ * [ 9.1.4-patch1] ( #914-patch1 )
7
9
* [ 9.1.4] ( #914 )
8
10
* [ 9.1.3] ( #913 )
9
11
* [ 9.1.2] ( #912 )
10
12
* [ 9.1.1] ( #911 )
11
13
* [ 9.1.0.2] ( #9102 )
12
14
* [ 9.1.0.1] ( #9101 )
15
+ * [ 9.0.9-patch1] ( #909-patch1 )
13
16
* [ 9.0.9] ( #909 )
14
17
* [ 9.0.8] ( #908 )
15
18
* [ 9.0.7] ( #907 )
87
90
88
91
---
89
92
93
+ ## 9.2.1-patch1
94
+
95
+ #### Changes
96
+ * Check for UDS file instead of UDS flag
97
+ * Bugfixes
98
+
99
+ ---
100
+
90
101
## 9.2.1
91
102
92
103
#### Changes
111
122
112
123
---
113
124
125
+ ## 9.1.4-patch1
126
+
127
+ #### Changes
128
+ * Check for UDS file instead of UDS flag
129
+ * Bugfixes
130
+
131
+ ---
132
+
114
133
## 9.1.4
115
134
116
135
#### Changes
159
178
160
179
---
161
180
181
+ ## 9.0.9-patch1
182
+
183
+ #### Changes
184
+ * Check for UDS file instead of UDS flag
185
+ * Bugfixes
186
+
187
+ ---
188
+
162
189
## 9.0.9
163
190
164
191
#### Changes
Original file line number Diff line number Diff line change 23
23
state : restarted
24
24
when : splunk.enable_service and not ansible_system is match("Linux")
25
25
26
+ - name : Check if UDS file exists
27
+ stat :
28
+ path : " /opt/splunkforwarder/var/run/splunk/cli.socket"
29
+ register : uds_socket_exists
30
+
26
31
- name : " Wait for splunkd management port"
27
32
wait_for :
28
33
port : " {{ splunk.svc_port }}"
29
- when : splunk.splunk_http_enabled|bool == true
34
+ when : not uds_socket_exists.stat.exists
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Set mgmt port
3
- ini_file :
4
- dest : " {{ splunk.home }}/etc/system/local/web.conf"
5
- section : settings
6
- option : " mgmtHostPort"
7
- value : " 0.0.0.0:{{ splunk.svc_port }}"
8
- owner : " {{ splunk.user }}"
9
- group : " {{ splunk.group }}"
10
- when :
11
- - " 'svc_port' in splunk"
12
- register : set_mgmt_port
13
-
14
2
- name : Configure to set Mgmt Mode as auto (Allows UDS)
15
3
ini_file :
16
4
dest : " {{ splunk.home }}/etc/system/local/server.conf"
30
18
owner : " {{ splunk.user }}"
31
19
group : " {{ splunk.group }}"
32
20
when : splunk.role == "splunk_universal_forwarder" and splunk.splunk_http_enabled|bool == true
33
-
34
- # Restart only when Splunk is running and when any of the above have changed
35
- - include_tasks : ../handlers/restart_splunk.yml
36
- when : set_mgmt_port is changed
37
-
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Check if requests_unixsocket exists
3
+ command : " pip list | grep 'requests-unixsocket'"
4
+ register : requests_unixsocket_check
5
+ ignore_errors : true
6
+
7
+ - name : Install and upgrade pip
8
+ pip :
9
+ name : pip
10
+ extra_args : --upgrade
11
+ executable : pip3
12
+ when : requests_unixsocket_check is failed
13
+
14
+ - name : Check if pip3 unixsocket exits
15
+ command : " pip3 list | grep 'requests-unixsocket'"
16
+ register : requests_unixsocket_check_py3
17
+ when : requests_unixsocket_check is failed
18
+ ignore_errors : true
19
+
20
+ - name : Install missing requests_unixsocket
21
+ ansible.builtin.pip :
22
+ name : " requests_unixsocket"
23
+ when : requests_unixsocket_check is succeeded and (requests_unixsocket_check.stdout | length == 0 or requests_unixsocket_check.stdout.find("requests-unixsocket") == -1)
24
+
25
+ - name : Install missing requests_unixsocket PY3
26
+ ansible.builtin.pip :
27
+ name : " requests_unixsocket"
28
+ when : requests_unixsocket_check_py3 is succeeded and (requests_unixsocket_check_py3.stdout | length == 0 or requests_unixsocket_check_py3.stdout.find("requests-unixsocket") == -1)
Original file line number Diff line number Diff line change 1
1
---
2
2
- include_tasks : get_facts.yml
3
3
4
+ - include_tasks : install_python_requirements.yml
5
+
4
6
- include_tasks : change_splunk_directory_owner.yml
5
7
when :
6
8
- ansible_system is match("Linux")
74
76
- " 'http_port' in splunk"
75
77
- splunk.http_port | int != 8000
76
78
79
+ - include_tasks : set_mgmt_port.yml
80
+
77
81
- include_tasks : set_root_endpoint.yml
78
82
when : " 'root_endpoint' in splunk and splunk.root_endpoint"
79
83
122
126
123
127
- include_tasks : start_splunk.yml
124
128
129
+ - name : Check if UDS file exists
130
+ stat :
131
+ path : " /opt/splunkforwarder/var/run/splunk/cli.socket"
132
+ register : uds_socket_exists
133
+
125
134
- include_tasks : set_certificate_prefix.yml
126
- when : splunk.splunk_http_enabled|bool == true
135
+ when : not uds_socket_exists.stat.exists
127
136
128
137
- include_tasks : clean_user_seed.yml
129
138
Original file line number Diff line number Diff line change 1
1
---
2
+ - name : Check if UDS file exists
3
+ stat :
4
+ path : " /opt/splunkforwarder/var/run/splunk/cli.socket"
5
+ register : uds_socket_exists
6
+
2
7
- name : " Test basic https endpoint"
3
8
uri :
4
9
url : " https://127.0.0.1:{{ splunk.svc_port }}"
8
13
timeout : 10
9
14
use_proxy : no
10
15
register : ssl_enabled
11
- when : splunk.splunk_http_enabled|bool == true
16
+ when : not uds_socket_exists.stat.exists
12
17
ignore_errors : true
13
18
delay : " {{ retry_delay }}"
14
19
retries : " {{ retry_num }}"
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Set mgmt port
3
+ ini_file :
4
+ dest : " {{ splunk.home }}/etc/system/local/web.conf"
5
+ section : settings
6
+ option : " mgmtHostPort"
7
+ value : " 0.0.0.0:{{ splunk.svc_port }}"
8
+ owner : " {{ splunk.user }}"
9
+ group : " {{ splunk.group }}"
10
+ when :
11
+ - " 'svc_port' in splunk"
12
+ register : set_mgmt_port
13
+
14
+ # Restart only when Splunk is running and when any of the above have changed
15
+ - include_tasks : ../handlers/restart_splunk.yml
16
+ when : set_mgmt_port is changed
Original file line number Diff line number Diff line change 50
50
- splunk.enable_service
51
51
- ansible_os_family == "Windows"
52
52
53
+ - name : Check if UDS file exists
54
+ stat :
55
+ path : " /opt/splunkforwarder/var/run/splunk/cli.socket"
56
+ register : uds_socket_exists
57
+
53
58
- name : " Wait for splunkd management port"
54
59
wait_for :
55
60
port : " {{ splunk.svc_port }}"
56
- when : splunk.splunk_http_enabled|bool == true
61
+ when : not uds_socket_exists.stat.exists
57
62
58
63
- name : Flush restart handlers
59
64
meta : flush_handlers
Original file line number Diff line number Diff line change 5
5
state : present
6
6
when : ansible_system is match("Linux")
7
7
8
+ - name : Check if UDS file exists
9
+ stat :
10
+ path : " /opt/splunkforwarder/var/run/splunk/cli.socket"
11
+ register : uds_socket_exists
12
+
8
13
- name : Wait for the Splunk service port to be available
9
14
wait_for :
10
15
host : 127.0.0.1
11
16
port : " {{ splunk.svc_port }}"
12
17
timeout : 180
13
- when : splunk.splunk_http_enabled|bool == true
18
+ when : not uds_socket_exists.stat.exists
You can’t perform that action at this time.
0 commit comments