Hi,
The puppet masterless provisioner has the following command. In simpler 
terms this does like puppet apply --detailed-exitcodes
  /tmp/puppet-masterless/init.pp.

Is there a way to do puppet apply --modulepath=/tmp/modules/puppet_manifest 
-e 'include classname' ? 
I saw the go provisioner file but looks like though it may be able to take 
in the modulepath and all other details but it maynot be able to omit the 
manifest file. Like the command can be modified but not completely changed, 
Is this true?

cd {{.WorkingDir}} &&
    {{if ne .FacterVars ""}}{{.FacterVars}} {{end}}
    {{if .Sudo}}sudo -E {{end}}
    {{if ne .PuppetBinDir ""}}{{.PuppetBinDir}}/{{end}}
  puppet apply --detailed-exitcodes
    {{if .Debug}}--debug {{end}}
    {{if ne .ModulePath ""}}--modulepath='{{.ModulePath}}' {{end}}
    {{if ne .HieraConfigPath ""}}--hiera_config='{{.HieraConfigPath}}' {{end}}
    {{if ne .ManifestDir ""}}--manifestdir='{{.ManifestDir}}' {{end}}
    {{if ne .ExtraArguments ""}}{{.ExtraArguments}} {{end}}
    {{.ManifestFile}}

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/f16df8a6-ee4a-4330-b379-c0f87ad11f3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to