[PATCH] finish the postfix migration to sanity away from the templates. This should allow us to have main.cf and master.cf files in the postfix/files/dirs with extensions corresponding to the fqdn/hostname/group/datacenter that they are and a sensible default.

seth vidal skvidal at fedoraproject.org
Fri Sep 16 21:20:49 UTC 2011




On Fri, 2011-09-16 at 21:16 +0000, skvidal at fedoraproject.org wrote:
> From: Seth Vidal <skvidal at fedoraproject.org>
> 
> all without lots of random definitions
> ---
>  .../nodes/compose-x86-01.phx2.fedoraproject.org.pp |    2 -
>  manifests/services/gateway.pp                      |   17 +-
>  manifests/services/smtp-mm.pp                      |   16 +-
>  manifests/services/valueadd.pp                     |   22 +-
>  modules/postfix/files/main.cf/main.cf              |    2 +-
>  modules/postfix/files/main.cf/main.cf.bastion      |  704 --------------------
>  modules/postfix/files/main.cf/main.cf.external     |  685 -------------------
>  modules/postfix/files/main.cf/main.cf.gateway      |  704 ++++++++++++++++++++
>  modules/postfix/files/main.cf/main.cf.phx          |  685 +++++++++++++++++++
>  modules/postfix/files/master.cf/master.cf          |   96 +++
>  modules/postfix/files/master.cf/master.cf.hosted01 |   98 +++
>  modules/postfix/files/master.cf/master.cf.value    |  100 +++
>  modules/postfix/manifests/init.pp                  |  108 +---
>  13 files changed, 1722 insertions(+), 1517 deletions(-)
>  delete mode 100644 modules/postfix/files/main.cf/main.cf.bastion
>  delete mode 100644 modules/postfix/files/main.cf/main.cf.external
>  create mode 100644 modules/postfix/files/main.cf/main.cf.gateway
>  create mode 100644 modules/postfix/files/main.cf/main.cf.phx
>  create mode 100644 modules/postfix/files/master.cf/master.cf
>  create mode 100644 modules/postfix/files/master.cf/master.cf.hosted01
>  create mode 100644 modules/postfix/files/master.cf/master.cf.value



These changes convert us from using puppet templates to using simple
files for our configs.

the files are named:

main.cf.someextension

we use this in resolv.conf dispersion, rsyncd configs for the download
servers and other bits.

This just drastically lowers the learning curve for someone going from
average postfix admin skill to usefully editing the fedora
configuration.


-sv




More information about the infrastructure mailing list