vagrant: Update Vagrantfile
This patch updates the Vagrantfile to Fedora 31, and updates the install process to match the quick start guide.
This commit is contained in:
committed by
James Shubin
parent
bdb523ece1
commit
fdc459ec5b
11
Vagrantfile
vendored
11
Vagrantfile
vendored
@@ -6,7 +6,7 @@ Vagrant.configure(2) do |config|
|
|||||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||||
|
|
||||||
config.vm.define "mgmt-dev" do |instance|
|
config.vm.define "mgmt-dev" do |instance|
|
||||||
instance.vm.box = "fedora/28-cloud-base"
|
instance.vm.box = "bento/fedora-31"
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |v|
|
config.vm.provider "virtualbox" do |v|
|
||||||
@@ -23,8 +23,7 @@ Vagrant.configure(2) do |config|
|
|||||||
config.vm.provision "file", source: "vagrant/mgmt.bashrc", destination: ".mgmt.bashrc"
|
config.vm.provision "file", source: "vagrant/mgmt.bashrc", destination: ".mgmt.bashrc"
|
||||||
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
|
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
|
||||||
|
|
||||||
# copied from make-deps.sh (with added git)
|
config.vm.provision "shell", inline: "dnf install -y golang git make"
|
||||||
config.vm.provision "shell", inline: "dnf install -y libvirt-devel golang golang-googlecode-tools-stringer hg git make gem"
|
|
||||||
|
|
||||||
# set up packagekit
|
# set up packagekit
|
||||||
config.vm.provision "shell" do |shell|
|
config.vm.provision "shell" do |shell|
|
||||||
@@ -39,8 +38,10 @@ Vagrant.configure(2) do |config|
|
|||||||
script = <<-SCRIPT
|
script = <<-SCRIPT
|
||||||
grep -q 'mgmt\.bashrc' ~/.bashrc || echo '. ~/.mgmt.bashrc' >>~/.bashrc
|
grep -q 'mgmt\.bashrc' ~/.bashrc || echo '. ~/.mgmt.bashrc' >>~/.bashrc
|
||||||
. ~/.mgmt.bashrc
|
. ~/.mgmt.bashrc
|
||||||
go get -u github.com/purpleidea/mgmt
|
mkdir -p ~/gopath/src/github.com/purpleidea
|
||||||
cd ~/gopath/src/github.com/purpleidea/mgmt
|
cd ~/gopath/src/github.com/purpleidea
|
||||||
|
git clone https://github.com/purpleidea/mgmt --recursive
|
||||||
|
cd mgmt
|
||||||
make deps
|
make deps
|
||||||
SCRIPT
|
SCRIPT
|
||||||
config.vm.provision "shell" do |shell|
|
config.vm.provision "shell" do |shell|
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ To get started, try:
|
|||||||
|
|
||||||
$ cdmgmt
|
$ cdmgmt
|
||||||
$ make clean build
|
$ make clean build
|
||||||
$ ./mgmt run --tmp-prefix lang examples/lang/hello0.mcl`
|
$ ./mgmt run --tmp-prefix lang examples/lang/hello0.mcl
|
||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|||||||
Reference in New Issue
Block a user