/golang

Development repository for the golang cookbook

Primary LanguageRubyApache License 2.0Apache-2.0

Golang (Go) Cookbook

Cookbook Version CI State OpenCollective OpenCollective License

Description

Chef cookbook for the Go programming language.

Requirements

Platform

  • Ubuntu >= 18.04
  • Debian >= 8
  • CentOS >= 7

Usage

golang::default

Just include golang in your node's run_list:

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

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",
  "golang": {
    "packages": [
      "github.com/go-check/check"
    ]
  },
  "run_list": [
    "recipe[golang::packages]"
  ]
}

Attributes

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

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website