Deprecated

Removed in 3.0.0

i

Reason:For more details https://github.com/ansible/ansible/issues/61546. | Alternative:Use M(community.kubernetes.helm) instead.

community.general.helm (2.5.9) — module

Manages Kubernetes packages with the Helm package manager

Authors: Flavio Percoco (@flaper87)

Install collection

Install with ansible-galaxy collection install community.general:==2.5.9


Add to requirements.yml

  collections:
    - name: community.general
      version: 2.5.9

Description

Install, upgrade, delete and list packages with the Helm package manager.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install helm chart
  community.general.helm:
    host: localhost
    chart:
      name: memcached
      version: 0.4.0
      source:
        type: repo
        location: https://kubernetes-charts.storage.googleapis.com
    state: present
    name: my-memcached
    namespace: default
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Uninstall helm chart
  community.general.helm:
    host: localhost
    state: absent
    name: my-memcached
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install helm chart from a git repo
  community.general.helm:
    host: localhost
    chart:
      source:
        type: git
        location: https://github.com/user/helm-chart.git
    state: present
    name: my-example
    namespace: default
    values:
      foo: "bar"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install helm chart from a git repo specifying path
  community.general.helm:
    host: localhost
    chart:
      source:
        type: git
        location: https://github.com/helm/charts.git
        path: stable/memcached
    state: present
    name: my-memcached
    namespace: default
    values: "{{ lookup('file', '/path/to/file/values.yaml') | from_yaml }}"

Inputs

    
host:
    default: localhost
    description:
    - Tiller's server host.
    type: str

name:
    description:
    - Release name to manage.
    type: str

port:
    default: 44134
    description:
    - Tiller's server port.
    type: int

chart:
    default: {}
    description:
    - A map describing the chart to install. See examples for available options.
    type: dict

state:
    choices:
    - absent
    - purged
    - present
    default: present
    description:
    - Whether to install C(present), remove C(absent), or purge C(purged) a package.
    type: str

values:
    default: {}
    description:
    - A map of value options for the chart.
    type: dict

namespace:
    default: default
    description:
    - Kubernetes namespace where the chart should be installed.
    type: str

disable_hooks:
    default: 'no'
    description:
    - Whether to disable hooks during the uninstall process.
    type: bool