mirror of
https://github.com/idealista/cookiecutter-ansible-role.git
synced 2024-11-28 19:06:08 +01:00
47 lines
970 B
YAML
47 lines
970 B
YAML
---
|
|
## TODO: Remember to adapt goss tests to your convenience
|
|
{% if cookiecutter.has_service == 'True' %}
|
|
service:
|
|
{{ cookiecutter.app_name }}:
|
|
enabled: true
|
|
running: true
|
|
|
|
process:
|
|
{{ cookiecutter.exec_name }}:
|
|
running: true
|
|
|
|
user:
|
|
exampleuser:
|
|
exists: true
|
|
groups:
|
|
- examplegroup
|
|
shell: /usr/sbin/nologin
|
|
group:
|
|
examplegroup:
|
|
exists: true
|
|
{% endif %}
|
|
file:
|
|
/opt/{{ cookiecutter.app_name }}:
|
|
{% if cookiecutter.has_service == 'True' %}
|
|
owner: exampleuser
|
|
group: examplegroup
|
|
{% endif %}
|
|
exists: true
|
|
filetype: directory
|
|
/opt/{{ cookiecutter.app_name }}/bin:
|
|
{% if cookiecutter.has_service == 'True' %}
|
|
owner: exampleuser
|
|
group: examplegroup
|
|
{% endif %}
|
|
exists: true
|
|
filetype: directory
|
|
|
|
## Check if ports are really exposed
|
|
# port:
|
|
# # Check port at IPv6
|
|
# # https://github.com/aelsabbahy/goss/issues/177
|
|
# tcp6:<port>:
|
|
# listening: true
|
|
# ip:
|
|
# - '::'
|