splunk / splunk-ansible

Ansible playbooks for configuring and managing Splunk Enterprise and Universal Forwarder deployments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ability to specify config files with the same name in /tmp/defaults/default.yml

j4ys0n opened this issue · comments

it would be handy to be able to specify files of the same name in different paths using the /tmp/defaults/default.yml file.

like:

splunk:
    conf:
        inputs:
            directory: /opt/splunk/etc/apps/search/local
            content:
                "udp://8125":
                    connection_host: ip
                    index: docker_metrics
                    sourcetype: statsd
        inputs:
            directory: /opt/splunk/etc/apps/mongodb/local
            content:
                "mongo_admin://top":
                    index: mongodb
                    disabled: 1
                    interval: 15
                    commands: top ping
                    server: mongodb
                    port: 27017
                    username: admin
                    password: admin

currently only the last specification is written because it's a duplicate key.

a way to input a list would be awesome!

Closing because the schema for this has been modified to support arrays. We'll republish the splunk/splunk:8.0.3 image tomorrow for other reasons and we'll include this change.