Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Jun 16, 2024
1 parent 10b6c73 commit b8c35ae
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions cookbooks/boxcutter_docker/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

node.default['fb_iptables']['filter']['DOCKER-USER']['rules']['dockeruser'] = {
'rules' => [
'-j FORWARD'
]
'-j FORWARD',
],
}

node.default['fb_iptables']['dynamic_chains']['filter']['DOCKER-ISOLATION-STAGE-1'] = [
Expand All @@ -42,12 +42,12 @@

case node['platform']
when 'ubuntu'
%w(
%w{
ca-certificates
curl
gnupg
lsb-release
).each do |package|
}.each do |package|
package package do
action :upgrade
end
Expand Down Expand Up @@ -92,9 +92,11 @@
# -----END PGP PUBLIC KEY BLOCK-----
case node['kernel']['machine']
when 'aarch64', 'arm64'
node.default['fb_apt']['repos'] << "deb [arch=arm64] https://download.docker.com/linux/ubuntu #{node['lsb']['codename']} stable"
node.default['fb_apt']['repos'] <<
"deb [arch=arm64] https://download.docker.com/linux/ubuntu #{node['lsb']['codename']} stable"
when 'x86_64', 'amd64'
node.default['fb_apt']['repos'] << "deb [arch=amd64] https://download.docker.com/linux/ubuntu #{node['lsb']['codename']} stable"
node.default['fb_apt']['repos'] <<
"deb [arch=amd64] https://download.docker.com/linux/ubuntu #{node['lsb']['codename']} stable"
end

node.default['fb_apt']['keys']['8D81803C0EBFCD88'] = <<~EOS
Expand Down Expand Up @@ -176,25 +178,25 @@

case node['platform']
when 'ubuntu'
%w(
%w{
docker-ce
docker-ce-cli
containerd.io
docker-buildx-plugin
docker-compose-plugin
).each do |package|
}.each do |package|
package package do
action :upgrade
end
end
when 'centos'
%w(
%w{
docker-ce
docker-ce-cli
containerd.io
docker-buildx-plugin
docker-compose-plugin
).each do |package|
}.each do |package|
package package do
action :upgrade
end
Expand Down

0 comments on commit b8c35ae

Please sign in to comment.