-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.kitchen.yml
64 lines (60 loc) · 1.81 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
---
driver:
name: docker
use_sudo: false
privileged: true
provisioner:
name: salt_solo
require_chef: false
formula: barman
state_top:
base:
'*':
- barman
platforms:
- name: ubuntu-xenial
driver_config:
run_command: /sbin/init
suites:
- name: default
provisioner:
pillars:
top.sls:
base:
'*':
- barman
barman.sls:
barman:
log_level: INFO
compression: gzip
hosts:
pgsql1:
description: "Example of PostgreSQL Database (Streaming-Only)"
conninfo: "host=pgsql1 user=barman dbname=postgres"
backup_method: postgres
streaming_conninfo: "host=pg user=streaming_barman"
streaming_archiver: "on"
slot_name: barman
last_backup_maximum_age: "1 DAYS"
retention_policy: REDUNDANCY 4
cron:
ensure: present
hour: 23
minute: 30
pgsql2:
description: "Example of PostgreSQL Database (via Ssh)"
conninfo: "host=pgsql2 user=barman dbname=postgres"
backup_method: "rsync"
ssh_command: "ssh postgres@pgsql2"
reuse_backup: link
archiver: "on"
last_backup_maximum_age: "1 DAYS"
retention_policy: REDUNDANCY 4
cron:
ensure: present
hour: 23
minute: 30
verifier:
name: shell
remote_exec: false
command: testinfra -vvv --connection=docker --hosts=root@$KITCHEN_CONTAINER_ID --junit-xml junit-$KITCHEN_INSTANCE.xml test/integration/$KITCHEN_SUITE