Skip to content

Commit

Permalink
Added formula management files
Browse files Browse the repository at this point in the history
  • Loading branch information
psmiraglia committed Jun 30, 2017
1 parent b3dae3d commit 34c0401
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cerebro/defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cerebro:
# binaries
version: '0.6.5'
hash: 'e0fab203496c3216561070df0b2dbd90ade83dfa0dc2fb380a88369958dc1e28'
home: /opt/cerebro
# user
user: cerebro
group: cerebro
# config
secret: ''
auth_ldap: {}
# enabled: False
# url: 'ldap:https://host:port'
# base-dn: 'ou=active,ou=Employee'
# method: simple
# user-domain: domain.com
auth_basic: {}
# enabled: False
# username: admin
# password: s3cr3t
hosts: []
# - name: "Some Cluster"
# host: http:https://localhost:9200
# - name: "Some Authenticated Cluster"
# host: http:https://authenticated-localhost:9200
# username: admin
# password: s3cr3t
# service
service: cerebro
java_home: {}
5 changes: 5 additions & 0 deletions cerebro/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include:
- cerebro.user
- cerebro.binaries
- cerebro.config
- cerebro.service
20 changes: 20 additions & 0 deletions cerebro/map.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% import_yaml "cerebro/defaults.yaml" as default_settings %}

{% set os_family_map = salt['grains.filter_by']({
'Debian': {},
'Suse': {},
'Arch': {},
'RedHat': {},
},
grain="os_family",
merge=salt['pillar.get']('cerebro:lookup'))
%}

{% do default_settings.cerebro.update(os_family_map) %}

{% set cerebro = salt['pillar.get'](
'cerebro',
default=default_settings.cerebro,
merge=True
)
%}

0 comments on commit 34c0401

Please sign in to comment.