forked from saltstack-formulas/letsencrypt-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
94 lines (88 loc) · 2.01 KB
/
.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
driver:
name: docker
driver_config:
use_sudo: false
privileged: true
platforms:
- name: debian-9
driver_config:
provision_command:
- mkdir -p /run/sshd
- apt-get install git -y
run_command: /lib/systemd/systemd
- name: centos-7
driver_config:
image: saltstack/centos-7-minimal
provision_command:
- mkdir -p /run/sshd
- yum install git -y
run_command: /lib/systemd/systemd
provisioner:
name: salt_solo
log_level: info
require_chef: false
salt_version: latest
formula: letsencrypt
salt_copy_filter:
- .kitchen
- .git
dependencies:
- name: apt
repo: git
source: https://github.com/saltstack-formulas/apt-formula.git
pillars:
top.sls:
base:
'*':
- 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: [email protected]
authenticator: webroot
webroot-path: /var/www/html
agree-tos: true
renew-by-default: true
suites:
- name: deb
excludes:
- centos-7
provisioner:
state_top:
base:
'*':
- apt.repositories
- apt.preferences
- apt.update
- letsencrypt.install
- letsencrypt.service
- letsencrypt.config
- name: rpm
excludes:
- debian-9
provisioner:
state_top:
base:
'*':
# - epel
- letsencrypt.install
- letsencrypt.config