gogetit 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gogetit/cli.rb +2 -0
- data/lib/gogetit/version.rb +1 -1
- data/lib/providers/lxd.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94123b18c5b3bbf6dd71acd165ab3e2647a10c075e6c7ce369d8fb346304838d
|
4
|
+
data.tar.gz: 4d221810c87e747d1d79ae06578d24c8a8d1999ca5ff3b215db54be5b9198dc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd806d5b8dc30366c307a0c95efc11634ef37f68f1e149b17da7ed5ef603ee3b3c1c4e11193d8743c459d90b16885b3de3f15d0a500e79e70136a6a6de3583f3
|
7
|
+
data.tar.gz: c49e2a809c05f2b4d44bd1ea458ae89c6dee40d3190c9bb58dd29eb1c42170eb3d32abd9d57415ff587d9eb592ba359624d8bd4df5eba66192d058a702a45dd0
|
data/lib/gogetit/cli.rb
CHANGED
@@ -72,6 +72,8 @@ module Gogetit
|
|
72
72
|
method_option :"maas-on-lxc", :type => :boolean, \
|
73
73
|
:desc => 'To install MAAS on a LXC enabling necessary user config'\
|
74
74
|
'(only for LXD provider with no-maas enabled)'
|
75
|
+
method_option :"lxd-in-lxd", :type => :boolean, \
|
76
|
+
:desc => 'To run LXD inside of LXD enabling "security.nesting"'
|
75
77
|
method_option :"file", :aliases => '-f', :type => :string, \
|
76
78
|
:desc => 'File location(only for LXD provider)'
|
77
79
|
def create(name)
|
data/lib/gogetit/version.rb
CHANGED
data/lib/providers/lxd.rb
CHANGED
@@ -76,6 +76,10 @@ module Gogetit
|
|
76
76
|
args[:config][:"user.user-data"]['maas'] = true
|
77
77
|
end
|
78
78
|
|
79
|
+
if options['lxd-in-lxd']
|
80
|
+
args[:config][:"security.nesting"] = "true"
|
81
|
+
end
|
82
|
+
|
79
83
|
args[:config][:"user.user-data"]['gogetit'] = true
|
80
84
|
|
81
85
|
# To disable to update apt database on first boot
|
@@ -93,6 +97,12 @@ module Gogetit
|
|
93
97
|
|
94
98
|
def generate_cloud_init_config(options, config, args)
|
95
99
|
logger.info("Calling <#{__method__.to_s}>")
|
100
|
+
|
101
|
+
# apt
|
102
|
+
args[:config][:'user.user-data']['apt'] = {}
|
103
|
+
# preserve source list for a while
|
104
|
+
args[:config][:'user.user-data']['apt']['preserve_sources_list'] = true
|
105
|
+
|
96
106
|
if options['no-maas']
|
97
107
|
# When there is no MAAS, containers should be able to resolve
|
98
108
|
# their name with hosts file.
|
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.
|
4
|
+
version: 0.18.0
|
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-05-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|