vagrant-vagga 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Vagrantfile +7 -0
- data/lib/vagrant-vagga/config.rb +4 -1
- data/lib/vagrant-vagga/provisioner.rb +6 -1
- data/lib/vagrant-vagga/setup_vagga.sh +13 -11
- data/lib/vagrant-vagga/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0cce004a18939ac4c3076e7b67ee59aa95e718
|
4
|
+
data.tar.gz: 9d767104f53e02203edf97df71408cbb799f45ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 438e374d531ac42289189e4d034889b5960ab285ef6eaf28d0c1747bc4f0e1dfa6af65db3d0a366de6c484ffc9cd6216d53f6782fff8163b8e3ce00439532c37
|
7
|
+
data.tar.gz: f64a545df625c62072fb7f34febbd7a304eee914adb2eefe3e88999930ce72372e16531ef430c2633b7f09f5941c4ae88b74f5f05437988088611222bd5b7b12
|
data/Vagrantfile
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
+
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
|
1
2
|
Vagrant.configure(2) do |config|
|
3
|
+
#config.vm.box = "hashicorp/precise64"
|
2
4
|
config.vm.box = "ubuntu/trusty64"
|
5
|
+
|
3
6
|
config.vagga.install = true
|
7
|
+
config.vagga.testing = false
|
4
8
|
|
5
9
|
config.vm.provision :vagga
|
10
|
+
if Vagrant.has_plugin?("vagrant-vbguest")
|
11
|
+
config.vbguest.auto_update = false
|
12
|
+
end
|
6
13
|
end
|
data/lib/vagrant-vagga/config.rb
CHANGED
@@ -3,15 +3,18 @@ require "vagrant"
|
|
3
3
|
|
4
4
|
module VagrantPlugins
|
5
5
|
module Vagga
|
6
|
-
class Config < Vagrant.plugin(
|
6
|
+
class Config < Vagrant.plugin(2, :config)
|
7
7
|
attr_accessor :install
|
8
|
+
attr_accessor :testing
|
8
9
|
|
9
10
|
def initialize
|
10
11
|
@install = UNSET_VALUE
|
12
|
+
@testing = UNSET_VALUE
|
11
13
|
end
|
12
14
|
|
13
15
|
def finalize!
|
14
16
|
@install = false if @install == UNSET_VALUE
|
17
|
+
@testing = false if @testing == UNSET_VALUE
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
@@ -24,7 +24,12 @@ module VagrantPlugins
|
|
24
24
|
@machine.communicate.upload(setup_script_path.to_s, setup_script_destination)
|
25
25
|
@machine.communicate.sudo("chmod +x %s" % setup_script_destination)
|
26
26
|
|
27
|
-
|
27
|
+
if @machine.config.vagga.testing
|
28
|
+
repository = "vagga-testing"
|
29
|
+
else
|
30
|
+
repository = "vagga"
|
31
|
+
end
|
32
|
+
setup_call = @machine.communicate.sudo("%s %s" % [setup_script_destination, repository]) do |type, data|
|
28
33
|
@machine.env.ui.info(data.rstrip)
|
29
34
|
end
|
30
35
|
end
|
@@ -2,26 +2,28 @@ if which vagga &> /dev/null; then
|
|
2
2
|
echo "Vagga is already installed"
|
3
3
|
exit 0
|
4
4
|
fi
|
5
|
-
|
5
|
+
REPO=$1
|
6
6
|
|
7
7
|
if [ -f /etc/lsb-release ]; then
|
8
8
|
# install uidmap in Ubuntu
|
9
|
-
apt-get -qq install -y --force-yes uidmap
|
9
|
+
if ! apt-get -qq install -y --force-yes uidmap
|
10
|
+
then
|
11
|
+
# install uidmap manually on ubuntu 12.04
|
12
|
+
wget http://gr.archive.ubuntu.com/ubuntu/pool/main/s/shadow/uidmap_4.1.5.1-1ubuntu9_amd64.deb
|
13
|
+
dpkg -i uidmap_4.1.5.1-1ubuntu9_amd64.deb
|
14
|
+
fi
|
10
15
|
fi
|
11
16
|
|
17
|
+
echo "deb http://ubuntu.zerogw.com $REPO main" | sudo tee /etc/apt/sources.list.d/vagga.list
|
12
18
|
|
13
|
-
|
14
|
-
|
15
|
-
echo "Latest Vagga version is $VAGGA_VERSION, installing..."
|
16
|
-
|
17
|
-
cd /tmp
|
18
|
-
curl -s "http://files.zerogw.com/vagga/vagga-${VAGGA_VERSION}.tar.xz" | tar -xJ
|
19
|
-
cd vagga
|
20
|
-
export PREFIX=/usr
|
21
|
-
bash install.sh
|
19
|
+
apt-get update
|
20
|
+
apt-get install vagga -y --force-yes
|
22
21
|
|
23
22
|
mkdir -p ~vagrant/.vagga
|
24
23
|
|
24
|
+
echo "vagrant:100000:65536" > /etc/subuid
|
25
|
+
echo "vagrant:100000:65536" > /etc/subgid
|
26
|
+
|
25
27
|
cat > ~vagrant/.vagga/settings.yaml << EOF
|
26
28
|
storage-dir: "/home/vagrant/"
|
27
29
|
EOF
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vagga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Rader
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.5.1
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Vagrant plugin to install vagga in the box
|