Giter VIP home page Giter VIP logo

chef-golang's Introduction

golang (Chef cookbook for Go)

Description

Chef cookbook for Go programming language.

Requirements

Platform

  • Ubuntu (12.04/13.04/14.10)
  • 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.

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]"
  ]
}

Attributes

golang::default

Key Type Description Default
['go']['version'] String Go version 1.4
['go']['platform'] String `amd64` or `i386` amd64
['go']['scm'] Boolean install SCM dependencies `git`, `hg`, and `bzr` true
['go']['packages'] Array Go packages to install when using the `golang::packages` recipe []
['go']['owner'] String The user account that owns $GOPATH root
['go']['group'] String The group that owns $GOPATH root
['go']['mode'] String The mode of $GOPATH 0755
['go']['from_source'] Boolean Install go from source false
['go']['os'] String Build go for which operating system linux
['go']['arch'] String Build go for which architecture arm
['go']['arm'] String Build go for which arm version 6
['go']['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:

Contributing

  1. Fork the repository
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Test it by running rake kitchen:all
  5. Submit a Pull Request

chef-golang's People

Contributors

buth avatar capoferro avatar computerlyrik avatar craftzdog avatar crowdmatt avatar iramello avatar jdstuart avatar leejones avatar melekes avatar namtzigla avatar ngerakines avatar nox73 avatar pseudomuto avatar remh avatar rollbrettler avatar spion06 avatar tmonk42 avatar xaprb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.