Forked from ssudharsan/gist:e5941195f79074e46f3c
Last active
August 29, 2015 14:21
-
-
Save murugan-r/d8dda2c00cb0c81a926a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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