Permalink
Browse files

Explicitly include receipes after go parameters definition

Summary:
For some reason it didn't work for me unless I explicitly included go recipes in dhcplb cookbook recipe. Chef was trying to launch dhcplp before even go was installed in system, not mentioning compiling the
project.

After applying this patch everything works as expected, `vagrant up` finishes successfully.

`root      7760  0.0  0.8 131268  4168 ?        Ssl  09:42   0:00 /opt/go/bin/dhcplb -version 4 -config /home/vagrant/dhcplb.config.json`
Closes #16

Differential Revision: D4243707

Pulled By: pallotron

fbshipit-source-id: bded9edc9e4d9047ea826a58703d22e3975d8949
  • Loading branch information...
lsiudut authored and Facebook Github Bot committed Nov 29, 2016
1 parent 685f0b1 commit 18ef2d43a693aaf7a05c5e8123435cdd03fb3b4e
Showing with 3 additions and 0 deletions.
  1. +3 −0 vagrant/chef/cookbooks/dhcplb/recipes/default.rb
@@ -1,6 +1,9 @@
node.default['go']['version'] = '1.6'
node.default['go']['packages'] = ['github.com/facebookincubator/dhcplb']
include_recipe 'golang'
include_recipe 'golang::packages'
directory '/home/vagrant/go' do
owner 'vagrant'
group 'vagrant'

0 comments on commit 18ef2d4

Please sign in to comment.