DasWolke / golang-formula

Saltstack formula for Golang

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang-Formula

Formula to setup and configure specific versions of Golang.

"Go is an open source programming language that makes it easy to build simple, reliable, and efficient software."

-- golang.org

Available states

Install go!

Helpful for debugging, dumps the jinja map to a text file

Testing

Requirements

Testing is done with KitchenSalt which means you'll also need a working Ruby setup and preferably 2.2.2, but you can use whatever version as long as you update the Gemfile. You will also need bundler installed and can be done so with gem install bundler.

If all that works, you should be able to run kitchen test which is an alias for kitchen converge + kitchen verify but it deletes the box on completion so it isn't very useful during development.

Cheat Sheet

# Initial setup
which bundle || gem install bundler
bundle install

# build vagrant box and run states
kitchen converge

# run tests in `test/integration/default`
kitchen verify

# sledgehammer
kitchen destroy

# alias for running  (destroy + converge + verify + destroy)
kitchen test

About

Saltstack formula for Golang

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License:Other


Languages

Language:SaltStack 47.3%Language:Ruby 28.8%Language:Shell 12.4%Language:HTML 11.5%