Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 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 < 8.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'treydock-golang', '2.1.0'
Learn more about managing modules with a PuppetfileDocumentation
puppet-module-golang
Table of Contents
- Overview
- Usage - Configuration options
- Reference - Parameter and detailed reference to all options
- Development - Guide for contributing to the module
Overview
This module installs go binary for Linux systems.
Usage
golang
Install Go
class { 'golang': }
Install specific version of Go
class { 'golang':
version => '1.14',
}
Reference
http://treydock.github.io/puppet-module-golang/
Development
Testing
Testing requires the following dependencies:
- rake
- bundler
Install gem dependencies
bundle install
Run unit tests
bundle exec rake release_checks
If you have Docker installed you can run system tests
bundle exec rake beaker
Reference
Table of Contents
Classes
golang
: Install Go
Classes
golang
Download and install Go programming language
Examples
include golang
Parameters
The following parameters are available in the golang
class:
version
Data type: String
Version of Go to install
Default value: '1.16.1'
os
Data type: String[1]
The GOOS to install
Default value: downcase($facts['kernel'])
arch
Data type: String[1]
The GOARCH to install
Default value: $facts['os']['architecture']
download_dir
Data type: Stdlib::Absolutepath
The directory of where to download Go
Default value: '/tmp'
extract_dir
Data type: Stdlib::Absolutepath
The directory where to extract Go
Default value: '/opt'
bin_dir
Data type: Stdlib::Absolutepath
The path to bin directory for go and gofmt symlinks
Default value: '/usr/bin'
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.
v2.1.0 (2021-09-17)
Added
v2.0.0 (2021-06-11)
Changed
v1.0.0 (2021-03-12)
Changed
v0.1.1 (2020-05-07)
Fixed
v0.1.0 (2020-02-27)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.1 <9.0.0)
- puppet/archive (>= 1.0.0 <7.0.0)