cookbook 'golang', '= 1.4.0'
golang
(44) Versions
1.4.0
-
Follow23
Installs go programming language
cookbook 'golang', '= 1.4.0', :supermarket
knife supermarket install golang
knife supermarket download golang
<a name="title"></a> golang (Chef cookbook for Go)
<a name="description"></a> Description
Chef cookbook for Go programming language.
<a name="requirements"></a> Requirements
<a name="requirements-platform"></a> Platform
- Ubuntu (10.04/11.04/12.04/13.04)
- Debian (6.0)
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.
<a name="usage"></a> 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 ['go']['packages']
attribute:
{ "name":"my_node", "go": { "packages": [ "launchpad.net/gocheck" ] }, "run_list": [ "recipe[golang::packages]" ] }
<a name="attributes"></a> Attributes
golang::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['go']['version']</tt></td>
<td>String</td>
<td>Go version</td>
<td><tt>1.2.2</tt></td>
</tr>
<tr>
<td><tt>['go']['platform']</tt></td>
<td>String</td>
<td>amd64
or i386
</td>
<td><tt>amd64</tt></td>
</tr>
<tr>
<td><tt>['go']['scm']</tt></td>
<td>Boolean</td>
<td>install SCM dependencies git
, hg
, and bzr
</td>
<td><tt>true</tt></td>
</tr>
</tr>
<tr>
<td><tt>['go']['packages']</tt></td>
<td>Array</td>
<td>Go packages to install when using the golang::packages
recipe</td>
<td><tt>[]</tt></td>
</tr>
<tr>
<td><tt>['go']['owner']</tt></td>
<td>String</td>
<td>The user account that owns $GOPATH</td>
<td><tt>root</tt></td>
</tr>
<tr>
<td><tt>['go']['group']</tt></td>
<td>String</td>
<td>The group that owns $GOPATH</td>
<td><tt>root</tt></td>
</tr>
</table>
<a name="testing"></a> 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:
- Vagrant (>= 1.1.0)
- VirtualBox
- Vagrant Berkshelf Plugin
<a name="contributing"></a> Contributing
- Fork the repository
- Create a named feature branch (like
add_component_x
) - Write you change
- Test it by running
rake kitchen:all
- Submit a Pull Request
Dependent cookbooks
This cookbook has no specified dependencies.