Skip to content
chef cookbook for managing CRI-O
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
attributes
libraries
recipes
resources
test
.foodcritic
.gitignore
.kitchen.yml
.rubocop.yml
.travis.yml
Berksfile
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
Rakefile
TESTING.md
chefignore
metadata.rb

README.md

crio chef cookbook Build Status

Chef cookbook for managing CRI-O and related resources.

Recommended reading:

Recipes

crio::default

includes install, configure, manage recipes

crio::install

sets up yum repository and install CRI-O related packages

crio::configure

configures the CRI-O daemon via attributes

crio::manage

manages crio.service

Resources

crio_image

resource for managing CRI-O images

properties

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

actions

  • :pull: default, pulls image
  • :pull_if_missing: pull image if not already present
  • :nothing: do nothing

crio_container

resource for managing CRI-O containers as systemd service units

properties

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

actions

  • :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!
You can’t perform that action at this time.