A standard for roles #7
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The usual setup of a service should follow the following formula:
The templates should follow a very straightforward approach
Discovery/linking of services
Filesystem tree and content examples
Moved from/Merged with #6
group.yml
should contain the roles needed for that groupgroup_vars/all
should contain the necessary information described beforegroup.yml
should contain variables that describe configuration and deployment simplified and in-depth as well (with comments)SystemD service standards
/etc/systemd/system
service1.service.d/override.conf
/etc
paths must be separated to prevent cross-service config readingSecurity - File permissions
Variables contexts
The variables should be split in different "contexts" to signal where a variable comes from and to prevent overwriting of them.
Global variables which come from
group_vars/all
should be part of theglobal
keyGlobal variables which come from
group_vars/all
should be part of thehosts.HOSTX
keyGroup variables which are defined in
groupX.yml
don't need a key. They are used for configuring the roles they use.Here's a tree that shows a example of the contexts:
Thanks to t.me/timhok for the firewall idea.