Skip to content

Commit

Permalink
Configure Postfix after OSSEC
Browse files Browse the repository at this point in the history
The Postfix logic assumes that the "ossec" user and group will exist,
and sets logfiles accordingly. Therefore let's make sure that Postfix is
configured *after* OSSEC.

The cleaner approach would be to set a `postfix_user` var and set the
default value to "ossec", but rather than add additional logic into our
config to solve an ordering problem, I'd rather focus on making what we
have work—and the current change set is focused on resolving the ossec
registration logic—and then deferring to community-maintained roles for
common services, e.g. Postfix, which would allow overriding via vars.

(cherry picked from commit 5493923)
  • Loading branch information
Conor Schaefer authored and redshiftzero committed Jan 26, 2018
1 parent d9d98ac commit b594833
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions install_files/ansible-base/securedrop-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
- { role: tor-hidden-services, tags: tor }
become: yes

- name: Configure mailing utilities.
hosts: securedrop_monitor_server
roles:
- role: postfix
tags: postfix
become: yes

- name: Configure OSSEC.
hosts: securedrop
roles:
- role: ossec
tags: ossec
become: yes

- name: Configure mailing utilities.
hosts: securedrop_monitor_server
roles:
- role: postfix
tags: postfix
become: yes

- name: Configure SecureDrop Application Server.
hosts: securedrop_application_server
roles:
Expand Down
14 changes: 7 additions & 7 deletions install_files/ansible-base/securedrop-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@
when: install_local_packages }
become: yes

- name: Configure mailing utilities.
hosts: mon-staging
roles:
- role: postfix
tags: postfix
become: yes

- name: Configure OSSEC.
hosts: staging
roles:
- role: ossec
tags: ossec
become: yes

- name: Configure mailing utilities.
hosts: mon-staging
roles:
- role: postfix
tags: postfix
become: yes

- name: Configure SecureDrop Application Server.
hosts: app-staging
roles:
Expand Down

0 comments on commit b594833

Please sign in to comment.