Skip to content

Commit

Permalink
refactor(kitchen+inspec): move inline pillars to files
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jul 13, 2019
1 parent ca43822 commit 4dc3025
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
31 changes: 6 additions & 25 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,8 @@ suites:
base:
'*':
- vault
vault.sls:
vault:
# version: 1.0.3 # test upgrades by doing a double-converge, changing the version pillar between each one
version: 1.1.0
verify_download: False

pillars_from_files:
vault.sls: test/salt/pillar/install_binary.sls
- name: dev_server
provisioner:
state_top:
Expand All @@ -161,9 +157,8 @@ suites:
base:
'*':
- vault
vault.sls:
vault:
dev_mode: True
pillars_from_files:
vault.sls: test/salt/pillar/dev_server.sls
- name: prod_server
provisioner:
state_top:
Expand All @@ -175,19 +170,5 @@ suites:
base:
'*':
- vault
vault.sls:
vault:
config:
storage:
file:
path: /var/lib/vault/data
tls_disable: 1
self_signed_cert:
enabled: True
hostname: localhost
password: localhost
country: GB
state: England
city: London
org: example.com
org_unit: testing
pillars_from_files:
vault.sls: test/salt/pillar/prod_server.sls
2 changes: 2 additions & 0 deletions test/salt/pillar/dev_server.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vault:
dev_mode: True
4 changes: 4 additions & 0 deletions test/salt/pillar/install_binary.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vault:
# version: 1.0.3 # test upgrades by doing a double-converge, changing the version pillar between each one
version: 1.1.0
verify_download: False
15 changes: 15 additions & 0 deletions test/salt/pillar/prod_server.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
vault:
config:
storage:
file:
path: /var/lib/vault/data
tls_disable: 1
self_signed_cert:
enabled: True
hostname: localhost
password: localhost
country: GB
state: England
city: London
org: example.com
org_unit: testing

0 comments on commit 4dc3025

Please sign in to comment.