Skip to content
Installs go programming language
Ruby Go HTML
Branch: master
Clone or download
1
Latest commit 3667f9d May 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
attributes rename cookbook, use 'golang' namespace for attributes (#56) Feb 25, 2018
libraries add chefspec matchers for golang_package Apr 2, 2014
providers
recipes Fix cookbook name for chef-golang::packages (#66) May 29, 2018
resources lint Feb 24, 2018
templates/default rename cookbook, use 'golang' namespace for attributes (#56) Feb 25, 2018
test rename cookbook, use 'golang' namespace for attributes (#56) Feb 25, 2018
.gitignore add newline at end of file Sep 29, 2016
.kitchen.yml
.rubocop.yml remove blank line Feb 24, 2018
.rubocop_todo.yml rename cookbook, use 'golang' namespace for attributes (#56) Feb 25, 2018
.travis.yml update gems, foodcritic Feb 24, 2018
Berksfile lint Feb 24, 2018
CHANGELOG.md rename cookbook to chef-gloang Feb 27, 2018
CONTRIBUTING.md rename cookbook, use 'golang' namespace for attributes (#56) Feb 25, 2018
Gemfile update gems, foodcritic Feb 24, 2018
Gemfile.lock update gems, foodcritic Feb 24, 2018
LICENSE packages recipe, SCM requirements, README/tests updates Nov 21, 2013
README.md rename cookbook, use 'golang' namespace for attributes (#56) Feb 25, 2018
Rakefile update gems, foodcritic Feb 24, 2018
metadata.rb Update metadata.rb May 29, 2018

README.md

Build Status Cookbook Version

chef-golang (Chef cookbook Go)

Description

Chef cookbook for the Go programming language.

Requirements

Platform

  • Ubuntu (16.04)
  • Debian (8)
  • CentOS (6.9)

Notes: This cookbook has been tested on the listed platforms. It may work on other platforms with or without modification. Please report issues any additional platforms so they can be added.

Usage

chef-golang::default

Just include golang in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[chef-golang]"
  ]
}

chef-golang::packages

To install Go packages using node attributes, include golang::packages in your node's run_list, and use the ['golang']['packages'] attribute:

{
  "name":"my_node",
  "go": {
    "packages": [
      "launchpad.net/gocheck"
    ]
  },
  "run_list": [
    "recipe[golang::packages]"
  ]
}

Attributes

chef-golang::default

Key Type Description Default
['golang']['version'] String Go version 1.5
['golang']['platform'] String amd64 or i386 amd64
['golang']['scm'] Boolean install SCM dependencies git, hg, and bzr true
['golang']['packages'] Array Go packages to install when using the golang::packages recipe []
['golang']['owner'] String The user account that owns $GOPATH root
['golang']['group'] String The group that owns $GOPATH root
['golang']['mode'] String The mode of $GOPATH 0755
['golang']['from_source'] Boolean Install go from source false
['golang']['os'] String Build go for which operating system linux
['golang']['arch'] String Build go for which architecture arm
['golang']['arm'] String Build go for which arm version 6
['golang']['source_method'] String Choose which install script should be used all.bash

Testing

This project have foodcritic for syntax checking and test-kitchen for integration testing. You can run the test suite by typing: rake kitchen:all (may be slow for the first time).

In order to run these tests, the following requirements must be satisfied:

You can’t perform that action at this time.