Commit a602d0b8 authored by Michael Thomas's avatar Michael Thomas
Browse files

Style improvements. Add initial documentation.

parent 69865d77
# @summary installs and configures the ssmtp mail transport agent
#
# @example Basic usage
# class { '::ssmtp':
# mailhub => '10.0.0.1',
# }
#
# @param mailhub
# The hostname or IP address of the local unauthenticated mail relay
#
class ssmtp (
String $mailhub,
) {
......@@ -10,13 +21,13 @@ class ssmtp (
package { 'exim4': ensure => absent, }
file { '/etc/ssmtp/ssmtp.conf':
ensure => file,
owner => 'root',
group => 'mail',
mode => '0644',
ensure => file,
owner => 'root',
group => 'mail',
mode => '0644',
require => Package['ssmtp'],
content => epp('smtpclient/etc/ssmtp/ssmtp.conf.epp', {
'mailhub' => $mailhub,
})
'mailhub' => $mailhub,
})
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment