[chef] Re: Re: Re: Re: Re: Re: ark resource


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: ark resource
  • Date: Mon, 20 Aug 2012 21:57:36 +0200

use :put  and that should fix your problem

ark "maven" do
   url  '...'
   version '...'
   prefix_home  "/home/#{ENV['user']}/buildtools"
   action :put
end

On Mon, Aug 20, 2012 at 9:49 PM, Maven User < " target="_blank"> > wrote:
I've got that as:

  owner "#{ENV['USER']}"

still no love.

Also with the default - it ignores "path" entirely and puts stuff in /usr/local...

ark "maven" do
  url "http://mirror.cc.columbia.edu/pub/software/apache/maven/binaries/apache-maven-3.0.4-bin.tar.gz"
  version "3.0.4"
  checksum 'd35a876034c08cb7e20ea2fbcf168bcad4dff5801abad82d48055517513faa2f'
  path "#{ENV['HOME']}/buildtools/maven"
  home_dir "#{ENV['HOME']}/buildtools/maven/maven"
  append_env_path false
  owner "#{ENV['USER']}"
end
...

[2012-08-20T15:47:08-04:00] DEBUG: path is /usr/local/maven-3.0.4

??






On Mon, Aug 20, 2012 at 3:43 PM, Mike < " target="_blank"> > wrote:
I think this is your line:
https://github.com/opscode-cookbooks/ark/blob/master/libraries/resource_ark.rb#L37

Try setting:

    owner ENV['USER']

in your ark resource.

On Mon, Aug 20, 2012 at 3:37 PM, Maven User < " target="_blank"> > wrote:
> Getting closer -
>
> [2012-08-20T15:34:50-04:00] ERROR: ark[maven]
> (/home/<user>/chef-repo/cookbooks/maven/recipes/default.rb:11:in
> `from_file') had an error:
> ark[maven] (maven::default line 11) had an error: Errno::EPERM: Operation
> not permitted - /home/<user>/buildtools/maven/maven-3.0.4/maven
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1331:in
> `chown'
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1331:in
> `chown'
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1062:in
> `block (2 levels) in chown_R'
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1433:in
> `preorder_traverse'
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1060:in
> `block in chown_R'
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1059:in
> `each'
> /home/<user>/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:1059:in
> `chown_R'
> /home/<user>/chef-repo/cookbooks/ark/libraries/provider_ark.rb:170:in
> `action_set_owner'
> /home/<user>/chef-repo/cookbooks/ark/libraries/provider_ark.rb:137:in
> `action_put'
>
> Closer - but it seems like :put is trying to change the ownership - not sure
> why tho.  Is there a way to skip that?  All I see is a value to set it to,
> but don't even want that to run...





Archive powered by MHonArc 2.6.16.

§