[chef] Powershell Provider


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Powershell Provider
  • Date: Thu, 21 Jun 2012 16:14:45 -0700 (PDT)

I'm running Chef 10.12.0 on Windows 2008 R2.  Using the powershell cookbook
1.0.6 I get a failure complaining about umask being an undefined method.   Any
guidance is appreciated.


[2012-06-21T16:10:54-07:00] INFO: Processing powershell[DiskPart] action run
(AN::DiskPart line /chef/cache/cookbooks/AN/recipes/DiskPart.rb)
[2012-06-21T16:10:54-07:00] ERROR: powershell[DiskPart] (AN::DiskPart line
/chef/cache/cookbooks/AN/recipes/DiskPart.rb) has had an error
[2012-06-21T16:10:54-07:00] ERROR: powershell[DiskPart]
(c:/chef/cache/cookbooks/AN/recipes/DiskPart.rb:21:in `from_file') had an
error:powershell[DiskPart] (AN::DiskPart line
/chef/cache/cookbooks/AN/recipes/DiskPart.rb) had an error: NoMethodError:
undefined method `umask' for Chef::Resource::Powershell
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:148:in
`method_missing'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/provider/execute.rb:51:in
`action_run'
c:/chef/cache/cookbooks/powershell/libraries/core.rb:68:in `action_run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:454:in
`run_action'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:49:in
`run_action'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
`block (2 levels) in converge'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
`each'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
`block in converge'


  • [chef] Powershell Provider, bryan.johnson, 06/21/2012

Archive powered by MHonArc 2.6.16.

§