class postfix { package { postfix: } service { 'postfix': subscribe => Package['postfix'], } file { '/etc/postfix/main.cf': require => Package['postfix'], content => '', notify => Service['postfix'], } file { '/etc/ssl/postfix/': ensure => directory, } openssl::self_signed_splitted_cert { "${::hostname}.${::domain}": filename => 'postfix', directory => '/etc/ssl/postfix/', owner => 'postfix', group => 'postfix' } }