Skip to content

Commit

Permalink
Making config files optional
Browse files Browse the repository at this point in the history
  • Loading branch information
austincloudguru committed Apr 9, 2024
1 parent 9d31130 commit e86b272
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ For most people, the default variables that are set should be fine, but there ar
splunk_deb_checksum # Default Deb Checksum
splunk_rpm_checksum # Default RPM Checksum
splunk_forwarder_input_blacklist # Default blacklist for inputs.conf

splunk_forwarder_manage_inputs # Default whether to manage inputs.conf (true)
splunk_forwarder_manage_ouputs # Default whether to manage ouputs.conf (true)

### Playbook Variables

Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ splunk_rpm_checksum: "md5:4faa1073d4b4f5c2ca46a8e6d71d4737"
splunk_deb_checksum: "md5:817637baad2f485b54a4fecac9f671b3"
splunk_arm_checksum: "md5:20657ba28e2dff77def3eab6d0f7d7a8"
splunk_forwarder_input_blacklist: '\.bz2$'
splunk_forwarder_manage_inputs: true
splunk_forwarder_manage_outputs: true


# These may be removed at some point, but they are placeholders so I don't forget to set them
Expand Down
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
dest: /opt/splunkforwarder/etc/system/local/inputs.conf
mode: 0664
backup: true
when: splunk_forwarder_manage_inputs
tags: config_copy

- name: Copy outputs file
Expand All @@ -108,6 +109,7 @@
dest: /opt/splunkforwarder/etc/system/local/outputs.conf
mode: 0664
backup: true
when: splunk_forwarder_manage_outputs
tags: config_copy

- name: Set logfile permissions
Expand Down

0 comments on commit e86b272

Please sign in to comment.