2020-04-28 13:23:10 +02:00
|
|
|
---
|
2020-12-30 11:14:13 +01:00
|
|
|
## TODO: Remember to adapt goss tests to your convenience
|
2020-12-29 11:41:27 +01:00
|
|
|
{% if cookiecutter.has_service == 'True' %}
|
|
|
|
service:
|
|
|
|
{{ cookiecutter.app_name }}:
|
|
|
|
enabled: true
|
|
|
|
running: true
|
2020-12-29 11:54:54 +01:00
|
|
|
|
2020-12-29 11:41:27 +01:00
|
|
|
process:
|
|
|
|
{{ cookiecutter.exec_name }}:
|
|
|
|
running: true
|
2020-12-29 11:54:54 +01:00
|
|
|
|
|
|
|
user:
|
|
|
|
exampleuser:
|
|
|
|
exists: true
|
|
|
|
groups:
|
|
|
|
- examplegroup
|
|
|
|
shell: /usr/sbin/nologin
|
|
|
|
group:
|
|
|
|
examplegroup:
|
|
|
|
exists: true
|
2020-12-29 11:41:27 +01:00
|
|
|
{% endif %}
|
2020-04-28 13:23:10 +02:00
|
|
|
file:
|
2020-12-29 11:41:27 +01:00
|
|
|
/opt/{{ cookiecutter.app_name }}:
|
2021-08-24 12:12:44 +02:00
|
|
|
{%- if cookiecutter.has_service == 'True' %}
|
2020-12-29 11:41:27 +01:00
|
|
|
owner: exampleuser
|
|
|
|
group: examplegroup
|
2021-08-24 12:12:44 +02:00
|
|
|
{%- endif %}
|
2020-12-29 11:41:27 +01:00
|
|
|
exists: true
|
|
|
|
filetype: directory
|
|
|
|
/opt/{{ cookiecutter.app_name }}/bin:
|
2021-08-24 12:12:44 +02:00
|
|
|
{%- if cookiecutter.has_service == 'True' %}
|
2020-12-29 11:41:27 +01:00
|
|
|
owner: exampleuser
|
|
|
|
group: examplegroup
|
2021-08-24 12:12:44 +02:00
|
|
|
{%- endif %}
|
2020-04-28 13:23:10 +02:00
|
|
|
exists: true
|
|
|
|
filetype: directory
|
2020-12-29 11:41:27 +01:00
|
|
|
|
|
|
|
## Check if ports are really exposed
|
2020-04-28 13:23:10 +02:00
|
|
|
# port:
|
|
|
|
# # Check port at IPv6
|
|
|
|
# # https://github.com/aelsabbahy/goss/issues/177
|
2020-12-29 11:41:27 +01:00
|
|
|
# tcp6:<port>:
|
2020-04-28 13:23:10 +02:00
|
|
|
# listening: true
|
|
|
|
# ip:
|
|
|
|
# - '::'
|