[COOK-3328] Refactor main.cf template and attributes
Signed-off-by: Seth Vargo <sethvargo@gmail.com>
This commit is contained in:
committed by
Seth Vargo
parent
3d18ce0e39
commit
0108248ac4
71
metadata.rb
71
metadata.rb
@@ -14,9 +14,9 @@ recipe "postfix::server", "Sets the mail_type attribute to master"
|
||||
supports os
|
||||
end
|
||||
|
||||
attribute "postfix",
|
||||
:display_name => "Postfix",
|
||||
:description => "Hash of Postfix attributes",
|
||||
attribute "postfix/main",
|
||||
:display_name => "postfix/main",
|
||||
:description => "Hash of Postfix main.cf attributes",
|
||||
:type => "hash"
|
||||
|
||||
attribute "postfix/aliases",
|
||||
@@ -29,61 +29,6 @@ attribute "postfix/mail_type",
|
||||
:description => "Is this node a client or server?",
|
||||
:default => "client"
|
||||
|
||||
attribute "postfix/myhostname",
|
||||
:display_name => "Postfix Myhostname",
|
||||
:description => "Sets the myhostname value in main.cf",
|
||||
:default => "fqdn"
|
||||
|
||||
attribute "postfix/mydomain",
|
||||
:display_name => "Postfix Mydomain",
|
||||
:description => "Sets the mydomain value in main.cf",
|
||||
:default => "domain"
|
||||
|
||||
attribute "postfix/myorigin",
|
||||
:display_name => "Postfix Myorigin",
|
||||
:description => "Sets the myorigin value in main.cf",
|
||||
:default => "$myhostname"
|
||||
|
||||
attribute "postfix/relayhost",
|
||||
:display_name => "Postfix Relayhost",
|
||||
:description => "Sets the relayhost value in main.cf",
|
||||
:default => ""
|
||||
|
||||
attribute "postfix/mail_relay_networks",
|
||||
:display_name => "Postfix Mail Relay Networks",
|
||||
:description => "Sets the mynetworks value in main.cf",
|
||||
:default => "127.0.0.0/8"
|
||||
|
||||
attribute "postfix/smtp_sasl_auth_enable",
|
||||
:display_name => "Postfix SMTP SASL Auth Enable",
|
||||
:description => "Enable SMTP SASL Authentication",
|
||||
:default => "no"
|
||||
|
||||
attribute "postfix/smtp_sasl_password_maps",
|
||||
:display_name => "Postfix SMTP SASL Password Maps",
|
||||
:description => "hashmap of SASL passwords",
|
||||
:default => "hash:/etc/postfix/sasl_passwd"
|
||||
|
||||
attribute "postfix/smtp_sasl_security_options",
|
||||
:display_name => "Postfix SMTP SASL Security Options",
|
||||
:description => "Sets the value of smtp_sasl_security_options in main.cf",
|
||||
:default => "noanonymous"
|
||||
|
||||
attribute "postfix/inet_interfaces",
|
||||
:display_name => "Postfix listening interfaces",
|
||||
:description => "Interfaces to listen to, all or loopback-only. default is all for master mail_type, and loopback-only otherwise",
|
||||
:default => ""
|
||||
|
||||
attribute "postfix/smtp_tls_cafile",
|
||||
:display_name => "Postfix SMTP TLS CA File",
|
||||
:description => "CA certificate file for SMTP over TLS",
|
||||
:default => "/etc/postfix/cacert.pem"
|
||||
|
||||
attribute "postfix/smtp_use_tls",
|
||||
:display_name => "Postfix SMTP Use TLS?",
|
||||
:description => "Whether SMTP SASL Auth should use TLS encryption",
|
||||
:default => "yes"
|
||||
|
||||
attribute "postfix/smtp_sasl_user_name",
|
||||
:display_name => "Postfix SMTP SASL Username",
|
||||
:description => "User to auth SMTP via SASL",
|
||||
@@ -94,21 +39,11 @@ attribute "postfix/smtp_sasl_passwd",
|
||||
:description => "Password for smtp_sasl_user_name",
|
||||
:default => ""
|
||||
|
||||
attribute "postfix/aliases",
|
||||
:display_name => "Postfix mail aliases",
|
||||
:description => "Hash of mail aliases for /etc/aliases",
|
||||
:default => ""
|
||||
|
||||
attribute "postfix/relayhost_role",
|
||||
:display_name => "Postfix Relayhost's role",
|
||||
:description => "String containing the role name",
|
||||
:default => "relayhost"
|
||||
|
||||
attribute "postfix/multi_environment_relay",
|
||||
:display_name => "Postfix Search for relayhost in any environment",
|
||||
:description => "If true, then the client recipe will search any environment instead of just the node's",
|
||||
:default => ""
|
||||
|
||||
attribute "postfix/use_procmail",
|
||||
:display_name => "Postfix Use procmail?",
|
||||
:description => "Whether procmail should be used as the local delivery agent for a server",
|
||||
|
||||
Reference in New Issue
Block a user