vagrant-lfstacks 0.1.5 → 0.1.6
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/Gemfile +1 -1
- data/lib/commands/s3box.rb +0 -3
- data/lib/commands/s3up.rb +0 -3
- data/lib/vagrant-lfstacks.rb +0 -16
- data/lib/vagrant-lfstacks/version.rb +1 -1
- metadata +3 -4
- data/lib/commands/bootstrap.rb +0 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12dc3f9012ee0f4b0a29fef988bf66010a3f010d
|
4
|
+
data.tar.gz: d1818b3fdb4e0868763e38ece5cffb57f91e873b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a2f322b1c85cb1b21fba2ac5d35f72a893c97ccf9be7a032f90426889d70c5c8946f69a25618a9b32cda2d1fa5fb66aacd80813e7b72d28d50135e4e2c725d3
|
7
|
+
data.tar.gz: 33c724d1bbb6c46f86656dee18e5e3e6936484152111b6ef8b2e2ed8bb80926433e16ac6f4b8e2abfc6741344267c3635b4d1b9f10e711f1ab54c4ae971d45a7
|
data/Gemfile
CHANGED
@@ -12,6 +12,6 @@ group :development do
|
|
12
12
|
# We depend on Vagrant for development, but we don't add it as a
|
13
13
|
# gem dependency because we expect to be installed within the
|
14
14
|
# Vagrant environment itself using `vagrant plugin`.
|
15
|
-
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git"
|
15
|
+
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => 'v1.5.1'
|
16
16
|
gem 'byebug'
|
17
17
|
end
|
data/lib/commands/s3box.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
require 'pp'
|
2
2
|
require 'aws/s3'
|
3
3
|
|
4
|
-
|
5
|
-
#class BootstrapCommand < Vagrant::Command::Base
|
6
4
|
class S3boxCommand < Vagrant.plugin(2, :command)
|
7
5
|
|
8
|
-
|
9
6
|
def self.synopsis
|
10
7
|
"This command updates available boxes from an s3 repo. See README for where to put AWS creds. Virtualbox provider currently assumed"
|
11
8
|
end
|
data/lib/commands/s3up.rb
CHANGED
data/lib/vagrant-lfstacks.rb
CHANGED
@@ -25,12 +25,6 @@ module Lfstacks
|
|
25
25
|
S3upCommand
|
26
26
|
end
|
27
27
|
|
28
|
-
command "bootstrap" do
|
29
|
-
require_relative 'commands/bootstrap'
|
30
|
-
BootstrapCommand
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
28
|
command "reimage" do
|
35
29
|
require_relative 'commands/reimage'
|
36
30
|
ReimageCommand
|
@@ -46,21 +40,11 @@ module Lfstacks
|
|
46
40
|
RemasterCommand
|
47
41
|
end
|
48
42
|
|
49
|
-
command "bootstrap" do
|
50
|
-
require_relative 'commands/bootstrap'
|
51
|
-
BootstrapCommand
|
52
|
-
end
|
53
|
-
|
54
43
|
command "rssh" do
|
55
44
|
require_relative 'commands/rssh'
|
56
45
|
RsshCommand
|
57
46
|
end
|
58
47
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
48
|
end
|
65
49
|
end
|
66
50
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-lfstacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Navid Khalili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -65,7 +65,6 @@ files:
|
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
67
|
- Vagrantfile.dev_example
|
68
|
-
- lib/commands/bootstrap.rb
|
69
68
|
- lib/commands/reimage.rb
|
70
69
|
- lib/commands/remaster.rb
|
71
70
|
- lib/commands/repuppet.rb
|
@@ -96,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
95
|
version: '0'
|
97
96
|
requirements: []
|
98
97
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.2.2
|
100
99
|
signing_key:
|
101
100
|
specification_version: 4
|
102
101
|
summary: Livefyre's vagrant stack management tasks
|
data/lib/commands/bootstrap.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'yaml'
|
2
|
-
|
3
|
-
class BootstrapCommand < Vagrant.plugin(2, :command)
|
4
|
-
|
5
|
-
# def initialize(argv, env)
|
6
|
-
# @argv = argv
|
7
|
-
# @env = env
|
8
|
-
# @logger = Log4r::Logger.new("vagrant::command::#{self.class.to_s.downcase}")
|
9
|
-
# end
|
10
|
-
|
11
|
-
def self.synopsis
|
12
|
-
"This command bootstraps a running puppet cluster"
|
13
|
-
end
|
14
|
-
|
15
|
-
def execute
|
16
|
-
|
17
|
-
@env.ui.info "Downloading any s3boxes if necessary"
|
18
|
-
require_relative 's3box'
|
19
|
-
S3boxCommand.new(@argv, @env).execute
|
20
|
-
|
21
|
-
if sanity_checks
|
22
|
-
@env.ui.info "Executing repuppet"
|
23
|
-
require_relative 'repuppet'
|
24
|
-
RepuppetCommand.new(@argv,@env).execute
|
25
|
-
else
|
26
|
-
@env.ui.info "Not going to repuppet as box in puppet.yml does not exist"
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
def sanity_checks
|
32
|
-
|
33
|
-
# passed = true
|
34
|
-
|
35
|
-
@env.ui.info "Doing minor sanity checks"
|
36
|
-
begin
|
37
|
-
puppet_cluster = YAML.load_file("#{@env.root_path}/stacks.d/puppet.yml")
|
38
|
-
rescue Errno::ENOENT => e
|
39
|
-
@env.ui.error "Could not find #{@env.root_path}/stacks.d/puppet.yml"
|
40
|
-
return
|
41
|
-
end
|
42
|
-
local_box_names = @env.boxes.all.map { |b| b[0] }
|
43
|
-
|
44
|
-
# pp local_box_names
|
45
|
-
|
46
|
-
|
47
|
-
return local_box_names.include?(puppet_cluster[:puppet][:box]) && local_box_names.include?(puppet_cluster[:puppetdb][:box])
|
48
|
-
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|