Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 7
- ,
Plans:
- provision_cluster
- puppetserver_setup
Start using this module
Add this module to your Puppetfile:
mod 'puppetlabs-helm', '4.0.0'
Learn more about managing modules with a PuppetfileDocumentation
Helm
Table of Contents
- Helm
- [Table of Contents](#Table-of-Contents)
Description
This module installs the the Helm package manager, which consists of the Helm client (Helm) and the Helm server (Tiller), and it also manages the Helm deployments. The Helm package manager installs and manages Kubernetes applications.
Setup
Before installing the helm module, create a Kubernetes service account and install a Kubernetes cluster, including kubectl. For more information about Kubernetes and kubectl, see the Kubernetes docs.
To install the helm module, include the helm
class:
include 'helm'
Usage
To customise options, such as the version, the service account, or the Tiller namespace, add the following code to the manifest file:
class { 'helm':
version => '2.6.0',
service_account => 'my_account',
tiller_namespaces => ['my_namespace'],
}
A Helm chart is a collection of files that describe a related set of Kubernetes resources. To create a Helm chart, add the following code to the manifest file:
helm::create { 'myapp':
env => $env,
chart_path => '/tmp',
chart_name => 'myapp',
path => $path,
}
To package a Helm chart, add the following code to the manifest file:
helm::package { 'myapp':
chart_path => '/tmp',
chart_name => 'myapp',
destination => '/root',
env => $env,
path => $path,
version => '0.1.0',
}
To deploy a Helm chart, add the following code to the manifest file:
helm::chart { 'mysql':
ensure => present,
chart => 'stable/mysql',
env => $env,
path => $path,
release_name => 'mysql',
}
To add a Helm chart repository, add the following code to the manifest file:
helm::repo { 'myrepo':
ensure => present,
env => $env,
path => $path,
username => 'username',
password => 'password',
repo_name => 'myrepo',
url => 'http://myserver/charts'
}
To update a Helm chart repository, add the following code to the manifest file:
helm::repo_update { 'update':
env => $env,
path => $path,
update => true
}
Reference
Limitations
This module is compatible only with the Linux
kernel.
Development
Contributing
If you would like to contribute to this module please follow the rules in the CONTRIBUTING.md.
To run the acceptance tests you can use Puppet Litmus with the Vagrant provider by using the following commands:
bundle exec rake 'litmus:provision_list[all_supported]'
bundle exec rake 'litmus:install_agent[puppet5]'
bundle exec rake 'litmus:install_module'
bundle exec rake 'litmus:acceptance:parallel'
As currently Litmus does not allow memory size and cpu size parameters for the Vagrant provisioner task we recommend to manually update the Vagrantfile used by the provisioner and add at least the following specifications for the puppetlabs-kubernetes module acceptance tests:
Update Vagrantfile in the file: spec/fixtures/modules/provision/tasks/vagrant.rb vf = <<-VF Vagrant.configure(\"2\") do |config| config.vm.box = '#{platform}' config.vm.boot_timeout = 600 config.ssh.insert_key = false config.vm.hostname = "testkube" config.vm.provider "virtualbox" do |vb| vb.memory = "2048" vb.cpus = "2" end #{network} #{synced_folder} end VF
Reference
Table of Contents
Classes
Public Classes
helm
: A module to install Helm, the Kubernetes package manager.helm::params
: This module installs Helm, the Kubernetes package manager.
Private Classes
helm::account_config
: helm::account_confighelm::binary
: helm::binaryhelm::config
: helm::config
Defined types
helm::chart
: Manages the deployment of helm charts.helm::chart_update
: Update the deployed Helm charts.helm::create
: Creates a new Helm chart.helm::helm_init
: Deploys the Tiller pod and initializes the Helm client.helm::package
: Packages a chart directory ino a chart archive..helm::repo
: Adds a Helm repository.helm::repo_update
: Updates all of the Helm repositories.
Functions
helm_chart_update_flags
: Transforms a hash into a string of helm install chart flagshelm_create_flags
: Transforms a hash into a string of helm create flagshelm_delete_flags
: Transforms a hash into a string of helm delete flagshelm_init_flags
: Transforms a hash into a string of helm init flagshelm_install_flags
: Transforms a hash into a string of helm install chart flagshelm_ls_flags
: Transforms a hash into a string of helm ls flagshelm_package_flags
: Transforms a hash into a string of helm package flagshelm_repo_add_flags
: Transforms a hash into a string of helm repo add flagshelm_repo_remove_flags
: Transforms a hash into a string of helm repo remove flagshelm_repo_update_flags
: Transforms a hash into a string of helm repo update flags
Plans
helm::provision_cluster
: Provisions machineshelm::puppetserver_setup
: Provisions machines
Classes
helm
A module to install Helm, the Kubernetes package manager.
Parameters
The following parameters are available in the helm
class:
canary_image
client_only
debug
dry_run
env
home
host
init
install_path
kube_context
local_repo_url
net_host
node_selectors
overrides
path
proxy
service_account
skip_refresh
stable_repo_url
tiller_image
tiller_image_pull_secrets
tiller_namespaces
tiller_tls
tiller_tls_cert
tiller_tls_key
tiller_tls_verify
tls_ca_cert
upgrade
version
archive_baseurl
canary_image
Data type: Boolean
Use the helm canary image for the default init of helm. Defaults to false
Default value: $helm::params::canary_image
client_only
Data type: Boolean
Make the default init install the client only. Defaults to false
Default value: $helm::params::client_only
debug
Data type: Boolean
Set output logging to debug for the default init. Defaults to false
Default value: $helm::params::debug
dry_run
Data type: Boolean
Make the default init run in dry-run mode. Defaults to false
Default value: $helm::params::dry_run
env
Data type: Array
Environment variables to specify the location of configruation files, or any other custom variables required for helm to run. Defaults to [ 'HOME=/root', 'KUBECONFIG=/root/admin.conf']
Default value: $helm::params::env
home
Data type: Optional[String]
Set the HELM_HOME variable for the default init. Defaults to undef
Default value: $helm::params::home
host
Data type: Optional[String]
Specify the HELM_HOST for the default init. Defaults to undef
Default value: $helm::params::host
init
Data type: Boolean
Determines the behaviour of the config function. Setting to true will init the cluster and install tiller. False will install Helm in client only mode. Defaults to true
Default value: $helm::params::init
install_path
Data type: String
The path to extract helm binary to. Defaults to '/usr/bin'
Default value: $helm::params::install_path
kube_context
Data type: Optional[String]
Specify the kube_context for the default init. Defaults to undef
Default value: $helm::params::kube_context
local_repo_url
Data type: Optional[String]
Specify the local_repo_url for the default init. Defaults to undef
Default value: $helm::params::local_repo_url
net_host
Data type: Optional[Boolean]
Enable net_host mode for the default init. Defaults to false
Default value: $helm::params::net_host
node_selectors
Data type: Optional[String]
Specify node selectors for the helm init on the default init. Defaults to undef
Default value: $helm::params::node_selectors
overrides
Data type: Optional[Array]
Specify override parameters for the default init. Defaults to undef
Default value: $helm::params::overrides
path
Data type: Array
The PATH variable used for exec types. Defaults to ['/bin','/usr/bin']
Default value: $helm::params::path
proxy
Data type: Optional[String]
Specify an internet proxy if necessary. Defaults to undef
Default value: $helm::params::proxy
service_account
Data type: String
The service account for tiller Defaults to 'tiller'
Default value: $helm::params::service_account
skip_refresh
Data type: Boolean
Enable skip refresh mode for the default init. Defaults to false
Default value: $helm::params::skip_refresh
stable_repo_url
Data type: Optional[String]
Specify the stable repo url for the default init. Defaults to undef
Default value: $helm::params::stable_repo_url
tiller_image
Data type: Optional[String]
Specify the image for the tiller install in the default init. Defaults to undef
Default value: $helm::params::tiller_image
tiller_image_pull_secrets
Data type: Optional[Array[String]]
Optionnaly put imagePullSecret(s) in tiller's serviceaccount.
Default value: $helm::params::tiller_image_pull_secrets
tiller_namespaces
Data type: Array[String]
Array of namespaces in which to install tiller Defaults to ['kube-system']
Default value: $helm::params::tiller_namespaces
tiller_tls
Data type: Boolean
Enable TLS for tiller in the default init. Defaults to false
Default value: $helm::params::tiller_tls
tiller_tls_cert
Data type: Optional[String]
Specify a TLS cert for tiller in the default init. Defaults to undef
Default value: $helm::params::tiller_tls_cert
tiller_tls_key
Data type: Optional[String]
Specify a TLS key for tiller in the default init. Defaults to undef
Default value: $helm::params::tiller_tls_key
tiller_tls_verify
Data type: Boolean
Enable TLS verification for tiller in the default init. Defaults to undef
Default value: $helm::params::tiller_tls_verify
tls_ca_cert
Data type: Optional[String]
Specify a TLS CA certificate for tiller in the default init. Defaults to undef
Default value: $helm::params::tls_ca_cert
upgrade
Data type: Boolean
Whether to upgrade tiller in the default init. Defaults to false
Default value: $helm::params::upgrade
version
Data type: String
The version of helm to install. Defaults to 2.5.1
Default value: $helm::params::version
archive_baseurl
Data type: String
The base URL for downloading the helm archive, must contain file helm-v${version}-linux-${arch}.tar.gz Defaults to https://kubernetes-helm.storage.googleapis.com URLs supported by puppet/archive module will work, e.g. puppet:///modules/helm_files
Default value: $helm::params::archive_baseurl
helm::params
This module installs Helm, the Kubernetes package manager.
Defined types
helm::chart
Defined Type helm::chart
Parameters
The following parameters are available in the helm::chart
defined type:
ensure
ca_file
cert_file
debug
devel
dry_run
env
key_file
key_ring
home
host
kube_context
name_template
no_hooks
path
purge
release_name
replace
repo
set
timeout
- `tiller_namespace``
tls
tls_ca_cert
tls_cert
- `tls_key``
tls_verify
values
verify
version
wait
chart
namespace
tiller_namespace
tls_key
ensure
Data type: String
Specifies whether a chart is deployed.
Default value: present
ca_file
Data type: Optional[String]
Verifies the certificates of the HTTPS-enabled servers using the CA bundle.
Default value: undef
cert_file
Data type: Optional[String]
Identifies the HTTPS client using this SSL certificate file.
Default value: undef
debug
Data type: Boolean
Specifies whether to enable verbose output.
Values true
, false
.
Default value: false
devel
Data type: Boolean
Specifies whether to use development versions.
Values true
, false
.
Default value: false
dry_run
Data type: Boolean
Specifies whether to simulate an installation or delete a deployment.
Values true
, false
.
Default value: false
env
Data type: Optional[Array]
Sets the environment variables for Helm to connect to the kubernetes cluster.
Default value: undef
key_file
Data type: Optional[String]
Identifies the HTTPS client using thie SSL key file.
Default value: undef
key_ring
Data type: Optional[String]
Location of the public keys that are used for verification.
Default value: undef
home
Data type: Optional[String]
Location of your Helm config. This value overrides $HELM_HOME
.
Default value: undef
host
Data type: Optional[String]
Address of Tiller. This value overrides $HELM_HOST
.
Default value: undef
kube_context
Data type: Optional[String]
Name of the kubeconfig context.
Default value: undef
name_template
Data type: Optional[String]
The template used to name the release.
Default value: undef
no_hooks
Data type: Boolean
Specifies whether to prevent hooks running during the installation.
Values true
, false
.
Default value: false
path
Data type: Optional[Array]
The PATH variable used for exec types.
Default value: undef
purge
Data type: Boolean
Specifies whether to remove the release from the store, and make its name available for later use.
Values true
, false
.
Default value: true
release_name
Data type: Optional[String]
Required. The release name.
Default value: undef
replace
Data type: Boolean
Reuse the release name.
Default value: false
repo
Data type: Optional[String]
The repository URL for a requested chart.
Default value: undef
set
Data type: Optional[Array]
The set array of values for the helm create
command.
Default value: []
timeout
Data type: Optional[Integer]
The timeout in seconds to wait for a Kubernetes operation.
Default value: undef
`tiller_namespace``
The Tiller namespace.
tls
Data type: Boolean
Specifies whether to enable TLS.
Values true
, false
.
Default value: false
tls_ca_cert
Data type: Optional[String]
The path to TLS CA certificate file.
Default value: undef
tls_cert
Data type: Optional[String]
The path to TLS certificate file.
Default value: undef
`tls_key``
The path to TLS key file.
tls_verify
Data type: Boolean
Enable TLS for request and verify remote.
Default value: false
values
Data type: Optional[Array]
Specify values from a YAML file. Multiple values in an array are accepted.
Default value: []
verify
Data type: Boolean
Specifies whether to verify the package before installing it.
Values true
, false
.
Default value: false
version
Data type: Optional[String]
Specify the version of the chart to install. undef
installs the latest version.
Default value: undef
wait
Data type: Boolean
Before marking the release as successful, specify whether to wait until all the pods, PVCs, services, and the minimum number of deployment pods are in a ready state. The timeout
value determines the duration.
Values true
, false
.
Default value: false
chart
Data type: Optional[String]
The file system location of the package.
Default value: undef
namespace
Data type: Optional[String]
Default value: undef
tiller_namespace
Data type: Optional[String]
Default value: 'kube-system'
tls_key
Data type: Optional[String]
Default value: undef
helm::chart_update
Defined Type helm::chart::update
Parameters
The following parameters are available in the helm::chart_update
defined type:
ensure
ca_file
cert_file
debug
devel
dry_run
env
install
key_file
keyring
home
host
kube_context
recreate_pods
reset_values
reuse_values
no_hooks#
path
purge
release_name
repo
set
timeout
tiller_namespace
tls
tls_ca_cert
tls_cert
tls_key
tls_verify
values
verify
version
wait
chart
namespace
no_hooks
ensure
Data type: String
Specifies whether a chart must be updated. Valid values are 'present', 'absent'.
Default value: present
ca_file
Data type: Optional[String]
Verifies the certificates of the HTTPS-enabled servers using the CA bundle.
Default value: undef
cert_file
Data type: Optional[String]
Identifies the HTTPS client using this SSL certificate file.
Default value: undef
debug
Data type: Boolean
Specifies whether to enable verbose output.
Values true
, false
.
Default value: false
devel
Data type: Boolean
Specifies whether to use development versions.
Values true
, false
.
Default value: false
dry_run
Data type: Boolean
Specifies whether to simulate a chart update.
Values true
, false
.
Default value: false
env
Data type: Optional[Array]
Sets the environment variables for Helm to connect to the kubernetes cluster.
Default value: undef
install
Data type: Boolean
If a release by this name doesn't already exist, run an install
Default value: true
key_file
Data type: Optional[String]
Identifies the HTTPS client using the SSL key file.
Default value: undef
keyring
Data type: Optional[String]
Location of the public keys that are used for verification.
Default value: undef
home
Data type: Optional[String]
Location of your Helm config. This value overrides $HELM_HOME
.
Default value: undef
host
Data type: Optional[String]
Address of Tiller. This value overrides $HELM_HOST
.
Default value: undef
kube_context
Data type: Optional[String]
Name of the kubeconfig context.
Default value: undef
recreate_pods
Data type: Optional[String]
Performs pods restart for the resource if applicable
Default value: undef
reset_values
Data type: Optional[String]
When upgrading, reset the values to the ones built into the chart
Default value: undef
reuse_values
Data type: Optional[String]
when upgrading, reuse the last release's values, and merge in any new values. If '--reset-values' is specified, this is ignored.
Default value: undef
no_hooks#
@param
Specifies whether to prevent hooks running during the installation.
Values true
, false
.
path
Data type: Array
The PATH variable used for exec types.
Default value: undef
purge
Data type: Boolean
Specifies whether to remove the release from the store, and make its name available for later use.
Values true
, false
.
Default value: true
release_name
Data type: Optional[String]
Required. The release name.
Default value: undef
repo
Data type: Optional[String]
The repository URL for a requested chart.
Default value: undef
set
Data type: Optional[Array]
The set array of values for the helm create
command.
Default value: []
timeout
Data type: Optional[Integer]
The timeout in seconds to wait for a Kubernetes operation.
Default value: undef
tiller_namespace
Data type: String
The Tiller namespace.
Default value: 'kube-system'
tls
Data type: Boolean
Specifies whether to enable TLS.
Values true
, false
.
Default value: false
tls_ca_cert
Data type: Optional[String]
The path to TLS CA certificate file.
Default value: undef
tls_cert
Data type: Optional[String]
The path to TLS certificate file.
Default value: undef
tls_key
Data type: Optional[String]
The path to TLS key file.
Default value: undef
tls_verify
Data type: Boolean
Enable TLS for request and verify remote.
Default value: false
values
Data type: Optional[Array]
Specify values from a YAML file. Multiple values in an array are accepted.
Default value: []
verify
Data type: Boolean
Specifies whether to verify the package before installing it.
Values true
, false
.
Default value: false
version
Data type: Optional[String]
Specify the version of the chart to install. undef
installs the latest version.
Default value: undef
wait
Data type: Boolean
Before marking the release as successful, specify whether to wait until all the pods, PVCs, services, and the minimum number of deployment pods are in a ready state. The timeout
value determines the duration.
Values true
, false
.
Default value: false
chart
Data type: Optional[String]
The file system location of the package.
Default value: undef
namespace
Data type: Optional[String]
Default value: undef
no_hooks
Data type: Boolean
Default value: false
helm::create
Defined Type helm::chart::create
Parameters
The following parameters are available in the helm::create
defined type:
chart_name
Data type: Optional[String]
The name of the Helm chart.
Defaults to undef
.
Default value: undef
chart_path
Data type: Optional[String]
The location of the Helm chart. If the directory in the path does not exist, Helm attempts to create it. If the directory and the files already exist, only the conflicting files are overwritten.
Default value: undef
debug
Data type: Boolean
Specifies whether to enable verbose output.
Values true
, false
.
Default value: false
env
Data type: Optional[Array]
Sets the environment variables for Helm to connect to the Kubernetes cluster.
Default value: undef
home
Data type: Optional[String]
The location of your Helm configuration. This value overrides $HELM_HOME
.
Default value: undef
host
Data type: Optional[String]
Address of Tiller. This value overrides $HELM_HOST
.
Default value: undef
kube_context
Data type: Optional[String]
The name of the kubeconfig context.
Default value: undef
path
Data type: Optional[Array]
The PATH variable used for exec types.
Default value: undef
starter
Data type: Optional[String]
Value for the starter chart.
Default value: undef
tiller_namespace
Data type: Optional[String]
Namespace of Tiller.
Default value: undef
helm::helm_init
Defined Type helm::helm_init
Parameters
The following parameters are available in the helm::helm_init
defined type:
init
canary_image
client_only
debug
dry_run
env
home
host
kube_context
local_repo_url
net_host
path
service_account
skip_refresh
stable_repo_url
tiller_image
tiller_namespace
tiller_tls
tiller_tls_cert
tiller_tls_key
tiller_tls_verify
tls_ca_cert
upgrade
overrides
node_selectors
init
Data type: Boolean
Specifies whether to deploy the tiller pod and initialise the Helm client.
Valid values are true
, false
.
Default value: true
canary_image
Data type: Boolean
Specifies whether to use the canary Tiller image.
Valid values are true
, false
.
Default value: false
client_only
Data type: Boolean
Specifies whether to deploy Tiller.
Valid values are true
, false
.
Default value: false
debug
Data type: Boolean
Specifies whether to enable the verbose output.
Values true
, false
.
Default value: false
dry_run
Data type: Boolean
Specifies whether to simulate an installation or delete of a deployment.
Values true
, false
.
Default value: false
env
Data type: Optional[Array]
Sets the environment variables required for Helm to connect to the kubernetes cluster.
Default value: undef
home
Data type: Optional[String]
The location for your Helm configuration. This value overrides $HELM_HOME
.
Default value: undef
host
Data type: Optional[String]
The host address for Tiller. Overrides $HELM_HOST
.
Default value: undef
kube_context
Data type: Optional[String]
The name for the kubeconfig context to use.
Default value: undef
local_repo_url
Data type: Optional[String]
The local repository URL.
Default value: undef
net_host
Data type: Boolean
Specifies whether to install Tiller with net=host
.
Valid values are true
, false
.
Default value: false
path
Data type: Optional[Array]
The PATH variable used for exec types.
Default value: undef
service_account
Data type: Optional[String]
The name for the service account used for deploying Tiller.
Default value: undef
skip_refresh
Data type: Boolean
Specifies whether to refresh or download the local repository cache.
Valid values are true
, false
.
Default value: false
stable_repo_url
Data type: Optional[String]
The stable repository URL.
Default value: undef
tiller_image
Data type: Optional[String]
Override the Tiller image.
Default value: undef
tiller_namespace
Data type: String
Namespace for Tiller.
Default value: 'kube-system'
tiller_tls
Data type: Boolean
Specifies whether to install Tiller with TLS enabled.
Valid values are true
, false
.
Default value: false
tiller_tls_cert
Data type: Optional[String]
The path to the TLS certificate file that is installed with Tiller.
Default value: undef
tiller_tls_key
Data type: Optional[String]
The path to the TLS key file that is installed with Tiller.
Default value: undef
tiller_tls_verify
Data type: Boolean
Specifies whether to install Tiller with TLS enabled and to verify remote certificates.
Valid values are true
, false
.
Default value: false
tls_ca_cert
Data type: Optional[String]
Specifies whether to use the path to the CA root certificate.
Valid values are true
, false
.
Default value: undef
upgrade
Data type: Boolean
Specifies whether to upgrade if Tiller is installed.
Valid values are true
, false
.
Default value: false
overrides
Data type: Optional[Array]
Default value: undef
node_selectors
Data type: Optional[String]
Default value: undef
helm::package
Defined Type helm::package
Parameters
The following parameters are available in the helm::package
defined type:
chart_name
chart_path
debug
home
host
kube_context
save
sign
tiller_namespace
version
dependency_update
destination
env
key
keystring
host
path
chart_name
Data type: Optional[String]
Defaults to undef
.
The name of the Helm chart.
Default value: undef
chart_path
Data type: Optional[String]
The file system location of the chart.
Default value: undef
debug
Data type: Boolean
Specifies whether to enable verbose output.
Values true
, false
.
Defaults to false
.
Default value: false
home
Data type: Optional[String]
Location of your Helm config. This value overrides $HELM_HOME
.
Defaults to undef
.
Default value: undef
host
The address for Tiller. This value overrides $HELM_HOST
.
Defaults to undef
.
kube_context
Data type: Optional[String]
The name for the kubeconfig context.
Defaults to undef
.
Default value: undef
save
Data type: Boolean
Specifies whether to save the packaged chart to the local chart repository.
Valid values are true
, false
.
Defaults to true
.
Default value: true
sign
Data type: Boolean
Specifies whether to use a PGP private key to sign the package.
Valid values are true
, false
.
Defaults to false
.
Default value: false
tiller_namespace
Data type: Optional[String]
The namespace for Tiller.
Defaults to undef
.
Default value: undef
version
Data type: Optional[String]
The version of the chart.
Defaults to undef
.
Default value: undef
dependency_update
Data type: Boolean
Specifies whether to update dependencies.
Valid values are true
, false
.
Defaults to false
.
Default value: false
destination
Data type: Optional[String]
The destination location to write to.
Defaults to undef
.
Default value: undef
env
Data type: Optional[Array]
Sets the environment variables required for Helm to connect to the kubernetes cluster.
Defaults to undef
.
Default value: undef
key
Data type: Optional[String]
Specify the key to use.
Defaults to undef
.
Default value: undef
keystring
Data type: Optional[String]
The location of the public keys that are used for verification.
Defaults to undef
.
Default value: undef
host
Data type: Optional[String]
Default value: undef
path
Data type: Optional[Array]
Default value: undef
helm::repo
Defined Type helm::repo
Parameters
The following parameters are available in the helm::repo
defined type:
ensure
ca_file
cert_file
debug
env
key_file
no_update
home
host
kube_context
path
tiller_namespace
username
password
repo_name
url
ensure
Data type: String
Specifies whether a repo is added. Valid values are 'present', 'absent'.
Default value: present
ca_file
Data type: Optional[String]
Verify the certificates of HTTPS-enabled servers that are using the current CA bundle.
Default value: undef
cert_file
Data type: Optional[String]
Use the SSL certificate file to identify the HTTPS client.
Default value: undef
debug
Data type: Boolean
Specifies whether to enable verbose output. Values true, false.
Default value: false
env
Data type: Optional[Array]
Sets the environment variables required for Helm to connect to the kubernetes cluster.
Default value: undef
key_file
Data type: Optional[String]
Use the SSL key file to identify the HTTPS client.
Default value: undef
no_update
Data type: Boolean
Specifies whether to create an error when the repository is already registered. Values true, false.
Default value: false
home
Data type: Optional[String]
Location of your Helm config. This value overrrides $HELM_HOME.
Default value: undef
host
Data type: Optional[String]
The address for Tiller. This value overrides $HELM_HOST.
Default value: undef
kube_context
Data type: Optional[String]
The name for the kubeconfig context to use.
Default value: undef
path
Data type: Optional[Array]
The PATH variable used for exec types.
Default value: undef
tiller_namespace
Data type: Optional[String]
The namespace for Tiller.
Default value: undef
username
Data type: Optional[String]
The username for the remote repository
Default value: undef
password
Data type: Optional[String]
The password for the remote repository.
Default value: undef
repo_name
Data type: Optional[String]
The name for the remote repository.
Default value: undef
url
Data type: Optional[String]
The URL for the remote repository.
Default value: undef
helm::repo_update
Defined Type helm::repo_update
Parameters
The following parameters are available in the helm::repo_update
defined type:
debug
Data type: Boolean
Specifies whether to enable verbose output. Values true, false.
Default value: false
env
Data type: Optional[Array]
Sets the environment variables required for Helm to connect to the Kubernetes cluster.
Default value: undef
home
Data type: Optional[String]
The location of your Helm config. This value overrides $HELM_HOME.
Default value: undef
host
Data type: Optional[String]
The address for Tiller. This value overrides $HELM_HOST.
Default value: undef
kube_context
Data type: Optional[String]
The name for the kubeconfig context to use.
Default value: undef
path
Data type: Optional[Array]
The PATH variable used for exec types.
Default value: undef
tiller_namespace
Data type: Optional[String]
The namespace for Tiller.
Default value: undef
update
Data type: Boolean
Specifies whether the repository is updated. Values true, false.
Default value: true
Functions
helm_chart_update_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm install chart flags
helm_chart_update_flags()
Transforms a hash into a string of helm install chart flags
Returns: Any
helm_create_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm create flags
helm_create_flags()
Transforms a hash into a string of helm create flags
Returns: Any
helm_delete_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm delete flags
helm_delete_flags()
Transforms a hash into a string of helm delete flags
Returns: Any
helm_init_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm init flags
helm_init_flags()
Transforms a hash into a string of helm init flags
Returns: Any
helm_install_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm install chart flags
helm_install_flags()
Transforms a hash into a string of helm install chart flags
Returns: Any
helm_ls_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm ls flags
helm_ls_flags()
Transforms a hash into a string of helm ls flags
Returns: Any
helm_package_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm package flags
helm_package_flags()
Transforms a hash into a string of helm package flags
Returns: Any
helm_repo_add_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm repo add flags
helm_repo_add_flags()
Transforms a hash into a string of helm repo add flags
Returns: Any
helm_repo_remove_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm repo remove flags
helm_repo_remove_flags()
Transforms a hash into a string of helm repo remove flags
Returns: Any
helm_repo_update_flags
Type: Ruby 3.x API
Transforms a hash into a string of helm repo update flags
helm_repo_update_flags()
Transforms a hash into a string of helm repo update flags
Returns: Any
Plans
helm::provision_cluster
Provisions machines for integration testing
Examples
helm::provision_cluster
Parameters
The following parameters are available in the helm::provision_cluster
plan:
image_type
Data type: Optional[String]
Default value: 'centos-7'
provision_type
Data type: Optional[String]
Default value: 'provision_service'
helm::puppetserver_setup
Puppet Server Setup
Examples
helm::puppetserver_setup
Parameters
The following parameters are available in the helm::puppetserver_setup
plan:
collection
Data type: Optional[String]
Default value: 'puppet7-nightly'
What are plans?
Modules can contain plans that take action outside of a desired state managed by Puppet. It’s perfect for troubleshooting or deploying one-off changes, distributing scripts to run across your infrastructure, or automating changes that need to happen in a particular order as part of an application deployment.
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v4.0.0 (2021-06-28)
Changed
- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 #143 (carabasdaniel)
Added
- pdksync - (IAC-973) - Update travis/appveyor to run on new default branch
main
#123 (david22swan)
Fixed
- (IAC-1497) - Removal of unsupported
translate
dependency #152 (david22swan) - Update default stable repo and fix acceptance tests #141 (carabasdaniel)
- (IAC-989) - Removal of Inappropriate Terminology #140 (david22swan)
- Repair centos7 #133 (daianamezdrea)
v3.2.0 (2020-03-18)
v3.1.0 (2019-12-06)
Added
- Adding the possibility to add imagePullSecrets #98 (zonArt)
- add username and password flags in helm_repo_add_flags #89 (AblionGE)
Fixed
- Use subscribe instead of require to gain autoupdating #82 (walkamongus)
v3.0.0 (2019-08-01)
Changed
- (FM-8100) Update minimum supported Puppet version to 5.5.10 #79 (sheenaajay)
Added
- Add policy apigroup to tiller role permissions #81 (walkamongus)
Fixed
- MODULES-9237 (Fix helm init flag) #85 (sheenaajay)
- Fix chart update #74 (hdeadman)
2.0.2
Fixes error with dependency boundaries
Version 2.0.1
Updating module dependencies
Fixing GO version in acceptance tests
Version 2.0.0
- Puppet 6 Support
- Multi tiller installs
- Speficy helm archive location
A list of PR's can be found here
Version 1.1.0
Fixes bugs:
- #54 adds missing parameter to init.pp
- Fixes incorrect type for node selectory
Adds in PDK compliance
Version 1.0.1
Updates environment variable for use with upstream kubernetes module
Version 1.0.0
Officially supported release of puppetlabs-helm
Version 0.1.3
Support for Helm version =< 2.7
Version 0.1.2
Bug fixes
Version 0.1.1
Fix for metadata.json
Version 0.1.0
First release Supports Helm version =< 2.6
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs-stdlib (>= 4.19.0 < 8.0.0)
- puppet-archive (>= 2.0.0 < 5.0.0)
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright {yyyy} {name of copyright owner} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.