{#- Initialize a map of default values #}
{%- load_yaml as defaults %}

package: splunkforwarder
service: splunk
deploymentclient:
  conf: /opt/splunkforwarder/etc/system/local/deploymentclient.conf
log_local:
  contents: |
      category.StatusMgr=WARN
      category.TcpOutputProc=WARN
      category.FilesystemChangeWatcher=ERROR
  conf: /opt/splunkforwarder/etc/system/local/log-local.cfg
client_out_ports:
  - 8089
  - 9997
cert_file: /opt/splunkforwarder/etc/auth/splunkweb/cert.pem
bin_file: /opt/splunkforwarder/bin/splunk
service_file: /etc/init.d/splunk

{%- endload %}

{#- Define the splunkforwarder map, merging pillar and default values #}
{%-
    set splunkforwarder = salt['pillar.get'](
        'splunkforwarder:lookup',
        default=defaults,
        merge=True
    )
%}
