mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 02:45:21 +00:00
40 lines
697 B
Plaintext
40 lines
697 B
Plaintext
include:
|
|
- .pkg
|
|
|
|
/etc/mail/aliases:
|
|
file.managed:
|
|
- source: salt://postfix/files/aliases
|
|
- template: jinja
|
|
- mode: 644
|
|
- user: root
|
|
- group: root
|
|
|
|
newaliases-create:
|
|
cmd.run:
|
|
- name: /usr/bin/newaliases
|
|
- creates: /etc/mail/aliases.db
|
|
- require:
|
|
- file: /etc/mail/aliases
|
|
|
|
newaliases:
|
|
cmd.wait:
|
|
- name: /usr/bin/newaliases
|
|
- watch:
|
|
- file: /etc/mail/aliases
|
|
|
|
postfix:
|
|
service.running:
|
|
- enable: True
|
|
- watch:
|
|
- pkg: mail-mta/postfix
|
|
|
|
postfix-reload:
|
|
service.running:
|
|
- name: postfix
|
|
- reload: True
|
|
- require:
|
|
- pkg: mail-mta/postfix
|
|
- watch:
|
|
- cmd: newaliases-create
|
|
- cmd: newaliases
|