Chef cookbook for managing CRI-O and related resources.
Recommended reading:
includes install, configure, manage recipes
sets up yum repository and install CRI-O related packages
configures the CRI-O daemon via attributes
manages crio.service
resource for managing CRI-O images
property | type | example | description |
---|---|---|---|
image_name | String | redis |
resource name |
repo | String | docker.io/library/redis |
image repository path |
tag | String | latest |
image tag to pull |
global_opts | Array | ['--storage-driver=vfs'] |
podman global options |
pull_opts | Array | --authfile=/etc/containers/auth.json |
podman pull options |
:pull
: default, pulls image:pull_if_missing
: pull image if not already present:nothing
: do nothing
resource for managing CRI-O containers as systemd service units
property | type | example | description |
---|---|---|---|
container_name | String | redis |
resource name |
image | String | redis |
image to run |
tag | String | 3.2 |
image tag to run |
global_opts | Array | ['--storage-driver=vfs'] |
podman global options |
run_opts | Array | ['--net=host'] |
podman run options |
pull_opts | Array | ['--authfile=/etc/containers/auth.json'] |
podman pull options |
command | String | /usr/bin/my-app |
command to run in container |
pull_image | [TrueClass, FalseClass] | true |
whether to pull image before container start |
:create
: default, create systemd unit to run container as a systemd service unit:delete
: delete container service unit:enable
: enable container service unit:disable
: disable container service unit:start
: start service unit:stop
: stop service unit:restart
: restart service unit, start if stopped:try_restart
: restart service unit if running, does nothing if stopped:nothing
: do... nothing!