Skip to content

Commit

Permalink
refactor(kitchen): use pillar_from_files throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 23, 2019
1 parent 83f1cac commit 65ee41d
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 77 deletions.
84 changes: 7 additions & 77 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,6 @@ verifier:
'*':
- apt
- letsencrypt
apt.sls:
apt:
repositories:
#####
letsencrypt-backports:
distro: stretch-backports
url: http://deb.debian.org/debian
comps: [main]
preferences:
letsencrypt-backports:
pin: release a=stretch-backports
priority: 640
letsencrypt.sls:
letsencrypt:
use_package: true
config: |
server: https://acme-staging.api.letsencrypt.org/directory
email: saltstack-letsencrypt-formula@example.com
authenticator: webroot
webroot-path: /var/www/html
agree-tos: true
renew-by-default: true

verifier:
name: inspec
Expand Down Expand Up @@ -102,19 +79,8 @@ suites:
base:
'*':
- letsencrypt
letsencrypt.sls:
letsencrypt:
use_package: false
version: 0.26.x
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = saltstack-letsencrypt-formula@example.com
authenticator = standalone
agree-tos = True
renew-by-default = True
domainsets:
www:
- letsencrypt-formula.example.com
pillars_from_files:
letsencrypt.sls: test/salt/pillar/git.sls
- name: deb
excludes:
- centos-7
Expand Down Expand Up @@ -144,34 +110,9 @@ suites:
'*':
- apt
- letsencrypt
apt.sls:
apt:
repositories:
#####
letsencrypt-backports:
distro: stretch-backports
url: http://deb.debian.org/debian
comps: [main]
preferences:
letsencrypt-backports:
pin: release a=stretch-backports
priority: 640
# epel.sls:
# epel:
# disabled: false
letsencrypt.sls:
letsencrypt:
use_package: true
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = saltstack-letsencrypt-formula@example.com
authenticator = webroot
webroot-path = /var/www/html
agree-tos = true
renew-by-default = true
domainsets:
www:
- letsencrypt-formula.example.com
pillars_from_files:
apt.sls: test/salt/pillar/apt.sls
letsencrypt.sls: test/salt/pillar/deb.sls

- name: rpm
excludes:
Expand All @@ -194,16 +135,5 @@ suites:
base:
'*':
- letsencrypt
letsencrypt.sls:
letsencrypt:
use_package: true
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = saltstack-letsencrypt-formula@example.com
authenticator = webroot
webroot-path = /var/www/html
agree-tos = true
renew-by-default = true
domainsets:
www:
- letsencrypt-formula.example.com
pillars_from_files:
letsencrypt.sls: test/salt/pillar/rpm.sls
13 changes: 13 additions & 0 deletions test/salt/pillar/apt.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
apt:
repositories:
letsencrypt-backports:
distro: stretch-backports
url: http://deb.debian.org/debian
comps: [main]
preferences:
letsencrypt-backports:
pin: release a=stretch-backports
priority: 640
15 changes: 15 additions & 0 deletions test/salt/pillar/deb.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
letsencrypt:
use_package: true
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = saltstack-letsencrypt-formula@example.com
authenticator = webroot
webroot-path = /var/www/html
agree-tos = true
renew-by-default = true
domainsets:
www:
- letsencrypt-formula.example.com
15 changes: 15 additions & 0 deletions test/salt/pillar/git.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
letsencrypt:
use_package: false
version: 0.26.x
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = saltstack-letsencrypt-formula@example.com
authenticator = standalone
agree-tos = True
renew-by-default = True
domainsets:
www:
- letsencrypt-formula.example.com
15 changes: 15 additions & 0 deletions test/salt/pillar/rpm.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
letsencrypt:
use_package: true
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = saltstack-letsencrypt-formula@example.com
authenticator = webroot
webroot-path = /var/www/html
agree-tos = true
renew-by-default = true
domainsets:
www:
- letsencrypt-formula.example.com

0 comments on commit 65ee41d

Please sign in to comment.