guoguangwu
7eb6a45cd4
chore: remove refs to deprecated io/ioutil
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-09-26 11:13:31 -04:00
guoguangwu
324e628b86
chore: unnecessary use of fmt.Sprintf
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-09-21 09:38:23 -04:00
hashicorp-copywrite[bot]
19055df3ec
[COMPLIANCE] License changes ( #12568 )
...
* Updating the license from MPL to Business Source License
Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog , FAQ at https://hashi.co/license-faq , and details of the license at www.hashicorp.com/bsl.
* Update copyright file headers to BUSL-1.1
---------
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-08-10 15:53:29 -07:00
Wilken Rivera
eca75a6847
Run make fmt to fix checks
2023-04-27 15:17:31 -04:00
hashicorp-copywrite[bot]
b7df3ca36f
[COMPLIANCE] Add Copyright and License Headers ( #12254 )
...
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-03-02 15:37:05 -05:00
Lucas Bajolet
f4a2ac3b31
feat: support pwsh in powershell provisioner ( #11950 )
...
* set `pwsh` to true in config to run `pwsh.exe`, default is false.
* add docs
Co-authored-by: Ed Eustace <ed@smashcut.com>
2022-08-19 16:00:46 -04:00
Vasili
b9c28c7a8f
Clarify documentation for template file function ( #11798 )
2022-05-31 10:10:24 -04:00
Lucas Bajolet
c99b300e3a
Add support for Env in remote shell provisioners ( #11819 )
...
* provisioner/shell: add support for Env variables
As mentioned in issue #11670 , the Shell provider did not support Env
variable declarations in the HCL templates.
This commit adds the capability to the code.
* provisioner/powershell: add support for Env vars
* provisioner/windows-shell: support Env variables
2022-05-31 09:49:38 -04:00
Lucas Bajolet
cbc67b7636
Merge pull request #11792 from teddylear/feat-pause_after-powershell
...
feat: Add pause_after config to powershell provisioner like shell
2022-05-30 16:47:25 -04:00
teddylear
d00a41c6ae
fix: updates to have make fmt-check and ci-lint pass
2022-05-27 19:36:41 -04:00
Lucas Bajolet
71752c9e1e
powershell/provisioner: remove useless fmt.Sprintf
...
The fmt.Sprintf statement in Provisioner.Provision took a plain string
as parameter, without any arguments, making it futile to call.
2022-05-27 16:44:55 -04:00
Lucas Bajolet
673a97290a
provisioner/powershell: remove unused variable
...
The retryableSleep variable in the powershell provisioner was defined
but never used, so we can safely rename it.
2022-05-27 16:44:55 -04:00
teddylear
000ace61a3
feat: Add pause_after config to powershell provisioner like shell
...
provisioner
2022-05-18 17:35:48 -04:00
Adrien Delorme
0362a3ec10
all shells: Pass env vars through a key value store ( #11569 )
...
* allowing to set shell env vars from a key/value map.
* tests
This new map will work alongside the `environment_vars` but it allows using a
datasource value seamlessly. At validation, and because `environment_vars` was
an array of strings containing `KEY=value`, using datsources would not work,
because these values are not known yet and would evaluate to `<unknown>`. With
this, the value and the key can be unknown and will validate correctly for
datasources.
2022-02-16 12:05:44 +01:00
Wilken Rivera
ebcfd0cd8e
windows-restart: Update documentation for restart_check_command ( #11507 )
...
Closes #11467
2022-01-24 12:48:02 +01:00
Adrien Delorme
a2124eb594
Tiny tweaks and fixes for the PowerShell provisioner ( #11410 )
...
* add docs
* fix potential bug
2021-11-23 12:34:26 +01:00
Adrien Delorme
948ef1f673
File provisioner, don't fail when no content is passed. ( #11349 )
2021-10-28 15:50:32 -04:00
teddylear
11f5da8b5a
fix: Removing test debris ( #11300 )
...
* fix: fixing provisioner file test debris
* fix: Setting hcl2_upgrade command create directory permissions to 0755
2021-10-04 10:58:27 -04:00
Adrien Delorme
d25373a8d6
move inspec provisioner out ( #11230 )
2021-08-31 12:07:26 +02:00
Adrien Delorme
acb01cb800
move salt-masterless provisioner out ( #11229 )
...
* move salt-masterless provisioner out
* go get github.com/hashicorp/packer-plugin-salt
2021-08-31 12:07:10 +02:00
Adrien Delorme
1d915adad1
file provisioner: add possibility to set content + tests ( #11209 )
2021-08-17 11:24:29 +02:00
Wilken Rivera
c262467413
Extract Azure plugin components from Packer ( #10979 )
...
* Remove Azure plugin components and docs
* Add Azure plugin to vendored_plugins
* Updates Azure to use remote plugin docs
* Revendor packer-plugin-azure at v0.0.2
* Update to new version of the Packer plugin SDK v0.2.1
* Update to the official version of go-getter@v2.0.0
* Update salt provisioner to use new go-getter API
* Update vendored plugins to working versions
This changes fixes an issue with the go.sum for the Azure plugin.
It also revendors the plugins for puppet, chef, and ansible as v0.0.1
of those plugins where not usable.
2021-05-13 16:13:21 -04:00
Wilken Rivera
bb511e9592
Extract converge provisioner
2021-04-21 14:19:34 -04:00
Wilken Rivera
eb6527c8b6
Remove Puppet components and docs
2021-04-20 15:27:21 -04:00
Wilken Rivera
30bcf44c2c
Remove Chef components and docs
2021-04-20 15:25:08 -04:00
Wilken Rivera
ceb96d061a
Extract ansible plugins ( #10912 )
...
* Remove ansible components and docs
* Vendored packer-plugin-ansible
* Add remote ansible docs
2021-04-16 10:31:09 -04:00
Adrien Delorme
87ba7258b3
Use packer-sdc in packer + remove mapstructure-to-hcl2 & struct-markdown ( #10913 )
...
* start using `go:generate packer-sdc struct-markdown`
* Update Makefile
remove @go install ./cmd/struct-markdown
* run go generate for struct-markdown
* use //go:generate packer-sdc mapstructure-to-hcl2
* run go generate for mapstructure-to-hcl2
* remove struct-markdown and mapstructure-to-hcl2
* vendor vendors
2021-04-16 11:52:03 +02:00
Megan Marsh
734e91b97c
Merge pull request #10878 from hashicorp/rewrite_acctests
...
Move acctest pkg from the SDK to core and update acceptance tests
2021-04-08 13:21:18 -07:00
George Wilson
15a2e59bba
Autogenerated docs for ansible local provisioner ( #10829 )
2021-04-08 12:18:49 +02:00
sylviamoss
e0614cabf4
move acctest pkg from sdk to core and update acceptance tests
2021-04-07 11:52:19 +02:00
Shane Lee
4bbeec4733
Update urls for the bootstrap scripts used by salt-masterless provider ( #10755 )
...
* Fix salt masterless url. Use saltproject.io
* Specify Tls12
2021-03-12 14:59:34 -05:00
finchr
d1254a5e48
Fix for issue #7413 - Allow non-zero exit codes for inspec provisioner ( #10723 )
2021-03-12 16:47:21 +01:00
Megan Marsh
cd93957225
Merge pull request #10695 from hashicorp/docker_vendoring
...
Initial docker extraction
2021-03-05 16:26:55 -08:00
Megan Marsh
a5b0e37d7e
docker extraction POC
2021-03-05 15:33:34 -05:00
Hosh
6b5a3dacd4
Fix multiple files downloading overwrites same file ( #10711 )
2021-03-05 18:06:47 +01:00
Brian Farrell
273a720440
Add client_cert_token_timeout to address GH-9465 ( #10528 )
2021-03-02 11:51:18 +01:00
Sylvia Moss
ff5b55b560
chef-solo: json_string to HCL2 templates compatibility ( #10655 )
2021-02-23 11:17:32 +01:00
dreic
ab89df9a88
Update Config-not-required.mdx ( #10527 )
2021-02-18 11:47:40 +01:00
Wilken Rivera
f36554fa0e
Update redirects and URLs to legacy JSON template docs ( #10530 )
2021-01-27 09:08:59 -05:00
Megan Marsh
88b7b0e14a
remove sdk
2020-12-17 13:29:25 -08:00
Megan Marsh
5f34bbd56e
add extra line before package declaration so this line does not become the synopsis of a package for godoc
2020-12-16 15:14:43 -08:00
Megan Marsh
48a0172670
better error handling and messaging in provisioner acc test framework
2020-12-08 09:59:04 -08:00
Megan Marsh
76177b50ce
Refactor provisioner acceptance tests to shell directly out to Packer rather than import the core. Modify test case formatting to more closely reflect the builder test cases.
2020-12-07 15:45:16 -08:00
Megan Marsh
bc7dae2dff
fix ansible acceptance tests not to import packer core; add override to Builder acctest TestCase so you can supply your own provisionerstore.
2020-12-07 15:45:16 -08:00
Megan Marsh
823ff34434
remove noop ui, replace in adapter and ansible tests with sdk's TestUi
2020-12-07 15:45:16 -08:00
Megan Marsh
352f064b55
fix docker acceptance tests. Turns out they were broken on the main branch too; needed to move noop progress bar into the sdk to be used in the builder testui.
2020-12-03 16:04:49 -08:00
Megan Marsh
8f51a8bfae
move provisioner acceptance tests into sdk alongside builder acceptance tests. Reorganize slightly to make sure no import cycles of doom get formed
2020-12-03 14:22:18 -08:00
Megan Marsh
3681e2a7ee
fix pathing
2020-12-03 10:39:21 -08:00
Megan Marsh
5576bb5caa
move packer config constants next to the packer config
2020-12-03 10:17:35 -08:00
Megan Marsh
8558d1241f
move TestUi func to sdk
2020-12-03 10:15:30 -08:00