924 Commits

Author SHA1 Message Date
Chris Roberts
6809812965
Merge pull request #13086 from dafyddj/fix/salt-highstate
Fix Salt provisioner for Windows guests
2023-06-02 17:44:49 -07:00
Allison Larson
7db87b9da3 Salt: Remove old bootstrap scripts 2023-05-19 16:09:46 -07:00
Allison Larson
2fa539e499 Salt: Download & verify shasum of default bootstrap-salt file 2023-05-19 16:09:46 -07:00
Dafydd Jones
0c0b208741
fix(salt): fix highstate on Salt minions v3004+ 2023-02-15 18:53:07 +00:00
Dafydd Jones
26c227c978
fix(salt): prevent reinstalling of Salt minion on Windows
* fix minion detection on Windows
 * use new command-line option `-ConfigureOnly` to tell
   bootstrap not to try installing minion (on Windows)

Fixes GH-10531
2023-02-15 18:53:07 +00:00
Moritz Heiber
dfabbbb7fe
Forgot one occurance of using the raw python vs. python3 2023-01-11 12:54:42 +01:00
Moritz Heiber
5f82adf122
Replace python with python3, which is a common convention (and Ansible only works with Python 3) 2023-01-11 11:01:55 +01:00
Moritz Heiber
76ef7d3dc8
Fix installing Ansible provisioner with version and pip 2023-01-10 14:05:44 +01:00
Chris Roberts
ca7c05f09d Fix ansible install for older distributions
Before installing dependencies run a check for the python-dev-is-python3
package and only install it if found (otherwise use python-dev). This
allows older versions of debian (and derivatives) to properly install
the defined dependencies.
2022-12-08 17:10:00 -08:00
Marius Leonhardt
6fb60c9aea
Add workaround for Debian 10 and older
If `lsb_release -rs` returns a value greater than 10 the package `python-dev-is-python3` will be installed. If it is equal or less than 10 the package will not be installed.
2022-12-05 16:30:05 +01:00
Chris Roberts
0209cd21f9
Merge pull request #12832 from teh-syntax/main
Fixed issue provisioning ubuntu 22.04 python-dev has no install candidate
2022-11-08 15:25:22 -08:00
Nicolas St-Laurent
6f9f88e055 Replace deprecated File.exists? with File.exist?. 2022-09-22 08:54:46 -04:00
Robert McMahon
3f2d648691 Fixed issue provisioning ubuntu 22.04 python-dev has no install candidate 2022-08-06 20:24:17 -04:00
Chris Roberts
555d8ae7a3 Adjust provisioner to upload file before modifying it 2022-06-15 10:55:00 -07:00
sophia
b2dd5be282
Set a default environment for the puppet provisioner 2022-04-25 12:24:18 -05:00
Collin McNeese
0085124cd8
Updates chef_installed variable names to be more functional
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-10-24 12:32:37 -05:00
Collin McNeese
692cb1ae34
Updates install checks for Chef provisioners
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-10-24 11:38:59 -05:00
Chris Roberts
bbd1404c1e
Merge pull request #12437 from chrisroberts/line-buf-shell-util
Line buffer utility and shell provisioner usage
2021-06-29 13:11:19 -07:00
Chris Roberts
de8da71c41
Merge pull request #12431 from chrisroberts/ui-tests
Update tests to use real UI instance
2021-06-29 12:47:26 -07:00
Chris Roberts
b1ae4d88fb Update shell provisioner usage of line buffer 2021-06-29 11:04:14 -07:00
Rui Lopes
ef18b45786 ensure that the shell provisioner only emits complete output lines to the ui
partial lines are buffered until they are complete (have a line ending)

see https://github.com/hashicorp/vagrant/issues/11047
2021-06-25 15:58:24 -07:00
Sophia Castellarin
ca686e3192
Merge pull request #12413 from max-arnold/salt-bootstrap-win-fix
Use more conservative TLS settings to work on older .NET versions
2021-06-24 10:09:10 -05:00
Chris Roberts
3d0d0148e9 Update tests to use real UI instance
Replaces use of UI doubles within tests to use actual UI instance
    to ensure calls are passing parameters correctly.
2021-06-23 14:04:48 -07:00
Chris Roberts
e7a6f397da Updates for Ruby 3.0 2021-06-21 15:57:46 -07:00
sophia
fecfe86cb8 Strip whitespace from ansible version
Note: strip! returns nil if there is nothing to be stripped
2021-06-15 15:24:39 -05:00
Max Arnold
0416180fb4 Use more conservative TLS settings to work on older .NET versions 2021-06-09 11:07:03 +07:00
Philipp Panzer
89c071d374
detects new versions of ansible-4.0.0+
Ansible has switched dependency between version 3.4.0 (ansible-base) and 4.0.0 (ansible-core), which now outputs new version scheme of "ansible [core 2.11.0]" instead of "ansible 2.10.9".
This fix keeps old and new version detection working.
2021-05-25 13:28:22 +02:00
Sophia Castellarin
8d38ba1cdf
Merge pull request #12127 from max-arnold/salt-bootstrap-win
Always use upstream Salt bootstrap script on Windows
2021-05-24 16:49:51 -05:00
Sergey Yelin
e95a7f3e8a
FreeBSD updated ansible to py37-ansible 2021-02-20 18:35:07 +03:00
Max Arnold
9f1c13d28c Modernize Salt bootstrap script 2021-01-07 17:07:20 +07:00
Max Arnold
e0211ebeb1 Use saltproject.io domain instead of saltstack.com 2021-01-07 02:13:19 +07:00
Max Arnold
f412672b24 Download upstream Salt bootstrap script into the same temp directory 2021-01-06 21:56:57 +07:00
Max Arnold
5a30570b9a Always use upstream Salt bootstrap script on Windows 2021-01-04 10:49:07 +07:00
sophia
f69f87625a Allow docker run images to specify version with ':' 2020-08-06 10:25:19 -05:00
sophia
fb2470f48d Ensure shell provisioner gets extension specified in path config if exists 2020-05-26 16:35:31 -04:00
sophia
725a127467 Seperate podman centos and rhel install 2020-05-06 15:33:44 -04:00
codylane
2a90c1b4fd fixes GH issue #11580 2020-05-05 11:48:14 -06:00
sophia
13bb29af2b Don't warn on ansible compatability mode 2020-04-28 10:48:25 -04:00
Jeff Bonhag
2c4a40fccb
Fix issues with shell provisioner when WinSSH shell is set to cmd (#11547)
This commit fixes a couple of issues with the shell provisioner when the
WinSSH shell is set to cmd:

- A check for the .bat extension returned by File.extname
- Execute inline scripts with PowerShell when upload_path ends with .ps1

* Ensure script has correct extension

Co-Authored-By: Sophia Castellarin <sophia@hashicorp.com>
2020-04-24 15:56:27 -04:00
Sophia Castellarin
c89b68b06d
Merge pull request #11517 from soapy1/win-shell-provisioner-fail
Ensure windows files get an extension
2020-04-20 12:38:06 -04:00
sophia
4d516e2cae Test provision_winssh 2020-04-17 13:11:57 -04:00
Chris Roberts
c0f8a54924
Merge pull request #11436 from hvnsweeting/patch-1
Allow to specify python_version
2020-04-17 08:55:20 -07:00
sophia
2ddd12047c Ensure windows files get an extension 2020-04-17 10:31:24 -04:00
Sophia Castellarin
1fb3f30145
Merge pull request #11472 from soapy1/podman-provisioner
Add podman provisioner
2020-04-17 09:48:12 -04:00
Chris Roberts
84b309db32 Include test coverage on python value behavior 2020-04-16 17:25:55 -07:00
Viet Hung Nguyen
b084e61b17 Allow to specify python_version 2020-04-16 17:16:07 -07:00
Sophia Castellarin
ee87596a77
Merge pull request #11462 from soapy1/docker-provision-centos8
Docker provision centos8
2020-04-13 09:42:37 -04:00
Brian Cain
dda2c8f913
Merge pull request #11411 from thunder-spb/alpine-ansbile-support
Alpine capability for Ansbile support
2020-04-08 09:43:53 -07:00
sophia
e61725a130 Docker provision to support centos guest, not RHEL guest 2020-04-06 13:48:43 -04:00
sophia
bcce2f720d Add option to install from kubic 2020-04-06 10:13:57 -04:00