Giter VIP home page Giter VIP logo

ansible-role-helm's Introduction

Ansible role: Helm

This role handles the creation and updates of Helm charts.

Build Status Version

Requirements

  • Ansible 2.5

Additional variables

Additional variables that can be used (either as host_vars/group_vars or via command line args):

Variable Type Description
helm_version string Locally expected Helm version (major+minor) (defaults to: 3.1.2)
helm_version_strict bool If True, check against major, minor and patch, otherwise only major and minor version (defaults to: True)
helm_kubectl_context string If specified, use this kubectl context, otherwise it will use the currently selected default context
helm_configuration_files dict Directory where chart configuration files is stored
helm_charts list List of items which represent the release.
Release items have the following fields: release,chart,chart_version,values_file_path,namespace
helm_repositories list List of items which represent the repository.
Repository items have the following fields: name,url
cluster_env string Default cluster environment(defaults to playground)
helm_default_region string Default region value used to gather vpc facts

** NOTE **
The values_file_path property of the items stored in helm_charts is treated as a Jinja2 template

Example Usage

---
- name: Install Helm locally and roll out charts
  hosts: localhost
  roles:
    - role: rolename
      vars:
        helm_version: 2.12.x
        helm_version_strict: False
        helm_kubectl_context: minikube
        helm_repositories:
          - name: zalenium-github
            url: https://raw.githubusercontent.com/zalando/zalenium/3.141.59u/charts/zalenium

        # Directory with custom values for helm charts
        # Example:
        #   $ tree ./helm-config
        #   ./helm-config
        #   ├── prometheus
        #   │   └── values.yml.j2
        #   └── logstash
        #       └── values.yml.j2
        helm_configuration_files: "{{ playbook_dir }}/helm-config"
        helm_charts:
          - release: prometheus
            chart: stable/prometheus
            chart_version: 8.8.0
            values_file_path: prometheus/values.yml.j2
            namespace: prometheus

          - release: logstash
            chart: stable/logstash
            chart_version: 8.8.0
            values_file_path: logstash/values.yml.j2
            namespace: logstash

Testing

Requirements

Run tests

# Lint the source files
make lint

# Run integration tests with default Ansible version
make test

# Run integration tests with custom Ansible version
make test ANSIBLE_VERSION=2.5

ansible-role-helm's People

Contributors

czerasz-flaconi avatar vikkasyousaf avatar cytopia avatar danvaida avatar runderwoodcr14 avatar

Watchers

 avatar

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.