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:
@@ -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'],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user