Skip to content

Instantly share code, notes, and snippets.

Created January 21, 2016 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b4480386995441288d43 to your computer and use it in GitHub Desktop.
Save anonymous/b4480386995441288d43 to your computer and use it in GitHub Desktop.
{% elif grains['os'] in ('CentOS', 'RedHat') and grains['roles'] != 'mailserver' %}
add_relayhost:
file.append:
- name: /etc/postfix/main.cf
- text: |
relayhost = [mail.$mydomain]
- require:
- pkg: postfix
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment