Last active
March 24, 2016 11:47
-
-
Save wok/86934c859bcb07333ec9 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
# Usage | |
# copy this file to a new director e.g. /root/chef | |
# run a single recipe as follows: | |
# ./local_chef.sh -o recipe[myclub::backup] | |
# put the cookbook path in solo.rb file. | |
echo 'cookbook_path ["/opt/aws/opsworks/current/merged-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 -j attributes.json $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment