diff --git a/cookbooks/fb_postfix/attributes/default.rb b/cookbooks/fb_postfix/attributes/default.rb index 02a7d00fe..2f1c0bce2 100644 --- a/cookbooks/fb_postfix/attributes/default.rb +++ b/cookbooks/fb_postfix/attributes/default.rb @@ -15,18 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -default['fb_postfix'] = { - 'enable' => true, - 'mask_service' => false, - 'aliases' => {}, - 'access' => {}, - 'canonical' => {}, - 'etrn_access' => { - '127.0.0.1' => 'OK', +main_cf = value_for_platform_family( + 'debian' => { + 'compatibility_level' => '3.6', }, - 'local_access' => {}, - 'localdomains' => [], - 'main.cf' => { + 'default' => { 'daemon_directory' => '/usr/libexec/postfix', 'queue_directory' => '/var/spool/postfix', 'mail_owner' => 'postfix', @@ -107,6 +100,21 @@ # Postfix will interpret this to be hostname 'smtp_helo_name' => '$myhostname', }, +) + +default['fb_postfix'] = { + 'enable' => true, + 'mask_service' => false, + 'aliases' => {}, + 'access' => {}, + 'canonical' => {}, + 'etrn_access' => { + '127.0.0.1' => 'OK', + }, + 'local_access' => {}, + 'localdomains' => [], + # will be a symlink to the right arch dir + 'main.cf' => main_cf, # master.cf as per http://www.postfix.org/master.5.html # In master.cf, unique by service:type and not just service. 'master.cf' => { diff --git a/cookbooks/fb_postfix/metadata.rb b/cookbooks/fb_postfix/metadata.rb index c0ec2e0dd..d79b6df66 100644 --- a/cookbooks/fb_postfix/metadata.rb +++ b/cookbooks/fb_postfix/metadata.rb @@ -6,4 +6,8 @@ description 'Installs/Configures postfix' source_url 'https://github.com/facebook/chef-cookbooks/' supports 'centos' +supports 'debian' +supports 'oracle' +supports 'redhat' +supports 'ubuntu' version '0.0.1'