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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: feea9f469e99f44736df03434f39e6656ff98f539e2984c9612c48dbf3e517e9
4
- data.tar.gz: 7ffd7149dd8da0571ba1f12ae50126431949431798c1fa52253c9fb8ac750751
3
+ metadata.gz: 94123b18c5b3bbf6dd71acd165ab3e2647a10c075e6c7ce369d8fb346304838d
4
+ data.tar.gz: 4d221810c87e747d1d79ae06578d24c8a8d1999ca5ff3b215db54be5b9198dc7
5
5
  SHA512:
6
- metadata.gz: 5ad95329dabf38ba47b066d7b8e8aa907675e34304afd7449c17157a54ee87e1758611dfef033682f62225ab1134237fd21b9e5638ac67a10d54d408fb753dc7
7
- data.tar.gz: eca792979825cbec1db67566e76ddeedb2b8eafb5edd4613b40e48f3e4d51e093933c7c53f259d836149a25e69bf2c60142bf45ad4aaf05c340687ea24ae4f95
6
+ metadata.gz: dd806d5b8dc30366c307a0c95efc11634ef37f68f1e149b17da7ed5ef603ee3b3c1c4e11193d8743c459d90b16885b3de3f15d0a500e79e70136a6a6de3583f3
7
+ data.tar.gz: c49e2a809c05f2b4d44bd1ea458ae89c6dee40d3190c9bb58dd29eb1c42170eb3d32abd9d57415ff587d9eb592ba359624d8bd4df5eba66192d058a702a45dd0
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Gogetit
2
- VERSION = "0.17.0"
2
+ VERSION = "0.18.0"
3
3
  end
@@ -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.17.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-18 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler