class profiles::mailserver ( ) { class { '::postfix': inet_protocols => 'all', smtp_listen => 'all', } $destinations = [ 'adrift.space', 'hornquist.se', 'localhost', 'localhost.localdomain', ] postfix::config { default: ensure => present ; 'mydomain': value => 'adrift.space' ; 'mydestination': value => $destinations.join(', ') ; } }