On 26 December 2012 03:23, Andrey Ageyev <a.age...@gmail.com> wrote:
> Fixed by removing dependency File[$sources_list_d] in apt/manifests/ppa.pp
> around line 33:
>
> require   => [
>     File[$sources_list_d],
>     Package["${package}"],
> ],
>
> to
> require   => Package["${package}"],
>

If you want to do this without changing the module (which will make
future updates easier) then you can just specify that resource in your
manifests:

    file { '/etc/apt/sources.list.d':
        ensure => directory,
    }

I'm not sure why the module has a dependency on something that it
doesn't manage though, I tend to try and avoid doing that if possible.

G

>
> среда, 26 декабря 2012 г., 4:22:35 UTC+2 пользователь Andrey Ageyev написал:
>>
>> Greetings,
>>
>> I'm trying to add ppa:nginx/stable repo for Ubuntu 12.04.1 LTS.
>> Server: puppetmaster-common 3.0.1-1puppetlabs1
>> Agent: puppet  2.7.11
>>
>> And when I try to apply manifest - getting:
>> puppet agent -t
>> info: Caching catalog for wproxy71.tpnt.net
>> err: Failed to apply catalog: Could not find dependency
>> File[/etc/apt/sources.list.d] for
>> Exec[add-apt-repository-ppa:openstack-ppa/bleeding-edge] at
>> /etc/puppet/modules/apt/manifests/ppa.pp:38
>>
>> The folder - /etc/apt/sources.list.d exists.
>> Does anybody know what's can be wrong?
>>
>> Thanks,
>> Andrey.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/CEgiBNLSA6cJ.
>
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.



--
Gareth Rushgrove
@garethr

devopsweekly.com
morethanseven.net
garethrushgrove.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to