diff options
Diffstat (limited to 'vendor/github.com/mitchellh/packer/website/source/docs/provisioners/puppet-server.html.md')
-rw-r--r-- | vendor/github.com/mitchellh/packer/website/source/docs/provisioners/puppet-server.html.md | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/vendor/github.com/mitchellh/packer/website/source/docs/provisioners/puppet-server.html.md b/vendor/github.com/mitchellh/packer/website/source/docs/provisioners/puppet-server.html.md index 61a06d22..6adfd6b0 100644 --- a/vendor/github.com/mitchellh/packer/website/source/docs/provisioners/puppet-server.html.md +++ b/vendor/github.com/mitchellh/packer/website/source/docs/provisioners/puppet-server.html.md @@ -81,20 +81,38 @@ listed below: or `%PATH%` environment variable, but some builders (notably, the Docker one) do not run profile-setup scripts, therefore the path is usually empty. +- `guest_os_type` (string) - The target guest OS type, either "unix" or + "windows". Setting this to "windows" will cause the provisioner to use + Windows friendly paths and commands. By default, this is "unix". + - `execute_command` (string) - This is optional. The command used to execute Puppet. This has - various [configuration template - variables](/docs/templates/engine.html) available. See - below for more information. By default, Packer uses the following command: - -``` liquid -{{.FacterVars}} {{if .Sudo}} sudo -E {{end}} \ - {{if ne .PuppetBinDir \"\"}}{{.PuppetBinDir}}/{{end}}puppet agent --onetime --no-daemonize \ - {{if ne .PuppetServer \"\"}}--server='{{.PuppetServer}}' {{end}} \ - {{if ne .Options \"\"}}{{.Options}} {{end}} \ - {{if ne .PuppetNode \"\"}}--certname={{.PuppetNode}} {{end}} \ - {{if ne .ClientCertPath \"\"}}--certdir='{{.ClientCertPath}}' {{end}} \ - {{if ne .ClientPrivateKeyPath \"\"}}--privatekeydir='{{.ClientPrivateKeyPath}}' \ - {{end}} --detailed-exitcodes + various [configuration template variables](/docs/templates/engine.html) available. By default, + Packer uses the following command (broken across multiple lines for readability) to execute Puppet: + +``` +{{.FacterVars}} {{if .Sudo}}sudo -E {{end}} +{{if ne .PuppetBinDir ""}}{{.PuppetBinDir}}/{{end}}puppet agent +--onetime --no-daemonize +{{if ne .PuppetServer ""}}--server='{{.PuppetServer}}' {{end}} +{{if ne .Options ""}}{{.Options}} {{end}} +{{if ne .PuppetNode ""}}--certname={{.PuppetNode}} {{end}} +{{if ne .ClientCertPath ""}}--certdir='{{.ClientCertPath}}' {{end}} +{{if ne .ClientPrivateKeyPath ""}}--privatekeydir='{{.ClientPrivateKeyPath}}' {{end}} +--detailed-exitcodes +``` + +The following command is used if guest OS type is windows: + +``` +{{.FacterVars}} +{{if ne .PuppetBinDir ""}}{{.PuppetBinDir}}/{{end}}puppet agent +--onetime --no-daemonize +{{if ne .PuppetServer ""}}--server='{{.PuppetServer}}' {{end}} +{{if ne .Options ""}}{{.Options}} {{end}} +{{if ne .PuppetNode ""}}--certname={{.PuppetNode}} {{end}} +{{if ne .ClientCertPath ""}}--certdir='{{.ClientCertPath}}' {{end}} +{{if ne .ClientPrivateKeyPath ""}}--privatekeydir='{{.ClientPrivateKeyPath}}' {{end}} +--detailed-exitcodes ``` ## Default Facts |