installs a go project via git along with dependencies like apt, golang, git
Key | Type | Description | Default |
---|---|---|---|
['goproject']['repository'] | String | goproject git repo | https://github.com/nytlabs/streamtools.git |
['goproject']['branch'] | String | git branch | master |
Your server should have a working go installation. The golang cookbook works well for this. Include the recipe for streamtools::source
- and optionally golang
- in your node's run_list
:
Just include goproject
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[golang]",
"recipe[goproject::source]"
]
}
knife node edit my_server
{
'name': 'my_server',
'chef_environment': '_default',
'normal': {
'tags': [ ],
'goproject': {
'repository': 'https://github.com/nytlabs/streamtools.git',
'branch': 'master',
'gopath': '/home/ubuntu/go'
}
},
'run_list': [
'recipe[goproject]'
]
}
Authors: Jacqui Maher, [email protected]