Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New podman::quadlet type for quadlet production #83

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
---
fixtures:
forge_modules:
systemd: "puppet/systemd"
stdlib: "puppetlabs/stdlib"
concat: "puppetlabs/concat"
selinux_core: "puppetlabs/selinux_core"
Expand Down
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,36 @@ Several additional examples are in a separate [github project](https://github.co
a Traefik container configuration that enables SSL termination and proxy access to other containers running on the host, with a dynamic
configuration directory enabling updates to proxy rules as new containers are added and/or removed.

## Creating Containers,Volumes, Pods, ... with Quadlet Unit Files

Container unit files can be created and managed, for example:

```puppet
podman::quadlet{'centos.container':
ensure => present,
unit_entry => {
'Description' => 'Trivial Container that will be very lazy',
},
service_entry => {
'TimeoutStartSec' => '900',
},
container_entry => {
'Image' => 'quay.io/centos/centos:latest',
'Exec' => 'sh -c "sleep inf'
},
install_entry => {
'WantedBy' => 'default.target'
},
active => true,
}

```

Will create a service `centos.service` that is then started and enabled for boot.

Similarly quadlets for volumes, pods, ... can be created in a similar manner


## Limitations

The module was written and tested with RedHat/CentOS, but should work with any distribution that uses systemd and includes
Expand Down
Loading
Loading