Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper recipe to
do a few things. However, even though I have the windows cookbook as a
dependency in my metadata.rb I get a NoMethodError when I run chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' forChef::Recipe “deploy”'
zip} to #{release_dir}" do
62: code <<-EOF
63: ‘C:\Program Files\7-zip\7z.exe’ x -o#{release_dir}
#{download_dir}/#{release_zip}
64: EOF
65: #not_if {::File.exists?('c:/bin/P

More detailed info here )including the whole chef run, my metadata.rb etc):

I even tried replacing windows_batch with powershell (and adding to the
metadata.rb etc etc) but I get a similar NoMethodError :

Running handlers complete
[2014-07-15T16:44:52+00:00] ERROR: Exception handlers complete
[2014-07-15T16:44:52+00:00] FATAL: Stacktrace dumped to
C:/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 18.233801 seconds
[2014-07-15T16:44:52+00:00] FATAL: NoMethodError: undefined method `new’ for
Powershell:Module

Has anyone seen this before? Am I missing something obvious? Is this a known
issue? I’m happy to fule a bug report but I thought I’d sanity check before I
do…

[This is on Chef 11.12.8-2 on Windows 2012r2 x86_64]

Thanks in advance for any help.

Cheers,

Andrew

You may want to add

include_recipe ‘windows’

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper recipe to do a few things. However, even though I have the windows cookbook as a dependency in my metadata.rb I get a NoMethodError when I run chef-client on the server.

The error is :

NoMethodError

No resource or method named windows_batch' forChef::Recipe “deploy”’

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha <
Kapil.Shardha@simulationiq.com> wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper recipe
to do a few things. However, even though I have the windows cookbook as a
dependency in my metadata.rb I get a NoMethodError when I run chef-client
on the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe "deploy"'

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] On Behalf Of Andrew Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though…

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.commailto:adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguruhttp://twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha <Kapil.Shardha@simulationiq.commailto:Kapil.Shardha@simulationiq.com> wrote:
You may want to add

include_recipe ‘windows’

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.commailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper recipe to do a few things. However, even though I have the windows cookbook as a dependency in my metadata.rb I get a NoMethodError when I run chef-client on the server.

The error is :

NoMethodError

No resource or method named windows_batch' forChef::Recipe “deploy”’

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge. In fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha <
Kapil.Shardha@simulationiq.com> wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] *On Behalf Of *Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha <
Kapil.Shardha@simulationiq.com> wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper recipe
to do a few things. However, even though I have the windows cookbook as a
dependency in my metadata.rb I get a NoMethodError when I run chef-client
on the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe "deploy"'

The root cause of all this is that Stove 3.1.0 had a defect wherein it
failed to upload LWRP resources.

We will re-release the powershell & windows cookbooks today using Stove 3.2.0.

  • Julian

On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge. In fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper recipe
to do a few things. However, even though I have the windows cookbook as a
dependency in my metadata.rb I get a NoMethodError when I run chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe "deploy"'

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

Thanks Julian - I'll watch for the release :slight_smile:

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:18 AM, Julian C. Dunn jdunn@aquezada.com wrote:

The root cause of all this is that Stove 3.1.0 had a defect wherein it
failed to upload LWRP resources.

Fix a bug where the resources/ folder was not being uploaded · chef-boneyard/stove@9d7b5b6 · GitHub

We will re-release the powershell & windows cookbooks today using Stove
3.2.0.

  • Julian

On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge. In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper
recipe
to do a few things. However, even though I have the windows cookbook as
a
dependency in my metadata.rb I get a NoMethodError when I run
chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe "deploy"'

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/

  • Julian

On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

Thanks Julian - I'll watch for the release :slight_smile:

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:18 AM, Julian C. Dunn jdunn@aquezada.com wrote:

The root cause of all this is that Stove 3.1.0 had a defect wherein it
failed to upload LWRP resources.

Fix a bug where the resources/ folder was not being uploaded · chef-boneyard/stove@9d7b5b6 · GitHub

We will re-release the powershell & windows cookbooks today using Stove
3.2.0.

  • Julian

On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge. In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally
a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper
recipe
to do a few things. However, even though I have the windows cookbook as
a
dependency in my metadata.rb I get a NoMethodError when I run
chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe "deploy"'

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

Hi Julian,

Weirdly for the windows 1.32.1 cookbook the resources directory is not
coming down :

$ ls -l ~/.berkshelf/cookbooks/windows-1.32.1/
total 72
-rw-r--r--+ 1 adh staff 9366 Jul 15 11:48 CHANGELOG.md
-rw-r--r--+ 1 adh staff 26112 Jul 15 11:48 README.md
drwxr-xr-x+ 3 adh staff 102 Jul 15 11:48 attributes
drwxr-xr-x+ 3 adh staff 102 Jul 15 11:48 files
drwxr-xr-x+ 11 adh staff 374 Jul 15 11:48 libraries
-rw-r--r--+ 1 adh staff 27405 Jul 15 11:48 metadata.json
-rw-r--r--+ 1 adh staff 368 Jul 15 11:48 metadata.rb
drwxr-xr-x+ 17 adh staff 578 Jul 15 11:48 providers
drwxr-xr-x+ 4 adh staff 136 Jul 15 11:48 recipes

I see it in the tagged github repo but it's not pulled down as 1.32.1 when
pulled in via berkshelf.

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:39 AM, Julian C. Dunn jdunn@aquezada.com wrote:

New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/

  • Julian

On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

Thanks Julian - I'll watch for the release :slight_smile:

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:18 AM, Julian C. Dunn jdunn@aquezada.com
wrote:

The root cause of all this is that Stove 3.1.0 had a defect wherein it
failed to upload LWRP resources.

Fix a bug where the resources/ folder was not being uploaded · chef-boneyard/stove@9d7b5b6 · GitHub

We will re-release the powershell & windows cookbooks today using Stove
3.2.0.

  • Julian

On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge. In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried).
Additionally
a
similar thing happens with the powershell cookbook so I don't think
it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper
recipe
to do a few things. However, even though I have the windows cookbook
as
a
dependency in my metadata.rb I get a NoMethodError when I run
chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe
"deploy"'

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

I apologize, we're still having some serious problems with Stove. I've
re-released 'windows' the old way, using "knife cookbook site share",
and validated the tarball is correct.

  • Julian

On Tue, Jul 15, 2014 at 3:46 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

Hi Julian,

Weirdly for the windows 1.32.1 cookbook the resources directory is not
coming down :

$ ls -l ~/.berkshelf/cookbooks/windows-1.32.1/
total 72
-rw-r--r--+ 1 adh staff 9366 Jul 15 11:48 CHANGELOG.md
-rw-r--r--+ 1 adh staff 26112 Jul 15 11:48 README.md
drwxr-xr-x+ 3 adh staff 102 Jul 15 11:48 attributes
drwxr-xr-x+ 3 adh staff 102 Jul 15 11:48 files
drwxr-xr-x+ 11 adh staff 374 Jul 15 11:48 libraries
-rw-r--r--+ 1 adh staff 27405 Jul 15 11:48 metadata.json
-rw-r--r--+ 1 adh staff 368 Jul 15 11:48 metadata.rb
drwxr-xr-x+ 17 adh staff 578 Jul 15 11:48 providers
drwxr-xr-x+ 4 adh staff 136 Jul 15 11:48 recipes

I see it in the tagged github repo but it's not pulled down as 1.32.1 when
pulled in via berkshelf.

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:39 AM, Julian C. Dunn jdunn@aquezada.com wrote:

New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/

  • Julian

On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

Thanks Julian - I'll watch for the release :slight_smile:

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:18 AM, Julian C. Dunn jdunn@aquezada.com
wrote:

The root cause of all this is that Stove 3.1.0 had a defect wherein it
failed to upload LWRP resources.

Fix a bug where the resources/ folder was not being uploaded · chef-boneyard/stove@9d7b5b6 · GitHub

We will re-release the powershell & windows cookbooks today using Stove
3.2.0.

  • Julian

On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
adh@techopsguru.com wrote:

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge.
In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried).
Additionally
a
similar thing happens with the powershell cookbook so I don't think
it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org [mailto:adh@inkswirl.org] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a wrapper
recipe
to do a few things. However, even though I have the windows cookbook
as
a
dependency in my metadata.rb I get a NoMethodError when I run
chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe
"deploy"'

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

No problems, thanks Julian... I'd got around it temporarily by git cloning,
changing the tag to 1.32.1 and pointing Berkshelf at the local directory
before uploading to my chef server. I'll correct that tomorrow....

Cheers,

adh

On Tuesday, July 15, 2014, Julian C. Dunn jdunn@aquezada.com wrote:

I apologize, we're still having some serious problems with Stove. I've
re-released 'windows' the old way, using "knife cookbook site share",
and validated the tarball is correct.

  • Julian

On Tue, Jul 15, 2014 at 3:46 PM, Andrew Hollingsworth
<adh@techopsguru.com <javascript:;>> wrote:

Hi Julian,

Weirdly for the windows 1.32.1 cookbook the resources directory is not
coming down :

$ ls -l ~/.berkshelf/cookbooks/windows-1.32.1/
total 72
-rw-r--r--+ 1 adh staff 9366 Jul 15 11:48 CHANGELOG.md
-rw-r--r--+ 1 adh staff 26112 Jul 15 11:48 README.md
drwxr-xr-x+ 3 adh staff 102 Jul 15 11:48 attributes
drwxr-xr-x+ 3 adh staff 102 Jul 15 11:48 files
drwxr-xr-x+ 11 adh staff 374 Jul 15 11:48 libraries
-rw-r--r--+ 1 adh staff 27405 Jul 15 11:48 metadata.json
-rw-r--r--+ 1 adh staff 368 Jul 15 11:48 metadata.rb
drwxr-xr-x+ 17 adh staff 578 Jul 15 11:48 providers
drwxr-xr-x+ 4 adh staff 136 Jul 15 11:48 recipes

I see it in the tagged github repo but it's not pulled down as 1.32.1
when
pulled in via berkshelf.

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com <javascript:;>

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:39 AM, Julian C. Dunn <jdunn@aquezada.com
<javascript:;>> wrote:

New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/

  • Julian

On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth
<adh@techopsguru.com <javascript:;>> wrote:

Thanks Julian - I'll watch for the release :slight_smile:

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com <javascript:;>

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:18 AM, Julian C. Dunn <jdunn@aquezada.com
<javascript:;>>
wrote:

The root cause of all this is that Stove 3.1.0 had a defect wherein
it
failed to upload LWRP resources.

Fix a bug where the resources/ folder was not being uploaded · chef-boneyard/stove@9d7b5b6 · GitHub

We will re-release the powershell & windows cookbooks today using
Stove
3.2.0.

  • Julian

On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
<adh@techopsguru.com <javascript:;>> wrote:

HI Kapil,

Yes indeed it is... And it's picked up by the chef-client converge.
In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried).
Additionally
a
similar thing happens with the powershell cookbook so I don't think
it's
cookbook specific, more platform specific maybe...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com <javascript:;>

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:04 AM, Kapil Shardha
<Kapil.Shardha@simulationiq.com <javascript:;>> wrote:

Is windows cookbook added to the runlist for this node?

-Kapil

From: adh@inkswirl.org <javascript:;> [mailto:adh@inkswirl.org
<javascript:;>] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com <javascript:;>
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook

Hi Kapil.

Already there :slight_smile: Thanks though...

Cheers,

adh

Andrew Hollingsworth
adh@techopsguru.com <javascript:;>

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru

On Tue, Jul 15, 2014 at 11:00 AM, Kapil Shardha
<Kapil.Shardha@simulationiq.com <javascript:;>> wrote:

You may want to add

include_recipe 'windows'

in your recipe.

-Kapil

-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com
<javascript:;>]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com <javascript:;>
Subject: [chef] Windows NoMethodError - winows cookbook

Hi all,

I have a client running on Windows (in EC2) that requires a
wrapper
recipe
to do a few things. However, even though I have the windows
cookbook
as
a
dependency in my metadata.rb I get a NoMethodError when I run
chef-client on
the server.

The error is :

NoMethodError

No resource or method named windows_batch' for Chef::Recipe
"deploy"'

--
[ Julian C. Dunn <jdunn@aquezada.com <javascript:;>> *
Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
[ Julian C. Dunn <jdunn@aquezada.com <javascript:;>> * Sorry,
I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
[ Julian C. Dunn <jdunn@aquezada.com <javascript:;>> * Sorry,
I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

--
adh

Andrew Hollingsworth
adh@techopsguru.com

Website : http://www.techopsguru.com
Twitter : twitter.com/techopsguru