From bcdda99dfa70ba2daa1605054ade38a2e80ee0b1 Mon Sep 17 00:00:00 2001 From: Gilles Cornu Date: Sun, 1 Dec 2019 11:39:43 +0100 Subject: [PATCH] ansible_local: Fix pip setup on Arch Linux guest Add 'python' package requirement. Tested against `archlinux/archlinux` box, at version "2019.11.24". --- plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb | 2 +- .../provisioners/ansible/cap/guest/arch/ansible_install_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb index e118cebe1..9e8b8dd73 100644 --- a/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb @@ -28,7 +28,7 @@ module VagrantPlugins def self.pip_setup(machine, pip_install_cmd = "") machine.communicate.sudo "pacman -Syy --noconfirm" - machine.communicate.sudo "pacman -S --noconfirm base-devel curl git" + machine.communicate.sudo "pacman -S --noconfirm base-devel curl git python" Pip::get_pip machine, pip_install_cmd end diff --git a/test/unit/plugins/provisioners/ansible/cap/guest/arch/ansible_install_test.rb b/test/unit/plugins/provisioners/ansible/cap/guest/arch/ansible_install_test.rb index 3d1414f96..275b8f292 100644 --- a/test/unit/plugins/provisioners/ansible/cap/guest/arch/ansible_install_test.rb +++ b/test/unit/plugins/provisioners/ansible/cap/guest/arch/ansible_install_test.rb @@ -32,7 +32,7 @@ describe VagrantPlugins::Ansible::Cap::Guest::Arch::AnsibleInstall do expect(communicator).to receive(:sudo).once.ordered. with("pacman -Syy --noconfirm") expect(communicator).to receive(:sudo).once.ordered. - with("pacman -S --noconfirm base-devel curl git") + with("pacman -S --noconfirm base-devel curl git python") expect(VagrantPlugins::Ansible::Cap::Guest::Pip).to receive(:get_pip).once.ordered. with(machine, pip_install_cmd)