Skip to content

Instantly share code, notes, and snippets.

@murugan-r
Forked from ssudharsan/gist:e5941195f79074e46f3c
Last active August 29, 2015 14:21
Show Gist options
  • Save murugan-r/d8dda2c00cb0c81a926a to your computer and use it in GitHub Desktop.
Save murugan-r/d8dda2c00cb0c81a926a to your computer and use it in GitHub Desktop.
# put the cookbook path in solo.rb file.
echo 'cookbook_path ["/opt/aws/opsworks/current/site-cookbooks"]' > solo.rb
# create json file incase if you want use the attributes from opsworks.
opsworks-agent-cli get_json > attributes.json
#run chef-solo
/opt/aws/opsworks/current/bin/chef-solo -c solo.rb -o cookbook_name::default -j attributes.json --log_level=debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment