ldap_scheme_postfix #3

Merged
stillbeben merged 9 commits from ldap_scheme_postfix into main 2022-01-04 09:35:24 +00:00
Showing only changes of commit d67869aaf6 - Show all commits

View file

@ -1,6 +1,9 @@
svc_systemd = {
'postfix': {
stillbeben marked this conversation as resolved
Review

Please install all apt packages via metadata defaults. Bundlewrap can't handle multiple equal item definitions in a repo, so we should stick with only one way of installing packages.

Please install all apt packages via metadata defaults. Bundlewrap can't handle multiple equal item definitions in a repo, so we should stick with only one way of installing packages.
'needs': ['pkg_apt:postfix', 'file:/etc/postfix/main.cf'],
'needs': [
'pkg_apt:postfix',
'file:/etc/postfix/main.cf',
],
}
stillbeben marked this conversation as resolved
Review

Please use sets here and below.
Please use one line per item in a set/list, and please add a trailing comma to the last item.

I'd recommend we stick to the PEP8 style guide.

Please use sets here and below. Please use one line per item in a set/list, and please add a trailing comma to the last item. I'd recommend we stick to the [PEP8 style guide](https://www.python.org/dev/peps/pep-0008/#when-to-use-trailing-commas).
}
@ -8,7 +11,9 @@ files = {
'/etc/postfix/main.cf': {
'content_type': 'mako',
'needs': ['pkg_apt:postfix'],
'triggers': ['svc_systemd:postfix:restart'],
'triggers': [
'svc_systemd:postfix:restart',
],
},
}
@ -16,6 +21,8 @@ directories = {
'/etc/postfix': {
'owner': 'root',
'mode': '1755',
'needs': ['pkg_apt:postfix'],
'needs': [
'pkg_apt:postfix',
],
},
}