Commit 9de93333 authored by Dominik Rosiek's avatar Dominik Rosiek Committed by Dominik Rosiek
Browse files

chore(makefile,vagrant): add knife-publish


Signed-off-by: default avatarDominik Rosiek <drosiek@sumologic.com>
parent 11aac831
......@@ -25,3 +25,4 @@ nodes
cinc_guid
chef_guid
local-mode-cache
.chef
......@@ -5,3 +5,15 @@ test:
bundle exec rubocop
bundle exec foodcritic --version
bundle exec foodcritic . --exclude spec
knife-publish:
# ensure that chef configuration is in place
ls .chef
# list cookbooks
knife cookbook list
# upload the sumologic-collector cookbook
knife cookbook upload --cookbook-path /sumologic sumologic-collector
# list cookbooks
knife cookbook list
# publish the cookbook
knife supermarket share -o /sumologic sumologic-collector
......@@ -23,3 +23,9 @@ curl -L https://www.opscode.com/chef/install.sh | sudo bash
# accepts licenses
chef-solo --chef-license=accept || true
su vagrant -c 'chef-solo --chef-license=accept' || true
# install chef-workstation
curl https://packages.chef.io/files/stable/chef-workstation/21.2.278/ubuntu/20.04/chef-workstation_21.2.278-1_amd64.deb \
-o chef-workstation_21.2.278-1_amd64.deb \
&& dpkg --install chef-workstation_21.2.278-1_amd64.deb \
&& rm chef-workstation_21.2.278-1_amd64.deb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment