Skip to content

darkwizard242/ansible-role-istioctl

Repository files navigation

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

Ansible Role: istioctl

Role to install (by default) istioctl on Debian/Ubuntu and EL systems. istioctl is a the CLI for Istio, an open source service mesh for Kubernetes.

Requirements

None.

Role Variables

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

Variables list:

istioctl_app: istioctl
istioctl_version: 1.24.2
istioctl_os: linux
istioctl_architecture_map:
  amd64: amd64
  arm: arm64
  x86_64: amd64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: amd64
istioctl_dl_url: https://github.com/istio/istio/releases/download/{{ istioctl_version }}/istio-{{ istioctl_version }}-{{ istioctl_os }}-{{ istioctl_architecture_map[ansible_architecture] }}.tar.gz
istioctl_bin_path: /usr/local/bin
istioctl_file_owner: root
istioctl_file_group: root
istioctl_file_mode: '0755'

Variables table:

Variable Description
istioctl_app Defines the app to install i.e. istioctl
istioctl_version Defined to dynamically fetch the desired version to install. Defaults to: 1.24.2
istioctl_os Defines os type. Used for obtaining the correct type of binaries based on OS type. Defaults to: linux
istioctl_architecture_map Defines os architecture. Used to set the correct type of binaries based on OS System Architecture.
istioctl_dl_url Defines URL to download the istioctl binary from.
istioctl_bin_path Defined to dynamically set the appropriate path to store istioctl binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin
istioctl_file_owner Owner for the binary file of istioctl.
istioctl_file_group Group for the binary file of istioctl.
istioctl_file_mode Mode for the binary file of istioctl.

Dependencies

None

Example Playbook

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

- hosts: servers
  roles:
    - darkwizard242.istioctl

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

- hosts: servers
  roles:
    - darkwizard242.istioctl
  vars:
    istioctl_version: 1.17.1

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

- hosts: servers
  roles:
    - darkwizard242.istioctl
  vars:
    istioctl_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.