-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ktooi/add_conf_crio_tasks
Add conf crio tasks
- Loading branch information
Showing
8 changed files
with
160 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
crio_conf: | ||
"crio": | ||
root: "/home/abuild/.local/share/containers/storage" | ||
runroot: "/tmp/containers-user-399/containers" | ||
storage_driver: vfs | ||
storage_option: [] | ||
log_dir: "/var/log/crio/pods" | ||
version_file: "/var/run/crio/version" | ||
version_file_persist: "/var/lib/crio/version" | ||
internal_wipe: true | ||
clean_shutdown_file: "/var/lib/crio/clean.shutdown" | ||
"crio.metrics": | ||
enable_metrics: false | ||
metrics_collectors: | ||
- "operations" | ||
- "operations_latency_microseconds_total" | ||
- "operations_latency_microseconds" | ||
- "operations_errors" | ||
- "image_pulls_by_digest" | ||
- "image_pulls_by_name" | ||
- "image_pulls_by_name_skipped" | ||
- "image_pulls_failures" | ||
- "image_pulls_successes" | ||
- "image_pulls_layer_size" | ||
- "image_layer_reuse" | ||
- "containers_oom_total" | ||
- "containers_oom" | ||
- "processes_defunct" | ||
- "operations_total" | ||
- "operations_latency_seconds" | ||
- "operations_latency_seconds_total" | ||
- "operations_errors_total" | ||
- "image_pulls_bytes_total" | ||
- "image_pulls_skipped_bytes_total" | ||
- "image_pulls_failure_total" | ||
- "image_pulls_success_total" | ||
- "image_layer_reuse_total" | ||
- "containers_oom_count_total" | ||
metrics_port: 9090 | ||
metrics_socket: "" | ||
metrics_cert: "" | ||
metrics_key: "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Restart CRI-O | ||
systemd: | ||
name: crio | ||
state: restarted | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% for section, options in crio_conf.items() %} | ||
[{{ section }}] | ||
{% for key, val in options.items() %} | ||
{{ key }} = | ||
{%- if val is string %} | ||
"{{ val }}" | ||
{% elif val is iterable and var is not mapping %} | ||
[ | ||
{% for v in val %} | ||
{% if v is string %} | ||
"{{ v }}", | ||
{% else %} | ||
{{ v }}, | ||
{% endif %} | ||
{% endfor %} | ||
] | ||
{% elif val is boolean %} | ||
{{ val | string | lower }} | ||
{% else %} | ||
{{ val }} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% endfor %} |