Skip to content

Commit

Permalink
Merge pull request #377 from Faffnir/master
Browse files Browse the repository at this point in the history
Fix validate command for config files in consul 1.0.0
  • Loading branch information
solarkennedy authored Oct 27, 2017
2 parents 95ad595 + 822d610 commit 2e17c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
mode => $::consul::config_mode,
content => consul_sorted_json($config_hash, $::consul::pretty_config, $::consul::pretty_config_indent),
require => File[$::consul::config_dir],
validate_cmd => "${::consul::bin_dir}/consul validate % > /dev/null",
validate_cmd => "${::consul::bin_dir}/consul validate $(ln -s % /tmp/consul-config.json && echo \"/tmp/consul-config.json\") > /dev/null",
}

}

0 comments on commit 2e17c06

Please sign in to comment.