From 6eaa7726d9f9692c00a7f18ae51cc74e37ae38e1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Dec 2013 12:39:42 -0800 Subject: [PATCH] website: use the comparison operators in Puppet docs --- .../source/docs/provisioners/puppet-masterless.html.markdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/source/docs/provisioners/puppet-masterless.html.markdown b/website/source/docs/provisioners/puppet-masterless.html.markdown index b35bea711..fda529091 100644 --- a/website/source/docs/provisioners/puppet-masterless.html.markdown +++ b/website/source/docs/provisioners/puppet-masterless.html.markdown @@ -86,8 +86,8 @@ for readability) to execute Puppet: {{.FacterVars}}{{if .Sudo}} sudo -E {{end}}puppet apply \ --verbose \ --modulepath='{{.ModulePath}}' \ - {{if .HasHieraConfigPath}}--hiera_config='{{.HieraConfigPath}}' {{end}} \ - {{if .HasManifestDir}}--manifestdir='{{.ManifestDir}}' {{end}} \ + {{if .HieraConfigPath ne ""}}--hiera_config='{{.HieraConfigPath}}' {{end}} \ + {{if .ManifestDir ne ""}}--manifestdir='{{.ManifestDir}}' {{end}} \ {{.ManifestFile}} ``` @@ -97,7 +97,6 @@ can contain various template variables, defined below: * `FacterVars` - Shell-friendly string of environmental variables used to set custom facts configured for this provisioner. -* `HasHieraConfigPath` - Boolean true if there is a hiera config path set. * `HieraConfigPath` - The path to a hiera configuration file. * `ManifestFile` - The path on the remote machine to the manifest file for Puppet to use.