diff --git a/roles/devserver/mail/files/sendmail.rc b/roles/devserver/mail/files/sendmail.rc new file mode 100644 index 0000000..1039d73 --- /dev/null +++ b/roles/devserver/mail/files/sendmail.rc @@ -0,0 +1,16 @@ +# ------------------------------------------------------------- +# Sendmail — rc configuration +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Project: Nasqueron +# License: Trivial work, not eligible to copyright +# Source file: roles/devserver/mail/files/sendmail.rc +# ------------------------------------------------------------- +# +# +# This file is managed by our rOPS SaltStack repository. +# +# Changes to this file may cause incorrect behavior +# and will be lost if the state is redeployed. +# + +sendmail_enable="YES" diff --git a/roles/devserver/mail/init.sls b/roles/devserver/mail/init.sls new file mode 100644 index 0000000..d2f58a3 --- /dev/null +++ b/roles/devserver/mail/init.sls @@ -0,0 +1,19 @@ +# ------------------------------------------------------------- +# Salt — Provision a development server +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Project: Nasqueron +# Created: 2018-10-30 +# License: Trivial work, not eligible to copyright +# ------------------------------------------------------------- + +# ------------------------------------------------------------- +# Enable incoming mail (T1317) +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +{% if grains['os'] == 'FreeBSD' %} + +/etc/rc.conf.d/sendmail: + file.managed: + - source: salt://roles/devserver/mail/files/sendmail.rc + +{% endif %}