Clean up doubled backslashes in logrotate config

According to
https://docs.puppetlabs.com/puppet/3.8/reference/lang_datatypes.html
there is no way to end a single-quoted string with a literal
backslash, so fold this content into the preceding double-quoted
string in an effort to satisfy the linter as well.

Change-Id: Ic639cd2fc1c7953cbf4311ce7c958f9bdb61e31b
This commit is contained in:
Jeremy Stanley 2015-10-13 18:01:09 +00:00
parent a827227079
commit 0dcb175c42

View File

@ -12,13 +12,11 @@ class httpd::logrotate (
], ],
$prerotate = [ $prerotate = [
"if [ -d /etc/logrotate.d/${::httpd::params::apache_name}-prerotate ]; then \\", "if [ -d /etc/logrotate.d/${::httpd::params::apache_name}-prerotate ]; then \\",
" run-parts /etc/logrotate.d/${::httpd::params::apache_name}-prerotate; \\", " run-parts /etc/logrotate.d/${::httpd::params::apache_name}-prerotate; fi ; \\",
'fi; \\',
], ],
$postrotate = [ $postrotate = [
"if service ${::httpd::params::apache_name} status > /dev/null ; then \\", "if service ${::httpd::params::apache_name} status > /dev/null; then \\",
" service ${::httpd::params::apache_name} reload > /dev/null; \\", " service ${::httpd::params::apache_name} reload > /dev/null; fi; \\",
'fi; \\',
], ],
$firstaction = 'undef', $firstaction = 'undef',
$lastaction = 'undef', $lastaction = 'undef',