feat: add incus module (#230)

- add a basic incus module

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/230
This commit was merged in pull request #230.
This commit is contained in:
2025-03-30 01:12:53 +11:00
parent 6a04701891
commit bdf420973d
4 changed files with 130 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
class incus (
Array[String] $packages = [
'incus',
'incus-tools',
'incus-client'
],
) {
package { $packages:
ensure => installed,
}
service { 'incus':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
file_line { 'subuid_root':
ensure => present,
path => '/etc/subuid',
line => 'root:1000000:1000000000',
match => '^root:',
notify => Service['incus'],
}
file_line { 'subgid_root':
ensure => present,
path => '/etc/subgid',
line => 'root:1000000:1000000000',
match => '^root:',
notify => Service['incus'],
}
}