Skip to content

Commit

Permalink
Add /etc/containerd directory
Browse files Browse the repository at this point in the history
Without this, puppet fails on trying to create the config file.
  • Loading branch information
daaang committed Nov 27, 2023
1 parent d3bc7e8 commit 5d588dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/profile/containerd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@
content => template('nebula/profile/containerd/config.toml.erb'),
notify => Service['containerd']
}

file { "/etc/containerd":
ensure => "directory"
}
}
2 changes: 2 additions & 0 deletions spec/classes/profile/containerd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
it { is_expected.to contain_service('containerd').that_requires('Package[containerd.io]') }
it { is_expected.to contain_file('/etc/containerd/config.toml').with_content(/^disabled_plugins = \[\]$/) }
it { is_expected.to contain_file('/etc/containerd/config.toml').with_content(/^\s*SystemdCgroup = true$/) }
it { is_expected.to contain_file('/etc/containerd').with_ensure("directory") }
it { is_expected.to contain_file('/etc/containerd').that_comes_before("File[/etc/containerd/config.toml]") }
end
end
end

0 comments on commit 5d588dd

Please sign in to comment.