Skip to content

Commit

Permalink
configure containerd
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Oct 17, 2023
1 parent 3e67df4 commit 25c080f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/profile/containerd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@
src => false,
},
}

file { "/etc/containerd/config.toml":
content => template('nebula/profile/containerd/config.toml.erb'),
notify => Service['containerd']
}
}
2 changes: 2 additions & 0 deletions spec/classes/profile/containerd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
it { is_expected.to contain_apt__source('docker') }
it { is_expected.to contain_package('containerd.io').that_requires('Apt::Source[docker]') }
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(/^SystemdCgroup = true$/) }
end
end
end
3 changes: 3 additions & 0 deletions templates/profile/containerd/config.toml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
disabled_plugins = []
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true

0 comments on commit 25c080f

Please sign in to comment.