Ver código fonte

feat(podman): Update the 'podman' cookbook with legacy

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 anos atrás
pai
commit
69d5b94759

+ 15 - 0
cookbooks/podman/recipes/_packages.rb

@@ -0,0 +1,15 @@
+#
+# Cookbook:: workstation
+# Recipe:: _podman
+#
+# Copyright:: 2022, The Authors, All Rights Reserved.
+
+
+package %w{
+  podman
+  uidmap
+  fuse-overlayfs
+  containernetworking-plugins
+  slirp4netns
+  buildah
+}

+ 0 - 19
cookbooks/apt_repositories/recipes/_podman.rb → cookbooks/podman/recipes/_repository

@@ -24,22 +24,3 @@ apt_repository 'devel_kubic_libcontainer_stable' do
   deb_src true
   action :delete
 end
-
-package %w{
-  podman
-  uidmap
-  fuse-overlayfs
-  containernetworking-plugins
-  slirp4netns
-  buildah
-}
-
-# Specific to WSL2:
-# Ref: https://www.redhat.com/sysadmin/podman-windows-wsl2
-#
-directory '/etc/containers/containers.conf.d' do
-  owner 'root'
-  group 'root'
-  mode '0755'
-  action :create
-end

+ 14 - 0
cookbooks/podman/recipes/default.rb

@@ -3,3 +3,17 @@
 # Recipe:: default
 #
 # Copyright:: 2022, The Authors, All Rights Reserved.
+
+
+include_recipe 'podman::_repository'
+include_recipe 'podman::_packages'
+
+# Specific to WSL2:
+# Ref: https://www.redhat.com/sysadmin/podman-windows-wsl2
+#
+directory '/etc/containers/containers.conf.d' do
+  owner 'root'
+  group 'root'
+  mode '0755'
+  action :create
+end