NetDocuments-Archive / ad-join-cookbook

Chef cookbook to join windows computer to AD
Apache License 2.0
14 stars 12 forks source link

new to CHEF #11

Closed jmurbach closed 8 years ago

jmurbach commented 8 years ago

Im testing out some simple CHEF cookbooks pushing to a test node to join my domain. When running the script it runs all then stops here.

[2016-03-10T19:12:32+00:00] INFO: * Chef 12.8.1 * [2016-03-10T19:12:32+00:00] INFO: Chef-client pid: 3724 [2016-03-10T19:13:03+00:00] INFO: Setting the run_list to ["recipe[ad-join]"] from CLI options [2016-03-10T19:13:03+00:00] INFO: Run List is [recipe[ad-join]] [2016-03-10T19:13:03+00:00] INFO: Run List expands to [ad-join] [2016-03-10T19:13:03+00:00] INFO: Starting Chef Run for cheftest [2016-03-10T19:13:03+00:00] INFO: Running start handlers [2016-03-10T19:13:03+00:00] INFO: Start handlers complete. [2016-03-10T19:13:04+00:00] INFO: Loading cookbooks [ad-join@4.8.0, windows@1.39.2, chef_handler@1.3.0] [2016-03-10T19:13:04+00:00] INFO: Storing updated cookbooks/ad-join/resources/domain_join.rb in the cache. DL is deprecated, please use Fiddle

[2016-03-10T19:13:05+00:00] INFO: Chef Run complete in 1.5312525 seconds [2016-03-10T19:13:05+00:00] INFO: Running report handlers [2016-03-10T19:13:05+00:00] INFO: Report handlers complete

Do you have any step by step for beginners in the DevOps for this, as this would be very important cookbook I'd love to use moving forward to assist with automation of servers joining my domain.

The only file we should be editing is the domain_join.rb as well in the resources folder correct?

spuder commented 8 years ago

As you start with chef, you will find that there are 2 ways to use cookbooks.

This is a library cookbook in that it isn't intended to be used directly. Instead it gives you a resource called 'domain_join' that you can include in your wrapper cookbook.

I'm on mobile at the moment as I'm out of town, so I'm limited in the examples I can give.

The basic usage would be this:

spuder commented 8 years ago

Closing the issue. Reopen if you have more questions.