36 lines
652 B
Puppet
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'],
|
|
}
|
|
}
|