- From: Dmitry V'yal <
>
- To:
- Subject: [chef] Re: Re: changing the repository in SCM resource
- Date: Sun, 12 Sep 2010 14:29:08 +0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=if/68KWeOr3ubzBOmTTD14pWhxrhfvtsjIIH5oRaI39lygdjqnSl2RcXMEGc6OqXRr Y34GnLb4GMpWmpRtbGM676Dxv0LDMdtU12eP9HPW+TaVWGWiJYxr6Mzutm7jt8idVEH6 x7au13d7LGW8BMwmN4zkaBH6KCr+Raa6I5eEQ=
On 08.09.2010 20:55, Gilles Devaux wrote:
Yo,
How did you update the attributes? If you used 'default' then chef
will not change a node's attribute if it's already there:
http://wiki.opscode.com/display/chef/Attributes
--Gilles
well, by attributes I mean atributes of the scm resource, like here:
scm tool do
destination "#{node[:tools][:prefix]}/#{tool}"
repository "#{node[:tools][:repo]}/#{tool}"
action :sync
provider "git"
end
looks like chef doesn't make sure the git remote of a cloned repo
matches the repository attribute provided. Is it a feature?
On Wed, Sep 8, 2010 at 12:29 AM, Dmitry
V'yal<
>
wrote:
Hello,
I have a following question. I deployed a bunch of scripts from several git
repositories using an SCM resource to a number of workstations. Now I need
to move some of repositories. I updated the repository attribute of my
resources to point to new locations, but chef-0.9.6 seems to ignore the
changes and tries to sync using old uri.
One solution is to delete the deployed repositories and run chef-client to
deploy them afresh. I sure there must be a better way. Folks?
Thanks in advance,
Dmitry
Archive powered by MHonArc 2.6.16.