[#46] refactoring

This commit is contained in:
Christian Ardiente Eda 2020-12-29 11:54:54 +01:00
parent 747c7f30de
commit 52fc713404

View File

@ -4,9 +4,20 @@ service:
{{ cookiecutter.app_name }}: {{ cookiecutter.app_name }}:
enabled: true enabled: true
running: true running: true
process: process:
{{ cookiecutter.exec_name }}: {{ cookiecutter.exec_name }}:
running: true running: true
user:
exampleuser:
exists: true
groups:
- examplegroup
shell: /usr/sbin/nologin
group:
examplegroup:
exists: true
{% endif %} {% endif %}
file: file:
/opt/{{ cookiecutter.app_name }}: /opt/{{ cookiecutter.app_name }}:
@ -23,17 +34,6 @@ file:
{% endif %} {% endif %}
exists: true exists: true
filetype: directory filetype: directory
{% if cookiecutter.has_service == 'True' %}
user:
exampleuser:
exists: true
groups:
- examplegroup
shell: /usr/sbin/nologin
group:
examplegroup:
exists: true
{% endif %}
## Check if ports are really exposed ## Check if ports are really exposed
# port: # port: