gaptool-server 0.5.15 → 0.5.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/routes/main.rb +1 -0
- data/lib/views/init.erb +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: 0fd63ab8bc84e1cc2c99f9d9015730d046351b1c
|
4
|
+
data.tar.gz: 76869f6c229beb9dc884cbd40af34ab1458dec5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cce4d8777e99b014ef9f231332bfb916779a99b3695647590d99ad6960f475afaa7dc3fbeae5051149c422a48bda4eb77356fceebe421459df9103a74abe4765
|
7
|
+
data.tar.gz: 2ccd19ac1c264efd94bf7ccb92d5b8266beebb6cf5b49bff847d363e1a1857ffd3c3419884ed974eae154c6d7d6207158bbc6743b2af60f2b981313813718595
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.16
|
data/lib/routes/main.rb
CHANGED
@@ -123,6 +123,7 @@ class GaptoolServer < Sinatra::Application
|
|
123
123
|
|
124
124
|
@chef_repo = host_data['chef_repo'] && !host_data['chef_repo'].empty? ? host_data['chef_repo'] : $redis.hget('config', 'chefrepo')
|
125
125
|
@chef_branch = host_data['chef_branch'] && !host_data['chef_branch'].empty? ? host_data['chef_branch'] : $redis.hget('config', 'chefbranch')
|
126
|
+
@chef_environment = data['environment']
|
126
127
|
@initkey = $redis.hget('config', 'initkey')
|
127
128
|
@json = {
|
128
129
|
'hostname' => hostname,
|
data/lib/views/init.erb
CHANGED
@@ -8,5 +8,5 @@ chmod 600 /root/.ssh/id_rsa
|
|
8
8
|
echo 'StrictHostKeyChecking no' > /root/.ssh/config
|
9
9
|
git clone -b <%= @chef_branch %> <%= @chef_repo %> /root/ops
|
10
10
|
echo '<%= @json %>' > /root/init.json
|
11
|
-
chef-solo -c /root/ops/cookbooks/init.rb -j /root/init.json && \
|
11
|
+
chef-solo -c /root/ops/cookbooks/init.rb -j /root/init.json -E <%= @chef_environment %> && \
|
12
12
|
(rm /root/.ssh/id_rsa; userdel -r ubuntu; rm -rf /root/.ssh; rm -rf /root/ops)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gaptool-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Bailey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.2.2
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: gaptool-server for managing cloud resources
|