Add podman-compose version 1.0.6 and package systemd-container

This commit is contained in:
Magnus Andersson 2024-01-18 22:25:44 +01:00
parent f6bbad824e
commit edfc201cc2
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16
3 changed files with 2955 additions and 10 deletions

2945
files/podman-compose Normal file

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
Test

View file

@ -14,30 +14,31 @@ class podmanrunner::runner (
ensure => installed,
provider => apt,
}
file { '/opt/podmanuser/docker-compose.yaml':
package { 'systemd-container':
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',
}
file { '/opt/podmanuser/bin':
ensure => directory,
mode => '0700',
owner => 'podmanuser',
group => 'podmanuser',
}
file { '/opt/podmanuser/bin/podman-compose':
ensure => file,
mode => '500',
source => 'https://raw.githubusercontent.com/containers/podman-compose/v1.0.6/podman_compose.py',
owner => 'podmanuser',
group => 'podmanuser',
}
file { '/tmp/test.txt':
ensure => file,
mode => '444',
source => 'puppet:///podmanrunner/testfile.txt',
source => 'puppet:///modules/podmanrunner/podman-compose',
owner => 'podmanuser',
group => 'podmanuser',
}