lib/providers/lxd.rb in gogetit-0.4.0 vs lib/providers/lxd.rb in gogetit-0.4.1

- old
+ new

@@ -173,11 +173,17 @@ if repo['name'] == 'main_archive' args[:config][:'user.user-data']['apt_mirror'] = repo['url'] end end + # 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 + args[:config][:"user.user-data"] = \ YAML.dump(args[:config][:"user.user-data"])[4..-1] + + args[:config][:"user.user-data"] = "#cloud-config\n" + args[:config][:"user.user-data"] return args end def create(name, options = {}) logger.info("Calling <#{__method__.to_s}>")