403 Commits

Author SHA1 Message Date
Rickard von Essen
999f2da499
ansible-local/ansible: Add extra-vars packer_*
Added:
- `packer_build_name`
- `packer_builder_type`
- `packer_http_addr` - `ansible-local` only

Closes: #4820
2017-04-23 12:55:01 +02:00
Dan Fuchs
97c819dc15 Merge branch 'master' of https://github.com/mitchellh/packer into ansible-inventory-dir 2017-04-20 10:34:03 -05:00
Weilu Jia
943563e957 Update chef-solo documentation to match latest changes 2017-04-12 16:30:07 -07:00
Weilu Jia
05d46c61f7 Add documentation for chef-solo version pinning 2017-04-12 16:27:59 -07:00
Dan Fuchs
50637a68bf Clarify inventory_directory in ansible provisioner docs 2017-04-04 22:58:46 -05:00
Dan Fuchs
609e70face inventory_directory option for ansible provisioner
Add an `inventory_directory` setting to the Ansible provisioner that
allows a user to specify a directory in which the Packer Ansible
provisioner would write the generated inventory file.  If a value is
specified for this setting, then have the Packer Ansible provisioner
pass this directory as the -i arg when it calls ansible.

This would allow an Ansible playbook used by the Packer Ansible
provisioner to use variables specified in `host_vars` and `group_vars`
in this inventory directory.
2017-04-04 16:43:46 -05:00
Matthew Hooker
589f8b72dc
provisioner/ansible-local: document staging dir
We made the staging directory random earlier, so let's document it properly.
2017-04-04 12:01:32 -07:00
Anton Kvashenkin
fe3cdf5fe4 Merge branch 'master' into website-docs-windows-restart 2017-04-03 22:06:26 +03:00
Seth Vargo
38e0ba8bd3
Fix broken links 2017-03-28 18:28:34 -04:00
Seth Vargo
6b80c21043
Revamp pages and docs to fit HashiCorp brand 2017-03-28 16:05:19 -04:00
Anton Kvashenkin
d189676ff0 Website/docs: make windows-restart provisioner description more accurate
As per https://github.com/mitchellh/packer/blob/master/provisioner/windows-restart/provisioner.go#L16
windows-restart doesn't stop winrm prior to restart host.
2017-03-12 12:48:08 +03:00
Matthew Hooker
f8a8952231
website/docs: fix file upload tar script 2017-03-09 17:39:46 -08:00
Matthew Hooker
322eeeb4ac
website/docs: make file provisioner reqs clearer
Make extra clear the file provisioner needs destination directory to exist.
2017-03-09 17:30:09 -08:00
Matthew Hooker
e63a646afe
website/docs: note docker behavior in file provisioner 2017-03-09 16:32:01 -08:00
Matthew Hooker
26f9c61137
spellfix 2017-03-01 15:45:29 -08:00
Matthew Hooker
3c290f7c7e
docs/ansible-local: playbook_paths clarification 2017-02-10 00:01:09 -08:00
Matthew Hooker
df440f7877 Merge pull request #4477 from mitchellh/ansibleremoteuserno
docs/ansible: clarify that we ignore remote_user
2017-02-01 22:02:29 -08:00
Matthew Hooker
9ab148e56d Merge pull request #4476 from mitchellh/ansicolor
ansible does its own coloring.
2017-02-01 22:02:08 -08:00
Matthew Hooker
eec93dfca7 Merge pull request #4473 from mitchellh/symboldoc
document how we upload symbolic links
2017-02-01 22:01:49 -08:00
Rickard von Essen
4ffbfde09b
s/communicator/connection plugin/ to align with Ansible nomenclature 2017-01-30 12:11:48 +01:00
Rickard von Essen
a5171fef4d
provisioner/ansible: Add documentation howto use with chroot
Closes #3583
2017-01-30 12:09:55 +01:00
Matthew Hooker
d46d5ea2fb
docs/ansible: clarify that we ignore remote_user 2017-01-28 19:05:42 -08:00
Matthew Hooker
df247a99a1
ansible does its own coloring. 2017-01-28 18:41:11 -08:00
Matthew Hooker
b3db88109d
document how we upload symbolic links 2017-01-27 18:32:08 -08:00
Matthew Hooker
4dcab2fb9c
docs/provisioners/shell: safety first
make it harder to forget -e when overriding shebang. Closes #2873
2017-01-25 16:06:43 -08:00
Matthew Hooker
6563eb213c
Document. add to windows-shell and powershell 2017-01-17 17:07:36 -08:00
Matthew Hooker
5fc6a2ee70 Merge pull request #4326 from asteris-llc/feature/converge-provisioner
New Provisioner: Converge
2017-01-04 10:46:18 -08:00
Brian Hicks
d9683c0817
website: add default note on converge bootstrap parameter 2017-01-04 12:12:35 -05:00
Sean Malloy
bd0985cde8 Do not escape quotes 2016-12-29 23:25:34 -06:00
Sean Malloy
01b5a824f3 Clean up puppet provisioner documentation
Clarify that the puppet_bin_dir options is the
path to the directory that contains the puppet
binary. Update default execute command. Clarify
that the client_cert_path and the client_private_key_path
options are paths to directories not regular files.
2016-12-28 22:33:44 -06:00
Rickard von Essen
cda83dc93a
provisioner/puppet-server: Fixed formatting for execute_command 2016-12-28 21:43:57 +01:00
Brian Hicks
feab6f096e
provisioner(converge): add prevent_bootstrap_sudo 2016-12-28 12:53:22 -06:00
Brian Hicks
fb6a5c5bbc
provisioner(converge): change skip_bootstrap back to bootstrap 2016-12-28 12:49:40 -06:00
Brian Hicks
18425c45d0
provisioner(converge): change bootstrap to skip_bootstrap 2016-12-28 08:48:02 -06:00
Brian Hicks
5d935767f0
provisioner(converge): add bootstrap_command 2016-12-28 08:45:19 -06:00
Brian Hicks
843731d98d
provisioner(converge): add prevent_sudo 2016-12-28 08:19:03 -06:00
Brian Hicks
30a393d4c2
provisioner(converge): update documentation with new schema 2016-12-27 16:50:44 -06:00
Brian Hicks
6365e40126
provisioners(converge): document 2016-12-27 15:57:11 -06:00
Sean Malloy
7feb8b993c Add default facts for puppet-server provisioner 2016-12-22 15:53:59 -06:00
Rickard von Essen
d3c2239b9e
builder/amazon: Change shutdown_behaviour to shutdown_behavior 2016-12-14 21:59:16 +01:00
Matthew Hooker
c510988cbf Merge pull request #4209 from bhcleek/ansible-winrm
provisioner/ansible: assume scp target is file (resolves winrm incompatibility)
2016-12-08 22:37:41 -08:00
Yorgos Saslis
069592f489 Fix typo
chef-cilent => chef-client
2016-12-05 16:31:36 +02:00
Billie Cleek
f5ca0de225 provisioner/ansible: assume scp target is file
Assume the scp target is a file instead of a directory. Assuming the scp
target is a file instead of a directory allows uploading files to a node
being provisioned with the ssh communciator using sftp and with the
winrm communicator. It is fully compatible with ansible; ansible
communicators only allow for files (never directories) to be uploaded
(when the copy module is used to upload a directory, ansible walks the
directory and uploads files one at a time).

Update documentation to explain how to provision a Windows image.

Extend tests that use ssh to communicate with the node to include single
files, recursive copies, and content-only recursive copies.

Add test to verify support for the winrm communicator.

Remove the err argument from adapter.scpExec, because it was unused.

Fixes #3911
2016-11-26 14:40:39 -08:00
Jasper Siepkes
200aa74e78 Added support for passing arguments to salt-call. 2016-11-11 15:15:16 +01:00
Rickard von Essen
233913bc38 Fixed misspelling of semantics 2016-11-05 13:57:57 +01:00
Maxim Fedchyshyn
77efbe572d Fixed typo at chef-solo.html.md 2016-10-26 16:41:53 -07:00
Rickard von Essen
3b42d28cce Merge pull request #4014 from mexisme/feature/puppet-bin-dir
privisioner/puppet: Add `puppet_bin_dir` option.
2016-10-22 14:48:45 +02:00
Matthew Hooker
892d5e82c9 expect_disconnect option
provisioner/shell: Adds option to fail if the remote server disconnects
us.
2016-10-21 11:39:03 -07:00
7heo
4a4d529b33 Get rid of unnecessary -E flag for sudo
In the "Execute Command Example - Sudo Example", the used command is
defining environment variables prematurely, hence requiring the sudo
invocation to be made with the `-E` flag. However, this is not only
necessary but might have indesirable side effects, as the `-E` flag
forwards the whole environment to the subshell.
2016-10-19 16:47:16 +02:00
mexisme
050306b9d0 Update docs for puppet-masterless and puppet-server provisioners 2016-10-17 09:24:56 +13:00