class declaration in hiera

This commit is contained in:
jigen 2015-01-08 00:29:09 +01:00
parent a460aa7fde
commit 3774aecd6c

View file

@ -1,6 +1,8 @@
$admin=hiera('ortiche-admin') $admin=hiera('ortiche-admin')
notify{"Variable is ${::admin}": } notify{"Variable is ${::admin}": }
hiera_include('ortiche-classes')
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" , Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ,
"/usr/local/bin/", "/usr/local/sbin/" ] "/usr/local/bin/", "/usr/local/sbin/" ]
} }
@ -73,13 +75,13 @@ node 'snf-29152' {
"smtpd_tls_key_file" : value => "/etc/ssl/private/tanacetum_mailserver_key.pem"; "smtpd_tls_key_file" : value => "/etc/ssl/private/tanacetum_mailserver_key.pem";
} }
class { 'postfix': # class { 'postfix':
myorigin => 'dev_2.indivia.tk', # myorigin => 'dev_2.indivia.tk',
anon_sasl => 'yes', # anon_sasl => 'yes',
root_mail_recipient => "gestione@posta.indivia.net", # root_mail_recipient => "gestione@posta.indivia.net",
require => [ File['/etc/ssl/certs/tanacetum_mailserver_cert.pem'], # require => [ File['/etc/ssl/certs/tanacetum_mailserver_cert.pem'],
File['/etc/ssl/private/tanacetum_mailserver_key.pem'] ], # File['/etc/ssl/private/tanacetum_mailserver_key.pem'] ],
} # }
} }