vagrant: Setup Packagekit in the box
Without packagekit the 'pkg' resources can not be used Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
9
Vagrantfile
vendored
9
Vagrantfile
vendored
@@ -23,6 +23,15 @@ Vagrant.configure(2) do |config|
|
|||||||
# copied from make-deps.sh (with added git)
|
# copied from make-deps.sh (with added git)
|
||||||
config.vm.provision "shell", inline: "dnf install -y libvirt-devel golang golang-googlecode-tools-stringer hg git make"
|
config.vm.provision "shell", inline: "dnf install -y libvirt-devel golang golang-googlecode-tools-stringer hg git make"
|
||||||
|
|
||||||
|
# set up packagekit
|
||||||
|
config.vm.provision "shell" do |shell|
|
||||||
|
shell.inline = <<-SCRIPT
|
||||||
|
dnf install -y PackageKit
|
||||||
|
systemctl enable packagekit
|
||||||
|
systemctl start packagekit
|
||||||
|
SCRIPT
|
||||||
|
end
|
||||||
|
|
||||||
# set up vagrant home
|
# set up vagrant home
|
||||||
script = <<-SCRIPT
|
script = <<-SCRIPT
|
||||||
grep -q 'mgmt\.bashrc' ~/.bashrc || echo '. ~/.mgmt.bashrc' >>~/.bashrc
|
grep -q 'mgmt\.bashrc' ~/.bashrc || echo '. ~/.mgmt.bashrc' >>~/.bashrc
|
||||||
|
|||||||
Reference in New Issue
Block a user