lib/providers/lxd.rb in gogetit-0.17.0 vs lib/providers/lxd.rb in gogetit-0.18.0

- old
+ new

@@ -74,10 +74,14 @@ args[:config][:"user.user-data"]['source_image_alias'] = args[:alias] args[:config][:"user.user-data"]['maas'] = true end + if options['lxd-in-lxd'] + args[:config][:"security.nesting"] = "true" + end + args[:config][:"user.user-data"]['gogetit'] = true # To disable to update apt database on first boot # so chef client can keep doing its job. args[:config][:'user.user-data']['package_update'] = false @@ -91,9 +95,15 @@ return args end def generate_cloud_init_config(options, config, args) logger.info("Calling <#{__method__.to_s}>") + + # apt + args[:config][:'user.user-data']['apt'] = {} + # preserve source list for a while + args[:config][:'user.user-data']['apt']['preserve_sources_list'] = true + if options['no-maas'] # When there is no MAAS, containers should be able to resolve # their name with hosts file. args[:config][:'user.user-data']['manage_etc_hosts'] = true end