p.magalhaes
p.magalhaes

Reputation: 8374

Using OpsWorks + Chef

I totally newbie using Chef (I am using OpsWorks). I am trying to use Jenkins Cookbook. (https://github.com/chef-cookbooks/jenkins) to automate Jenkins deploy.

I used the master recipe and already installed Jenkins. How do I automate the other tasks (for example set a SSH Key). Do I need to clone the Jenkins Chef repository and create other recipes (using the resources / providers) to automate these tasks ?

Upvotes: 0

Views: 133

Answers (2)

justMiles
justMiles

Reputation: 573

Yes, you'll need to create custom recipes to provision other resources your Jenkins server might need (such as SSH keys). Instead of forking the Jenkins cookbook and adding recipes, create a wrapper cookbook and provision those extra resources in your wrapper cookbook's recipes.

Upvotes: 0

coderanger
coderanger

Reputation: 54249

Most community cookbooks are not designed for OpsWorks. I wouldn't go so far as to say that OpsWorks is "unsupported" but it is a very different beast from "normal Chef" and as such you'll have to figure out how to adapt things. Generally speaking OpsWorks no longer manages pulling in custom cookbooks for you (it used to be a feature but was removed for unknown reasons) so you'll need to handle vendoring the cookbook and applying it to nodes.

We do not recommend new Chef users start with OpsWorks due to their generally lackluster documentation and limited support resources.

Upvotes: 0

Related Questions