give pillar vars more modularity

This commit is contained in:
Ahmed AbouZaid 2017-11-25 13:01:44 +01:00
parent 2e8af39bd5
commit 5b54e5ea16
2 changed files with 20 additions and 22 deletions

View file

@ -25,30 +25,28 @@ provisioner:
#log_level: quiet #log_level: quiet
require_chef: false require_chef: false
formula: consul formula: consul
suites:
- name: consul
provisioner:
state_top: state_top:
base: base:
'*': '*':
- consul - consul
pillars-from-files:
base.sls: pillar.example
pillars: pillars:
consul.sls:
consul:
service: True
config:
server: True
bind_addr: 0.0.0.0
enable_debug: True
datacenter: eu
encrypt: "RIxqpNlOXqtr/j4BgvIMEw=="
bootstrap_expect: 3
retry_interval: 15s
retry_join:
- 1.1.1.1
- 2.2.2.2
top.sls: top.sls:
base: base:
'*': '*':
- base
- consul - consul
consul.sls:
consul:
register: []
scripts: []
suites:
- name: consul-server
provisioner:
pillars:
consul.sls:
consul:
config:
server: True

View file

@ -8,9 +8,9 @@ before_install:
env: env:
matrix: matrix:
- INSTANCE: consul-ubuntu-1404 - INSTANCE: consul-server-ubuntu-1404
- INSTANCE: consul-ubuntu-1604 - INSTANCE: consul-server-ubuntu-1604
- INSTANCE: consul-centos-7 - INSTANCE: consul-server-centos-7
script: script:
- bundle exec kitchen verify ${INSTANCE} - bundle exec kitchen verify ${INSTANCE}