cookbook 'crio', '= 1.0.1'
crio
(21) Versions
1.0.1
-
Follow0
Installs/Configures crio
cookbook 'crio', '= 1.0.1', :supermarket
knife supermarket install crio
knife supermarket download crio
crio chef cookbook
Chef cookbook for managing CRI-O and related resources.
Recommended reading:
- crio man page
- podman man page
- CRI-O blog
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 |
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 |
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!
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
1.0.1 / 2018-03-15
- add travis config
- add identity to image_name
- clarify test functionality
- update documentation
- add travis config
1.0.0 / 2018-03-15
- add pull_if_missing action to image resource
- allow opt out of image pull in container resource using pull_image property
0.7.0 / 2018-03-15
- fix default container resource action
0.6.0 / 2018-03-15
- set default image/container repo properties rather than required
0.5.0 / 2018-03-15
- update documentation
- fix cops
- simplify service unit for podman-0.3.3
Collaborator Number Metric
1.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.1 passed this metric
Foodcritic Metric
1.0.1 failed this metric
FC009: Resource attribute not recognised: crio/resources/container.rb:23
FC009: Resource attribute not recognised: crio/resources/container.rb:49
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 passed this metric
Version Tag Metric
1.0.1 passed this metric
1.0.1 failed this metric
1.0.1 passed this metric
Foodcritic Metric
1.0.1 failed this metric
FC009: Resource attribute not recognised: crio/resources/container.rb:23
FC009: Resource attribute not recognised: crio/resources/container.rb:49
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 passed this metric
Version Tag Metric
1.0.1 passed this metric
1.0.1 failed this metric
FC009: Resource attribute not recognised: crio/resources/container.rb:49
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 passed this metric
Version Tag Metric
1.0.1 passed this metric
1.0.1 passed this metric
1.0.1 passed this metric
Version Tag Metric
1.0.1 passed this metric
1.0.1 passed this metric