puppet-prod/modules/incus/manifests/init.pp
Ben Vincent 0a978e651d feat: add incus module
- add a basic incus module
2025-03-30 01:11:50 +11:00

36 lines
652 B
Puppet

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'],
}
}