Adrien Delorme
078ba7c8c3
commit old code generation tool
...
for history
2019-10-15 12:56:42 +02:00
Aaron Walker
85b8a654b0
only sets default value for chef license when installing chef and the install command is not set
2019-05-21 15:26:07 +02:00
Aaron Walker
dfc5e5cf94
adds support for accepting the chef license
2019-05-17 17:19:22 +02:00
Adrien Delorme
f555e7a9f2
allow a provisioner to timeout
...
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
Adrien Delorme
c7ce4d598e
change Provisioner to be passed a context for cancellation
2019-04-03 15:55:54 +02:00
Skyler Nesheim
52d3137b08
use flag -version instead of -v to install chef-solo on Windows
2017-09-18 09:43:02 -05:00
Weilu Jia
b1c5ccd3e2
Add version selection for chef-solo provisioner in Windows too
2017-04-17 18:16:34 -07:00
Weilu Jia
c418307162
Add version selection for chef-solo provisioner
...
Prevents issues such as #1751 when chef changes major versions
2017-04-12 16:18:00 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
d920b3fbf4
run gofmt
2016-11-01 14:08:04 -07:00
Matthew Hooker
2ae1b83b15
change chef-solo provisioner staging directory
...
Have the staging directory be called `packer-chef-solo`, which is what
is given in docs. Closes #3486
2016-10-07 17:24:30 -07:00
Spencer Owen
9963bfcd42
removes unneeded white space
2016-09-01 13:39:44 -06:00
Spencer Owen
7fdd303641
Installs 64bit chef on windows if available
...
Resolves #3847
- Changes linux install url to new omnitruck.chef.io url.
- Changes powershell install to use omnitruck url instead of hard coded to 32bit msi install.
2016-09-01 13:23:08 -06:00
ephemeralsnow
3de8561a75
Add chmod to chef-solo provisioner
2016-02-09 20:06:26 +09:00
Shawn Neal
8014dac742
Add Windows support to Chef provisioners
...
- Add guest os type to change the default Chef-Solo and Chef-Client provisioner behavior. Paths, commands etc.
- Change Chef installation download location to chef.io domain
- Add encrypted data bag secret configuration
2015-10-01 10:04:59 -07:00
Tim Smith
72e8119233
Download chef from chef.io
2015-08-25 21:53:50 -07:00
Mitchell Hashimoto
7c8e86c9c5
provisioner/*: fix interpolation context
2015-06-22 12:26:54 -07:00
Mitchell Hashimoto
2b4df93f2f
provisioner/*: interpolation
2015-05-27 14:50:20 -07:00
Mitchell Hashimoto
75395af12d
Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
...
Conflicts:
builder/parallels/common/step_upload_parallels_tools.go
builder/vmware/common/step_upload_tools.go
provisioner/chef-client/provisioner.go
provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
sawanoboly
18dddb516b
Fix remotePaths when provisioning Linux from Windows
2014-07-11 19:12:34 +09:00
Ross Smith II
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
2014-05-09 21:03:35 -07:00
Mitchell Hashimoto
bb8d0a5e7a
provisioner/chef-solo: convert []uint8 to string
2014-04-29 00:33:55 -07:00
Mitchell Hashimoto
379f3ae933
provisioner/chef-solo: be more lenient on json fix
2014-04-28 22:20:57 -07:00
Mitchell Hashimoto
4379997c2c
provisioner/chef-solo: better error for bad type in JSON
2014-04-28 22:18:21 -07:00
Mitchell Hashimoto
8fc46aaa82
provisioner/chef-solo: deeploy nested JSON works properly
2014-04-28 21:56:32 -07:00
Rocket
bb8e9ad71c
Change chef environment to work for chef-solo.
2013-12-17 17:15:37 -08:00
Mitchell Hashimoto
7472507962
provisioner/chef-solo: test for encrypted data bag secret path config
...
/cc @matheeeny - Tests :)
2013-11-18 15:48:13 -08:00
Mitchell Hashimoto
d56eec8852
provisioner/chef-solo: naming nitpick
...
/cc @matheeeny - I prefer to be more explicit and say this is the path,
rather than the secret value itself.
2013-11-18 15:46:37 -08:00
Andrew Matheny
6dfcf2b347
Add support for passing encrypted data bag secret to chef-solo
...
Adds additional option to chef-solo provisioner for an encrypted data bag
secret file. Local file is copied up and referenced in solo.rb
2013-11-13 13:39:29 -05:00
Mitchell Hashimoto
457b99db3f
provisioner/chef-solo: Say using Chef-solo
2013-11-09 18:47:20 -08:00
Mitchell Hashimoto
5dfe27b40f
provisioner/chef-solo: unused var
2013-10-02 08:29:12 -07:00
Mitchell Hashimoto
543a1a21e8
provisioner/chef-solo: alphabetize tests and such
...
/cc @netshade
2013-10-02 08:28:51 -07:00
Chris
fd6415ddf5
formatting
2013-10-01 11:21:16 -04:00
Chris
bc8e5d2c41
add environments_path and chef_environment support to chef provisioner
2013-10-01 11:20:36 -04:00
Kirill Kazakov
be80edb28e
provisioner/chef-solo: fix .RolesPath and .DataBagsPath in the config template
2013-09-27 19:13:55 +04:00
Mitchell Hashimoto
677f2989b9
provisioner/chef-solo: template doesn't support comp [GH-442]
2013-09-19 11:54:24 -07:00
Mitchell Hashimoto
ba9d85c744
provisioner/chef-solo: template process roles/data bags path
...
/cc @jerryclinesmith
2013-09-18 14:17:54 -07:00
Mitchell Hashimoto
7034f69f2c
provisioner/chef-solo: move quoting to template
...
/cc @jerryclinesmith - I want the quoting to go into the template. I
realize the cookbooks path doesn't do this and you were following that.
That one is just weird because it is an array and Go templates kind of
suck.
2013-09-18 14:17:07 -07:00
Mitchell Hashimoto
b2d5b15155
fmt
2013-09-18 14:14:18 -07:00
Mitchell Hashimoto
129f1290c1
Merge pull request #411 from jerryclinesmith/issue_348
...
provisioners/chef-solo: add support for roles and data_bags
2013-09-18 14:13:41 -07:00
Mitchell Hashimoto
dc0232975d
provisioner/chef-solo: ability to specify custom chef template
2013-09-15 23:29:29 -07:00
Jerry Clinesmith
fa2f277c67
#348 : chef-solo provisioner: add support for data_bags and roles
2013-09-10 22:00:29 -05:00
Mitchell Hashimoto
28bf6122bd
provisioner/*: implement Cancel
2013-08-30 23:23:36 -07:00
Mitchell Hashimoto
55b0b586d3
provisioner/chef-solo: code re-org
2013-08-30 16:35:57 -07:00
Mitchell Hashimoto
662e74d070
provisioner/chef-solo: properly escape user vars for JSON
...
/cc @mwhooker - I moved the processing up into Prepare so that any
errors will be shown during a validate pass. Also, I escape some stuff
in keys. Tests moved as well.
2013-08-30 16:05:04 -07:00
Matthew Hooker
9537f085ae
clean up and retab.
2013-08-28 17:35:43 -07:00
Matthew Hooker
4b76b2d9e3
template expansion of `json` in chef-solo
...
Fixes #362
2013-08-28 17:27:22 -07:00
Mitchell Hashimoto
64fe98c465
provisioner/chef-solo: template process the configuration
2013-08-27 17:41:49 -07:00
Mitchell Hashimoto
3b097f9805
provisioner/chef-solo: use proper exceute command
2013-08-27 14:35:11 -07:00
Mitchell Hashimoto
87dde46413
provisioner/chef-solo: remove unused constants and variables
2013-08-27 13:32:59 -07:00