-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoss.yaml
113 lines (109 loc) · 2.27 KB
/
goss.yaml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package:
# System
openssh-client:
installed: true
sshpass:
installed: true
pipx:
installed: true
shellcheck:
installed: true
# Docker
docker-ce-cli:
installed: true
# Project
jq:
installed: true
group:
# Base
lazy:
exists: true
user:
# Base
lazy:
exists: true
groups:
- lazy
shell: /bin/bash
file:
# Base
/etc/os-release:
exists: true
contents:
- PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
# Git
/etc/gitconfig:
exists: true
contents:
- "# Git config template"
# Ssh
/etc/ssh/ssh_config.d/ssh_config.conf:
exists: true
contents:
- "# Ssh config template"
command:
# Base
gomplate --version:
exit-status: 0
stdout:
- gomplate version 3.11.7
# Direnv
direnv --version:
exit-status: 0
stdout:
- 2.33.0
# Goss
goss --version:
exit-status: 0
stdout:
- goss version v{{ .Vars.system.goss.version }}
# Env
echo ${TEST}:
exit-status: 0
stdout:
- test
# Env File
echo ${TEST_FOO}:
exit-status: 0
stdout:
- foo
echo ${TEST_BAR}:
exit-status: 0
stdout:
- bar
# Ansible
ansible --version:
exit-status: 0
stdout:
- ansible [core {{ .Vars.system.ansible.version }}]
sudo pipx runpip ansible-core list:
exit-status: 0
stdout:
- "/ansible-core(\\s+){{ .Vars.system.ansible.version }}/"
- "/hvac(\\s+)\\d+\\.\\d+\\.\\d+/"
# Ansible Lint
ansible-lint --nocolor --version:
exit-status: 0
stdout:
- ansible-lint {{ (index .Vars.system "ansible-lint").version }}
sudo pipx runpip ansible-lint list:
exit-status: 0
stdout:
- "/ansible-lint(\\s+){{ (index .Vars.system "ansible-lint").version }}/"
- "/pytest(\\s+)\\d+\\.\\d+\\.\\d+/"
# Molecule
FORCE_COLOR=0 molecule --version:
exit-status: 0
stdout:
- molecule {{ .Vars.system.molecule.version }}
- "/docker:\\d+\\.\\d+\\.\\d+ from molecule_plugin/"
sudo pipx runpip molecule list:
exit-status: 0
stdout:
- "/molecule(\\s+){{ .Vars.system.molecule.version }}/"
- "/molecule-plugins(\\s+)\\d+\\.\\d+\\.\\d+/"
# Terraform
terraform -version:
exit-status: 0
stdout:
- Terraform v{{ .Vars.system.terraform.version }}