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.

Revisions

  1. murugan-r revised this gist May 21, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,4 @@ echo 'cookbook_path ["/opt/aws/opsworks/current/site-cookbooks"]' > solo.rb
    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
    /opt/aws/opsworks/current/bin/chef-solo -c solo.rb -o cookbook_name::default -j attributes.json --log_level=debug
  2. @ssudharsan ssudharsan revised this gist Jul 1, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # put the cookbook path in solo.rb file.
    cookbook_path ["/opt/aws/opsworks/current/site-cookbooks"] > solo.rb
    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
  3. @ssudharsan ssudharsan created this gist Jun 30, 2014.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # put the cookbook path in solo.rb file.
    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