From 4e2cced9d45ffc653349dc6b1d04906e306b4914 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 21 Mar 2019 00:03:05 +0000 Subject: [PATCH] Purge cloud-init completely --- cookbooks/networking/recipes/default.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 8b2fae181..45de97872 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -173,11 +173,11 @@ if node[:networking][:netplan] end file "/etc/cloud/cloud.cfg.d/99-chef.cfg" do - owner "root" - group "root" - mode 0o644 - content YAML.dump("network" => { "config" => "disabled" }) - only_if { ::Dir.exist?("/etc/cloud/cloud.cfg.d") } + action :delete + end + + package "cloud-init" do + action :purge end else package network_packages -- 2.39.5