As Andrew pointed, that class was introduced in 1.7  to add support for
environments and json attributes; previous versions only support specifying
the runlist when bootstrapping a node. If that is all you need, you can use
the "updateRunlistForGroup" method in the ChefService to configure it.

Take into account that 1.6 only supports Chef <= 10 due to breaker and
structural changes in their api/services, affecting Chef 11 and Hosted
Chef. If you need to use those flavors you should use the 1.7 snapthos as
Andrew suggested (see [1] for the details).

Regarding the dependencies, there are only two (in 1.7) you can use: "chef"
and "enterprisechef" (you'll find the maven coordinates in the docs) The
latter adds user, org, and the specific Enterprise Chef features to the
standard Chef Server API, but you could use the standard one to access an
Enterpise Chef too.

HTH!

I.

[1] https://issues.apache.org/jira/browse/JCLOUDS-377
El 22/11/2013 06:36, "Andrew Phillips" <[email protected]> escribió:

> Frustration galore...I figured out the POM should be as below, but  but
>> but, BootstrapConfig is missing, so the tutorial  at
>> http://jclouds.apache.org/documentation/quickstart/chef/ is way  ahead
>> of its time seems like...
>>
>
> The user guide is indeed "ahead of its time" with respect to the 1.6.x
> release branch - BootstrapConfig is an addition that will be part of 1.7.
> Since the API has seen quite some changes since 1.6.2-incubating, I'd
> recommend you try the 1.7.0-SNAPSHOT if you can. The dependency for that is:
>
> <dependency>
>     <groupId>org.apache.jclouds.api</groupId>
>     <artifactId>chef</artifactId>
>     <version>1.7.0-SNAPSHOT</version>
> </dependency>
>
> You'll need to add the Apache snapshots repo [1] to your POM to get hold
> of that.
>
> If you need to use 1.6.2-incubating, the dependency should be pretty much
> the same:
>
> <dependency>
>     <groupId>org.apache.jclouds.api</groupId>
>     <artifactId>chef</artifactId>
>     <version>1.7.0-SNAPSHOT</version>
> </dependency>
>
> This one is in Maven Central [2]. Try an older version of the Chef guide
> [3] for some sample code.
>
> If you're still running into difficulties, please put your POM, the code
> you're trying to compile, and any errors, into a Gist or Pastie and send
> them to the mailing list.
>
> Obviously, improvement suggestions for the docs are always welcome [4]!
>
> ap
>
> [1] https://github.com/jclouds/jclouds-chef/blob/master/
> project/pom.xml#L59
> [2] http://search.maven.org/#artifactdetails%7Corg.apache.
> jclouds.api%7Cchef%7C1.6.2-incubating%7Cbundle
> [3] https://github.com/jclouds/jclouds-site/blob/
> 61a53cd070ea951c87e0f9f36e7422a083b7d6df/documentation/quickstart/chef.md
> [4] https://wiki.apache.org/jclouds/How%20to%20Contribute%20Documentation
>

Reply via email to