forked from sous-chefs/postfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
114 lines (93 loc) · 4.11 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
maintainer "Opscode, Inc."
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs and configures postfix for client or outbound relayhost, or to do SASL auth"
version "1.2.3"
recipe "postfix", "Installs and configures postfix"
recipe "postfix::sasl_auth", "Set up postfix to auth to a server with sasl"
recipe "postfix::aliases", "Manages /etc/aliases"
recipe "postfix::client", "Searches for the relayhost based on an attribute"
recipe "postfix::server", "Sets the mail_type attribute to master"
%w{ubuntu debian redhat centos amazon scientific}.each do |os|
supports os
end
attribute "postfix",
:display_name => "Postfix",
:description => "Hash of Postfix attributes",
:type => "hash"
attribute "postfix/aliases",
:display_name => "Postfix Aliases",
:description => "Hash of Postfix aliases mapping a name to a value. Example 'root' => '[email protected]'. See aliases man page for details.",
:type => "hash"
attribute "postfix/mail_type",
:display_name => "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",
:default => ""
attribute "postfix/smtp_sasl_passwd",
:display_name => "Postfix SMTP SASL Password",
: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",
:default => "no"