Skip to content

Instantly share code, notes, and snippets.

@irvingpop
Created March 6, 2014 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irvingpop/9395226 to your computer and use it in GitHub Desktop.
Save irvingpop/9395226 to your computer and use it in GitHub Desktop.
knife-opc usage notes
[root@private-chef ~]# gem install knife-opc
Fetching: knife-opc-0.0.1.gem (100%)
Successfully installed knife-opc-0.0.1
1 gem installed
Installing ri documentation for knife-opc-0.0.1...
Installing RDoc documentation for knife-opc-0.0.1...
[root@private-chef ~]# cat .chef/knife.rb
log_level :info
log_location STDOUT
# Run as pivotal user
node_name 'pivotal'
client_key '/etc/opscode/pivotal.pem'
chef_server_url 'https://api.opscode.piab/organizations/ponyville'
chef_server_root 'https://api.opscode.piab/'
[root@private-chef ~]# knife opc org list
ponyville
wonderbolts
[root@private-chef ~]# knife opc org create foobar FooBar
-----BEGIN RSA PRIVATE KEY-----
<snip>
-----END RSA PRIVATE KEY-----
[root@private-chef ~]# knife opc org list
foobar
ponyville
wonderbolts
[root@private-chef ~]# knife opc org delete foobar
Do you want to delete the organization foobar? (Y/N) y
assigned_at: 2014/03/06 17:16:34 +0000
billing_plan: platform-free
chargify_customer_id:
chargify_subscription_id:
clientname: foobar-validator
full_name: FooBar
guid: f03291abf3c445569abe5cc2077a4235
name: foobar
org_type:
[root@private-chef ~]# knife opc org list
ponyville
wonderbolts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment