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
Alexzander thunder Shevchenko
4caa5e1434
Setting python version back to 3.x since there some issues with Ansible version detection for pip installation.
2020-04-05 15:03:01 +03:00
Alexzander thunder Shevchenko
d1d214f6e2
Set python version to 2.7 as all other ansible provisioners do
2020-04-05 14:46:33 +03:00
Alexzander thunder Shevchenko
d73c2c5fa7
Get back to install pip via get_pip script
2020-04-05 14:28:19 +03:00
sophia
42785cb254
Add entries for podman error class
2020-04-03 17:13:41 -04:00
sophia
311fb035e6
Don't install docker on RHEL
...
Docker CE is not supported on RHEL.
It is supported on CentOS
2020-04-03 15:14:03 -04:00
sophia
d87d421586
Install docker using docker repo instead of convenience script
...
This approach will be more stable than depending on a convenience
script provided by docker
ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-convenience-script
2020-04-01 15:05:48 -04:00
sophia
0c0c361386
Extract container plugin
2020-03-30 17:41:49 -04:00
sophia
4c74f8a112
Add podman provisioner
2020-03-30 15:02:56 -04:00
sophia
f7d6070b0d
Raise error when trying to install docker on centos8
2020-03-27 10:05:01 -04:00
sophia
60b05426e1
Install containerd.io from docker on rhel_8
...
containerd.io is required for docker howerver it is not avilable
in official yum repos. It needs to be installed directly from
docker.
ref:
https://docs.docker.com/install/linux/docker-ce/centos/
https://linuxconfig.org/how-to-install-docker-in-rhel-8
2020-03-25 10:40:31 -04:00
Alexzander thunder Shevchenko
e3461d354b
python3 setup
...
Python 3 setup for any mode;
Move python setup to separate method;
2020-03-07 16:31:55 +03:00
Chris Roberts
852c549886
Force powershell on connection for consistent behavior
...
This patches the connection instances generated for the winssh
communicator so when a command is executed it is always run
with powershell. This prevents inconsistencies with argument
handling based on what the default shell is set to on the remote
side.
Since powershell is the default, environment variable template
only needs to be set for powershell style. If the shell setting
is updated to `cmd`, the command will be properly prefixed.
Default shell has been updated to powershell, to prevent extraneous
wrapping where it's not required. The `#ready?` check has also been
updated to use a constant value, which is overridden within winssh
as a blank command is invalid.
2020-03-04 15:08:03 -08:00
Jeff Bonhag
9a26c123b9
Use SFTP for Windows file transfer
...
SFTP is more reliable than SCP when dealing with unknown sshd
configurations on the server side. It also provides a convenient
facility for creating remote directories, so we can remove the
Windows-specific `#create_remote_directory` method.
2020-03-04 15:08:03 -08:00