Browse Source

fix(podman): Fix podman stack and use the apt_repositories

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 years ago
parent
commit
aa7c605819
1 changed files with 20 additions and 0 deletions
  1. 20 0
      cookbooks/workstation/recipes/_podman.rb

+ 20 - 0
cookbooks/workstation/recipes/_podman.rb

@@ -0,0 +1,20 @@
+#
+# Cookbook:: workstation
+# Recipe:: _podman
+#
+# Copyright:: 2022, The Authors, All Rights Reserved.
+
+include_recipe 'apt_repositories::_podman'
+
+# TODO: use gem 'inifile' instead of this
+file '/etc/containers/containers.conf.d/99wsl2.conf' do
+  owner 'root'
+  group 'root'
+  mode '0755'
+  content <<~_WSL2
+    [engine]
+    cgroup_manager = "cgroupfs"
+    events_logger = "file"
+  _WSL2
+  action :create
+end