2024-01-18 06:52:38 +00:00
|
|
|
# Class for forgeo action runner.
|
2024-01-18 08:19:55 +00:00
|
|
|
class podmanrunner::runner (
|
|
|
|
Integer $replicas = 2,
|
|
|
|
)
|
2024-01-18 06:52:38 +00:00
|
|
|
{
|
2024-01-18 14:03:47 +00:00
|
|
|
user { 'podmanuser':
|
2024-01-18 06:52:38 +00:00
|
|
|
ensure => present,
|
2024-01-18 14:03:47 +00:00
|
|
|
home => '/opt/podmanuser',
|
|
|
|
shell => '/usr/sbin/nologin',
|
|
|
|
uid => '1001',
|
2024-01-18 06:52:38 +00:00
|
|
|
managehome => true,
|
|
|
|
}
|
2024-01-18 14:39:26 +00:00
|
|
|
package { 'podman':
|
|
|
|
ensure => installed,
|
|
|
|
provider => apt,
|
|
|
|
}
|
|
|
|
file { '/opt/podmanuser/docker-compose.yaml':
|
|
|
|
ensure => file,
|
|
|
|
content => template('podmanrunner/docker-compose.yaml.erb'),
|
|
|
|
owner => 'podmanuser',
|
|
|
|
group => 'podmanuser',
|
|
|
|
mode => '0600',
|
|
|
|
}
|
2024-01-18 06:52:38 +00:00
|
|
|
}
|