Giter VIP home page Giter VIP logo

ansible-role-crictl's Introduction

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: crictl

Role to install (by default) crictl on Debian/Ubuntu and EL systems. crictl is CLI tool for Kubernetes Container Runtime Interface.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables list:

crictl_app: crictl
crictl_version: 1.31.1
crictl_os: "{{ ansible_system | lower }}"
crictl_architecture_map:
  amd64: amd64
  arm: arm64
  x86_64: amd64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: amd64
crictl_dl_url: https://github.com/kubernetes-sigs/cri-tools/releases/download/v{{ crictl_version }}/{{ crictl_app }}-v{{ crictl_version }}-{{ crictl_os }}-{{ crictl_architecture_map[ansible_architecture] }}.tar.gz
crictl_bin_path: /usr/local/bin
crictl_file_owner: root
crictl_file_group: root

Variables table:

Variable Description
crictl_app Defines the app to install i.e. crictl
crictl_version Defined to dynamically fetch the desired version to install. Defaults to: 1.31.1
crictl_os Defines os type.
crictl_architecture_map Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture.
crictl_dl_url Defines URL to download the crictl binary from.
crictl_bin_path Defined to dynamically set the appropriate path to store crictl binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin
crictl_file_owner Owner for the binary file of crictl.
crictl_file_group Group for the binary file of crictl.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of crictl) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.crictl

For customizing behavior of role (i.e. specifying the desired crictl version) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.crictl
  vars:
    crictl_version: 1.21.0

For customizing behavior of role (i.e. placing binary of crictl package in different location) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.crictl
  vars:
    crictl_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.

ansible-role-crictl's People

Contributors

darkwizard242 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rahulsharma0810

ansible-role-crictl's Issues

Fix Cli Warnings

Fix Cli warnings by adding /etc/crictl.yaml

WARN[0000] runtime connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock unix:///var/run/cri-dockerd.sock]. As the default settings are now deprecated, you should set the endpoint instead.
ERRO[0000] validate service connection: validate CRI v1 runtime API for endpoint "unix:///var/run/dockershim.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/run/dockershim.sock: connect: no such file or directory"
WARN[0000] image connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock unix:///var/run/cri-dockerd.sock]. As the default settings are now deprecated, you should set the endpoint instead.
ERRO[0000] validate service connection: validate CRI v1 image API for endpoint "unix:///var/run/dockershim.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/run/dockershim.sock: connect: no such file or directory"
CONTAINER           IMAGE               CREATED             STATE               NAME                ATTEMPT 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.