78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
|
service:
|
||
|
{{ if ne .Vars.OS "windows"}} # Linux
|
||
|
containerd:
|
||
|
enabled: true
|
||
|
running: true
|
||
|
dockerd:
|
||
|
enabled: false
|
||
|
running: false
|
||
|
kubelet:
|
||
|
enabled: true
|
||
|
running: false
|
||
|
conntrackd:
|
||
|
enabled: false
|
||
|
running: false
|
||
|
auditd:
|
||
|
enabled: true
|
||
|
running: true
|
||
|
{{if ne .Vars.OS "flatcar"}}
|
||
|
# Flatcar uses systemd-timesyncd instead of chronyd.
|
||
|
chronyd:
|
||
|
enabled: true
|
||
|
running: true
|
||
|
{{end}}
|
||
|
{{range $name, $vers := index .Vars .Vars.OS "common-service"}}
|
||
|
{{ $name }}:
|
||
|
{{range $key, $val := $vers}}
|
||
|
{{$key}}: {{$val}}
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
{{range $name, $vers := index .Vars .Vars.OS .Vars.PROVIDER "service"}}
|
||
|
{{ $name }}:
|
||
|
{{range $key, $val := $vers}}
|
||
|
{{$key}}: {{$val}}
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
|
||
|
{{ if eq .Vars.OS "windows"}} # Windows
|
||
|
# Workaround until windows services are added to goss
|
||
|
command:
|
||
|
{{range $name, $vers := index .Vars .Vars.OS "common-windows-service"}}
|
||
|
"Windows Service - {{ $name }}":
|
||
|
exec: powershell -command "(Get-Service {{ $name }} | select *)"
|
||
|
exit-status: 0
|
||
|
stdout: {{range $vers.expected}}
|
||
|
- {{.}}
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
{{range $name, $vers := index .Vars .Vars.OS .Vars.PROVIDER "windows-service"}}
|
||
|
"Windows Service - {{ $name }}":
|
||
|
exec: powershell -command "(Get-Service {{ $name }} | select *)"
|
||
|
exit-status: 0
|
||
|
stdout: {{range $vers.expected}}
|
||
|
- {{.}}
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
|
||
|
{{ if eq .Vars.runtime "docker-ee" }}
|
||
|
|
||
|
"Windows Service - docker":
|
||
|
exec: powershell -command "(Get-Service docker | select *)"
|
||
|
exit-status: 0
|
||
|
stdout:
|
||
|
- Automatic
|
||
|
- Running
|
||
|
{{end}}
|
||
|
|
||
|
{{ if eq .Vars.runtime "containerd"}}
|
||
|
"Windows Service - containerd":
|
||
|
exec: powershell -command "(Get-Service containerd | select *)"
|
||
|
exit-status: 0
|
||
|
stdout:
|
||
|
- Automatic
|
||
|
- Running
|
||
|
{{end}}
|
||
|
|
||
|
{{end}}
|