config file
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
# @param [String] ac_apply_updates whether to apply available updates
|
# @param [String] ac_apply_updates whether to apply available updates
|
||||||
# @param [String] ac_reboot when to reboot after applied updates
|
# @param [String] ac_reboot when to reboot after applied updates
|
||||||
# @param [String] ac_emit_via how to inform about emitted updates
|
# @param [String] ac_emit_via how to inform about emitted updates
|
||||||
|
# @param [String] ac_email_to where to send the email to
|
||||||
|
# @param [String] ac_email_host which host to use to send the email
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class automatic_cd::params (
|
class automatic_cd::params (
|
||||||
|
|
||||||
@@ -25,6 +27,8 @@ class automatic_cd::params (
|
|||||||
String $ac_apply_updates = 'yes',
|
String $ac_apply_updates = 'yes',
|
||||||
String $ac_reboot = 'never',
|
String $ac_reboot = 'never',
|
||||||
String $ac_emit_via = 'email',
|
String $ac_emit_via = 'email',
|
||||||
|
String $ac_email_to = 'root@example.net',
|
||||||
|
String $ac_email_host = 'localhost',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# Facts
|
# Facts
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ emit_via = <%= @ac_emit_via %>
|
|||||||
email_from = root@<%= @fqdn %>
|
email_from = root@<%= @fqdn %>
|
||||||
|
|
||||||
# List of addresses to send messages to.
|
# List of addresses to send messages to.
|
||||||
email_to = root
|
email_to = <%= @ac_email_to %>
|
||||||
|
|
||||||
# Name of the host to connect to to send email messages.
|
# Name of the host to connect to to send email messages.
|
||||||
email_host = localhost
|
email_host = <%= @ac_email_host %>
|
||||||
|
|
||||||
|
|
||||||
[command]
|
[command]
|
||||||
@@ -84,10 +84,10 @@ email_host = localhost
|
|||||||
# stdin_format = "{body}"
|
# stdin_format = "{body}"
|
||||||
|
|
||||||
# The address to send email messages from.
|
# The address to send email messages from.
|
||||||
email_from = root@example.com
|
email_from = root@<%= @fqdn %>
|
||||||
|
|
||||||
# List of addresses to send messages to.
|
# List of addresses to send messages to.
|
||||||
email_to = root
|
email_to = <%= @ac_email_to %>
|
||||||
|
|
||||||
|
|
||||||
[base]
|
[base]
|
||||||
|
|||||||
Reference in New Issue
Block a user