Skip to content

Commit e1bf314

Browse files
committed
Nemesi
1 parent dfedec5 commit e1bf314

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+53294
-36
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
#splunk_uri_lm: https://my_license_master:8089
3+
#splunk_package_url_full: http://127.0.0.1:2280/{{ splunk_package_version }}/linux/splunk-{{ splunk_package_version }}-{{ build_id }}-Linux-x86_64.tgz
4+
splunk_package_url_full: http://127.0.0.1:2280/splunk-{{ splunk_package_version }}-{{ build_id }}-Linux-x86_64.tgz
5+
splunk_download_local: true
6+
splunk_license_file: Splunk.License
7+
splunk_license_group: Enterprise
8+
#splunk_uri_ds: lm1:8089
9+
splunk_uri_lm: https://lm1:8089
10+
splunk_admin_username: admin
11+
splunk_admin_password: changed.
12+
splunk_use_systemd: false
13+
splunk_idxc_key: Nemesi4.idxc.PosteItaliane.2022
14+
splunk_idxc_label: nemesi4idxc
15+
splunk_shc_key: Nemesi4.shc.PosteItaliane.2022
16+
splunk_shc_label: nemesi4shc
17+
ansible_user: gandalf
18+
ansible_password: gandalf
19+
#ansible_ssh_private_key_file: ~/.ssh/my_ansible_ssh.key
20+
#git_server: ssh://git@mygithost:1234
21+
#git_key: ~/.ssh/my-git-key
22+
#git_project: SOMEPROJECT
23+
desired_start_method: none
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# group vars for cluster manager
3+
splunk_app_deploy_path: etc/master-apps # default subdirectory in splunk_home that apps from git should be installed to, overridable in git_apps if you want to install to etc/apps
4+
#git_version: 1.0.0
5+
#git_apps:
6+
# - name: my_outputs
7+
# - name: Splunk_TA_nix
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# group_vars for deployment server
3+
#splunk_app_deploy_path: etc/deployment-apps
4+
#git_version: master
5+
#git_apps:
6+
# # Example of cloning a repository from a different git server and then deploying it to a path other than etc/deployment-apps
7+
# - name: my_outputs
8+
# git_version: 1.0.0
9+
# git_server: ssh://git@anotherserver.com
10+
# git_key: ~/.ssh/anotherkey
11+
# git_project: SPLK
12+
# splunk_app_deploy_path: etc/apps
13+
# - name: disable_rest
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
splunk_firewall_ports:
3+
- "{{ splunkweb_port }}"
4+
- "{{ splunkapi_port }}"
5+
- "{{ splunktcpin_port }}"
6+
- "{{ splunkhec_port }}"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
splunk_firewall_ports:
3+
- "{{ splunkweb_port }}"
4+
- "{{ splunkapi_port }}"
5+
- "{{ splunktcpin_port }}"
6+
- "{{ splunkhec_port }}"
7+
- "{{ splunkidxcrep_port }}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
splunk_firewall_ports:
3+
- "{{ splunkweb_port }}"
4+
- "{{ splunkapi_port }}"
5+
- "{{ splunkshcrep_port }}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# group_vars for universal forwarders
3+
splunk_uri_ds: lm1:8089
4+
splunk_app_deploy_path: etc/apps # subdirectory in splunk_home that apps from git should be installed to by Ansible
5+
#git_apps:
6+
# - name: config_base
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
# Example host_vars for a deployment server that is leveraging the configure_serverclass.yml task to manage serverclass.conf
3+
serverclasses:
4+
# First server class example, basic definition:
5+
- serverclass: ALL
6+
whitelist:
7+
- '*'
8+
apps:
9+
- name: my_outputs_addon
10+
options:
11+
restartSplunkd: 1
12+
# Second server class example, adding in the platform filter:
13+
- serverclass: ALL_NIX
14+
whitelist:
15+
- '*'
16+
platform: linux-x86_64
17+
apps:
18+
- name: Splunk_TA_nix
19+
options:
20+
restartSplunkd: 1
21+
# Third server class example, adding multiple apps and filters with additional options configured for each app:
22+
- serverclass: ALL_WINDOWS_x64
23+
whitelist:
24+
- 'hosta'
25+
- 'hostb'
26+
- 'windows-dc-*'
27+
blacklist:
28+
- 'hostc'
29+
platform: windows-x64
30+
apps:
31+
- name: Splunk_TA_windows
32+
options:
33+
restartSplunkd: 0
34+
restartIfNeeded: 1
35+
- name: custom_windows_inputs
36+
options:
37+
restartSplunkWeb: 0
38+
restartSplunkd: 1
39+
stateOnClient: enabled
40+
41+
# Fourth server class example, setting the restartSplunkd on the serverclass level:
42+
- serverclass: ALL_WEB
43+
restartSplunkd: 1
44+
whitelist:
45+
- 'webserver1'
46+
- 'webserver2'
47+
blacklist:
48+
- 'webserver*dev'
49+
apps:
50+
- name: webserver_app
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
deploy_target: my-shc-target-sh-uri
3+
#git_version: 1.0.0 # This is the golden repo branch for this host! It retires all ID/ED/SB/CM projects and repos
4+
#git_apps:
5+
# - name: myapp

environments/nemesi/inventory.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
# YAML format inventory with nested groups for variable inheritance
3+
# Mason Morales, Splunk, Inc.
4+
# References:
5+
# https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html
6+
# Read this: https://docs.ansible.com/ansible/2.9/plugins/inventory/yaml.html
7+
# https://www.digitalocean.com/community/tutorials/how-to-manage-multistage-environments-with-ansible
8+
# ##########################################################################
9+
all:
10+
children:
11+
tutti:
12+
hosts:
13+
sh1:
14+
ansible_port: 2222
15+
ansible_host: 127.0.0.1
16+
sh2:
17+
ansible_port: 2228
18+
ansible_host: 127.0.0.1
19+
sh3:
20+
ansible_port: 2229
21+
ansible_host: 127.0.0.1
22+
lm1:
23+
ansible_port: 2227
24+
ansible_host: 127.0.0.1
25+
cm1:
26+
ansible_port: 2223
27+
ansible_host: 127.0.0.1
28+
idx1:
29+
ansible_port: 2224
30+
ansible_host: 127.0.0.1
31+
idx2:
32+
ansible_port: 2225
33+
ansible_host: 127.0.0.1
34+
idx3:
35+
ansible_port: 2226
36+
ansible_host: 127.0.0.1
37+
38+
full:
39+
children:
40+
licensemaster:
41+
hosts:
42+
lm1:
43+
deploymentserver:
44+
hosts:
45+
lm1:
46+
dmc:
47+
hosts:
48+
lm1:
49+
shdeployer:
50+
hosts:
51+
lm1:
52+
vars:
53+
#target_shc_group_name: nemesis4_shc
54+
indexer:
55+
children:
56+
nemesis4_shc:
57+
hosts:
58+
sh1:
59+
sh2:
60+
sh3:
61+
search:
62+
children:
63+
shc:
64+
#nemesis4_shc:
65+
hosts:
66+
sh1:
67+
sh2:
68+
sh3:
69+
70+
#heavyforwarder:
71+
# hosts:
72+
# my-hf-01:
73+
# some-other-hf:
74+
75+
# standalone:
76+
# hosts:
77+
# my-standalone-splunk-server:
78+
# my-other-standalone-splunk-server:
79+
80+
#uf:
81+
# children:
82+
83+
# vmware:
84+
# hosts:
85+
# my-vm-ware-host-[001:100]:
86+
# vars:
87+
# clientName: vmware # Or create a "vmware.yml" file under group_vars and assign clientName there, either works
88+
89+
# web:
90+
# hosts:
91+
# my-web-host-[01-05]:

0 commit comments

Comments
 (0)