- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Re: RE: Chef repository usage...
- Date: Tue, 24 Jul 2012 00:52:26 -0600
Ohai,
On Jul 23, 2012, at 11:56 PM, Torben Knerr wrote:
>
@Bryan: I thought that `rake install` would not only upload all
>
cookbooks but also all the other stuff in the chef repo (databags,
>
roles, environments) via the REST API...?
There are rake tasks that basically call knife to upload things to the Chef
Server, but for the most part, several of the rake tasks are pretty much
considered deprecated by the knife commands that replace them, as Bryan said
we just haven't removed or otherwise done anything with the rake tasks.
rake databag:create[databag]
rake databag:create_item[databag,item]
rake databag:upload[databag]
rake databag:upload_all
Replaced with "knife data bag from file" or "knife data bag from file -a"
(Chef 0.10.10+, via CHEF-1912)
rake default
rake test_cookbook[cookbook]
rake test_cookbooks
Replaced with "knife cookbook test" or "knife cookbook test -a".
rake install
No single replacement, other than the various knife commands.
rake metadata
Replaced with "knife cookbook metadata".
rake new_cookbook
Replaced with "knife cookbook create".
rake role[role_name]
rake roles
Replaced with "knife role from file ROLE1.rb ROLE2.rb ROLE3.rb ...".
rake upload_cookbook[cookbook]
rake upload_cookbooks
Replaced with "knife cookbook upload" or "knife cookbook upload -a".
The `knife-essentials` gem also provides overlapping functionality. As
mentioned, install the gem and check it out and see if you find it useful.
--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman
Archive powered by MHonArc 2.6.16.