cookbooks/mu-tools/recipes/eks.rb in cloud-mu-2.0.0.pre.alpha9 vs cookbooks/mu-tools/recipes/eks.rb in cloud-mu-2.0.0.pre.beta1

- old
+ new

@@ -64,11 +64,11 @@ end package "kubeadm" package "kubelet" package "kubectl" else - Chef::Log.info("I don't know how to turn this #{node['platform']} AMI (#{node['platform_version'].to_s}) into a Kubernetes worker, hopefully it's the official, pre-configured AMI") + Chef::Log.info("I don't know how to turn this #{node['platform']} AMI (#{node['platform_version']}) into a Kubernetes worker, hopefully it's the official, pre-configured AMI") end service "docker" do action [:start, :enable] end @@ -135,11 +135,11 @@ master_ips = get_mu_master_ips opento = master_ips.map { |x| "#{x}/32"} opento.uniq.each { |src| [:tcp, :udp, :icmp].each { |proto| - execute "iptables -I INPUT -p #{proto.to_s} -s #{src}" do - not_if "iptables -L -n | tr -s ' ' | grep -- '#{proto.to_s} -- #{src.sub(/\/32$/, "")}' > /dev/null" + execute "iptables -I INPUT -p #{proto} -s #{src}" do + not_if "iptables -L -n | tr -s ' ' | grep -- '#{proto} -- #{src.sub(/\/32$/, "")}' > /dev/null" end } } execute "/usr/sbin/sysctl -w net.ipv4.ip_forward=1"