gogetit 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/gogetit/cli.rb +1 -1
- data/lib/gogetit/util.rb +27 -27
- data/lib/gogetit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 464e5d5917a8099932499111b3540bc4583e3aea
|
4
|
+
data.tar.gz: 48e2244bc27a2a78050ff2008112193a555db036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34786d8600ecec360d2bb942ee9fcb9bcf4272745bf55760296146f02e0f789331a128503e318649c59859b9904955f2976f8ff27201956978f337502fdd2aaf
|
7
|
+
data.tar.gz: bc38cea16984bf6215b62fe1ddbcbe28c82ad1c4601fbc79363053e8f50be8eb13e68be44318837498005f1960f35a01dbb706dfacfed53d925dc9d7170683ae
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ By using this, you will get to use them all together in automated and efficient
|
|
11
11
|
|
12
12
|
## Limitations
|
13
13
|
- Network resource awareness is only provided by MAAS.
|
14
|
-
-
|
14
|
+
- For now, only LXD and Libvirt(KVM) are available as provider.
|
15
15
|
- Only IPv4 is available for IP assignment.
|
16
16
|
- It is tested only on Ubuntu 16.04 with OVS as virtual switch.
|
17
17
|
|
data/lib/gogetit/cli.rb
CHANGED
@@ -101,7 +101,7 @@ module Gogetit
|
|
101
101
|
|
102
102
|
# post-tasks
|
103
103
|
if options['chef']
|
104
|
-
|
104
|
+
knife_bootstrap_chef(name, options[:provider], config)
|
105
105
|
update_databags(config)
|
106
106
|
elsif options['zero']
|
107
107
|
knife_bootstrap_zero(name, options[:provider], config)
|
data/lib/gogetit/util.rb
CHANGED
@@ -101,6 +101,33 @@ module Gogetit
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
+
def knife_remove(name, options)
|
105
|
+
logger.info("Calling <#{__method__.to_s}>")
|
106
|
+
if find_executable 'knife'
|
107
|
+
if options['chef']
|
108
|
+
if system('knife ssl check')
|
109
|
+
logger.info("With chef-server..")
|
110
|
+
puts "Deleting node #{name}.."
|
111
|
+
logger.info("knife node delete -y #{name}")
|
112
|
+
system("knife node delete -y #{name}")
|
113
|
+
puts "Deleting client #{name}.."
|
114
|
+
logger.info("knife client delete -y #{name}")
|
115
|
+
system("knife client delete -y #{name}")
|
116
|
+
else
|
117
|
+
abort('knife is not configured properly.')
|
118
|
+
end
|
119
|
+
elsif options['zero']
|
120
|
+
logger.info("With chef-zero..")
|
121
|
+
puts "Deleting node #{name}.."
|
122
|
+
logger.info("knife node delete -y #{name}")
|
123
|
+
system("knife node delete -y #{name}")
|
124
|
+
puts "Deleting client #{name}.."
|
125
|
+
logger.info("knife client delete -y #{name}")
|
126
|
+
system("knife client delete -y #{name}")
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
104
131
|
def update_databags(config)
|
105
132
|
logger.info("Calling <#{__method__.to_s}>")
|
106
133
|
data_bags_dir = "#{config[:chef][:chef_repo_root]}/data_bags"
|
@@ -161,33 +188,6 @@ module Gogetit
|
|
161
188
|
end
|
162
189
|
end
|
163
190
|
|
164
|
-
def knife_remove(name, options)
|
165
|
-
logger.info("Calling <#{__method__.to_s}>")
|
166
|
-
if find_executable 'knife'
|
167
|
-
if options['chef']
|
168
|
-
if system('knife ssl check')
|
169
|
-
logger.info("With chef-server..")
|
170
|
-
puts "Deleting node #{name}.."
|
171
|
-
logger.info("knife node delete -y #{name}")
|
172
|
-
system("knife node delete -y #{name}")
|
173
|
-
puts "Deleting client #{name}.."
|
174
|
-
logger.info("knife client delete -y #{name}")
|
175
|
-
system("knife client delete -y #{name}")
|
176
|
-
else
|
177
|
-
abort('knife is not configured properly.')
|
178
|
-
end
|
179
|
-
elsif options['zero']
|
180
|
-
logger.info("With chef-zero..")
|
181
|
-
puts "Deleting node #{name}.."
|
182
|
-
logger.info("knife node delete -y #{name}")
|
183
|
-
system("knife node delete -y #{name}")
|
184
|
-
puts "Deleting client #{name}.."
|
185
|
-
logger.info("knife client delete -y #{name}")
|
186
|
-
system("knife client delete -y #{name}")
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
191
|
def get_gateway(version)
|
192
192
|
IO.popen("ip -#{version.to_s} route").read.each_line do |route|
|
193
193
|
if route.include? 'default'
|
data/lib/gogetit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gogetit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Draper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|