Skip to content

Commit

Permalink
fix default for default params. Fix template for empty options
Browse files Browse the repository at this point in the history
  • Loading branch information
cristifalcas committed May 19, 2017
1 parent e84f629 commit b74b2d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class journald (
$persist_log = $journald::params::persist_log,
$enable_defaults = $journald::params::enable_defaults,
$options = undef
$options = {},
) inherits journald::params {
if $::osfamily == 'RedHat' and versioncmp($::operatingsystemrelease, '7.0') >= 0 {
contain ::journald::config
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class journald::params {
$persist_log = true
$enable_defaults = false
$enable_defaults = true
$default_options = {
'Storage' => 'auto',
'Compress' => 'yes',
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cristifalcas-journald",
"author": "Cristian Falcas",
"version": "0.4.0",
"version": "0.5.0",
"source": "[email protected]:cristifalcas/puppet-journald.git",
"project_page": "https://github.com/cristifalcas/puppet-journald",
"issues_url": "https://github.com/cristifalcas/puppet-journald/issues",
Expand Down
2 changes: 1 addition & 1 deletion templates/journald.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See journald.conf(5) for details

[Journal]
<%- scope.lookupvar('journald::config::merged_options').sort.each do |k, v| -%>
<%- scope['journald::config::merged_options'].sort.each do |k, v| -%>
<%- if v != :undef -%>
<%= k %>=<%= v %>
<%- end -%>
Expand Down

0 comments on commit b74b2d6

Please sign in to comment.