Skip to content

Commit 35f9edc

Browse files
author
Mason Morales
authored
Merge pull request #2 from splunk/first_release
First commit
2 parents 2ca0cea + 8d45490 commit 35f9edc

File tree

70 files changed

+1481
-4
lines changed

Some content is hidden

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

70 files changed

+1481
-4
lines changed

README.md

Lines changed: 159 additions & 4 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
splunk_uri_lm: https://my_license_master:8089
3+
ansible_user: my_ansible_ssh_user
4+
ansible_ssh_private_key_file: ~/.ssh/my_ansible_ssh.key
5+
git_server: ssh://git@mygithost:1234
6+
git_key: ~/.ssh/my-git-key
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
all:
3+
children:
4+
5+
full:
6+
children:
7+
8+
search:
9+
hosts:
10+
10.202.37.251:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
splunk_uri_lm: https://my_license_master:8089
3+
ansible_user: my_ansible_ssh_user
4+
ansible_ssh_private_key_file: ~/.ssh/my_ansible_ssh.key
5+
git_server: ssh://git@mygithost:1234
6+
git_key: ~/.ssh/my-git-key
7+
git_project: SOMEPROJECT
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# group vars for cluster master
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+
# group_vars for universal forwarders
3+
splunk_uri_ds: my-ds: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: 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
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
12+
full:
13+
children:
14+
15+
licensemaster:
16+
hosts:
17+
my-lm-host:
18+
19+
dmc:
20+
hosts:
21+
my-dmc-host:
22+
23+
shdeployer:
24+
hosts:
25+
my-shc-deployer:
26+
27+
search:
28+
children:
29+
30+
west_coast_shc:
31+
hosts:
32+
sh-01:
33+
sh-02:
34+
sh-03:
35+
36+
heavyforwarder:
37+
hosts:
38+
my-hf-01:
39+
some-other-hf:
40+
41+
standalone:
42+
hosts:
43+
my-standalone-splunk-server:
44+
my-other-standalone-splunk-server:
45+
46+
universalforwarder:
47+
children:
48+
49+
vmware:
50+
hosts:
51+
my-vm-ware-host-[001:100]:
52+
vars:
53+
clientName: vmware
54+
55+
web:
56+
hosts:
57+
my-web-host-[01-05]:

playbooks/ansible.cfg

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[defaults]
2+
inventory_enabled = yaml, host_list, ini, script
3+
internal_poll_interval = 0.001
4+
inventory = hosts
5+
host_key_checking = False
6+
timeout = 60
7+
Forks = 50
8+
transport = paramiko
9+
# To use slack notification, make sure you do this first: easy_install prettytable
10+
# callback_whitelist = slack, splunk
11+
12+
[ssh_connection]
13+
ssh_args = -o ControlMaster=auto -o ControlPersist=7200s -o PreferredAuthentications=publickey -o StrictHostKeyChecking=no
14+
scp_if_ssh = True
15+
timeout = 10
16+
retries = 5
17+
# Tip: Disable pipelining when you get "sudo: sorry, you must have a tty to run sudo\n" - disabled is MUCH slower but more compatible
18+
pipelining=True
19+
20+
#[callback_slack]
21+
#webhook_url = https://hooks.slack.com/services/<token>
22+
#channel = #channel_here
23+
#username = splunk_ansible
24+
25+
#[callback_splunk]
26+
#url = https://my-hec-target/services/collector/event?channel=<insert-guid-for-channel-here>
27+
#authtoken = <insert-auth-token-here>

0 commit comments

Comments
 (0)