Version information
released Nov 29th 2015
This version is compatible with:
- ,
Start using this module
Add this module to your Puppetfile:
mod 'scottyc-golang', '1.1.1'
Learn more about managing modules with a PuppetfileDocumentation
scottyc/golang — version 1.1.1 Nov 29th 2015
golang
Table of Contents
Overview
This is a module that will install Google's Go language for all users.
Module Description
This module installs GO from source, making it compatbale with any OS that listed on Google's site https://golang.org/doc/install
Usage
For basic usage:
include golang
To customise the install please see the below examples.
To install from source:
class {'golang':
base_dir => '/usr/local/go',
from_source => true,
version => 'go1.4.1',
goroot => "$GOPATH/bin:/usr/local/go/bin:$PATH",
workdir => '/usr/local/',
}
To install from the OS repos (yum ot apt)
class {'golang':
base_dir => '/usr/local/go',
from_source => false,
package_version => 'present',
goroot => "$GOPATH/bin:/usr/local/go/bin:$PATH",
workdir => '/usr/local/',
}
Or all data can be set in Hiera ie golang::base_dir: /usr/local/go
##Dependencies
This module needs puppetlabs/vcsrepo
Development
Pull request welcome. Just hit me up.
Dependencies
- puppetlabs/vcsrepo (>= 1.2.0)
- puppetlabs/stdlib (>= 4.1.0)