Skip to content

Commit 69c67e3

Browse files
authored
Add opensuse (#149)
* added OpenSUSE support * install acl package if configure_facl task runs * SPL-229383 disable KVStore on UF when upgradding from v8 to v9
1 parent f92f179 commit 69c67e3

File tree

5 files changed

+40
-1
lines changed

5 files changed

+40
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) 
44
[![GitHub release](https://img.shields.io/github/v/tag/splunk/ansible-role-for-splunk?sort=semver&label=Version)](https://github.com/splunk/ansible-role-for-splunk/releases)
55

6-
This repository contains Splunk's official Ansible role for performing Splunk administration of remote hosts over SSH. This role can manage Splunk Enterprise and Universal Forwarders that are on Linux-based platforms (CentOS/Redhat/Ubuntu), as well as deploy configurations from Git repositories. Example playbooks and inventory files are also provided to help new Ansible users make the most out of this project.
6+
This repository contains Splunk's official Ansible role for performing Splunk administration of remote hosts over SSH. This role can manage Splunk Enterprise and Universal Forwarders that are on Linux-based platforms (CentOS/Redhat/Ubuntu/Amazon Linux/OpenSUSE), as well as deploy configurations from Git repositories. Example playbooks and inventory files are also provided to help new Ansible users make the most out of this project.
77

88
ansible-role-for-splunk is used by the Splunk@Splunk team to manage Splunk's corporate deployment of Splunk.
99

roles/splunk/tasks/configure_facl.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
- name: Configure file access control list (facl) settings for splunk user
33
block:
4+
- name: Install acl package
5+
package:
6+
name: "acl"
7+
state: present
8+
become: True
49
- name: Set default facl to allow splunk user to read /var/log
510
acl:
611
path: /var/log
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- name: Disable KVStore
3+
when: ansible_system == "Linux"
4+
ini_file:
5+
path: "{{ splunk_home }}/etc/system/local/server.conf"
6+
section: kvstore
7+
option: disabled
8+
value: "true"
9+
become: True
10+
become_user: "{{ splunk_nix_user }}"

roles/splunk/tasks/upgrade_splunk.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
- name: Include download and unarchive task
1414
include_tasks: download_and_unarchive.yml
1515

16+
- name: Disbale KVStore on UF when upgrading from 8.x to 9.0
17+
when:
18+
- splunk_version_release is version(9, '<')
19+
- splunk_package_version is version(9, '>=')
20+
- splunk_install_type == "uf"
21+
include_tasks: disable_kvstore.yml
22+
1623
- name: Include accept license task
1724
include_tasks: splunk_license_accept.yml
1825

roles/splunk/vars/Suse.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
global_bashrc: /etc/bash.bashrc
3+
linux_packages:
4+
- nload
5+
- iotop
6+
- iftop
7+
- sysstat
8+
- telnet
9+
- tcpdump
10+
- htop
11+
- atop
12+
- lsof
13+
- policycoreutils-python
14+
- policycoreutils
15+
- nethogs
16+
- gdb
17+
- bind-utils

0 commit comments

Comments
 (0)