I also note that the following fails to order as I expect:
class base {
if $hostname == 'apt' {
file { '/etc/apt/apt.conf.d/01proxy':
...
require=> Package['apt-cacher'],
notify => Service['apt-cacher'],
}
...
}
}
node 'apt.example.com' {
include base, aptcacher
}
01proxy is placed in the filesystem before the Package apt-cacher is
installed or the Service apt-cacher started.
On Sat, Aug 20, 2011 at 3:34 PM, Brian Troutwine <[email protected]> wrote:
> I meant to include more material and have inserted it inline below. My
> apologies.
>
> On Sat, Aug 20, 2011 at 3:31 PM, Brian Troutwine <[email protected]>wrote:
>
>> Hello, all.
>>
>> I have a module for apt-cacher and a node definition something like this:
>>
>> class base {
>> file { '/etc/apt/apt.conf.d/01proxy':
>> ...
>> }
>> }
>>
>> node 'apt.example.com' {
>> include base, aptcacher
>>
>> Class['aptcacher'] -> File['/etc/apt/apt.conf.d/01proxy']
>> }
>>
>>
>> I'm attempting, on the apt server, to ensure that the apt proxy is
>> installed _before_ the reference to it being a proxy is made, else I can't
>> install the silly thing. However, this dependency forcing fails and the
>> proxy reference file is _sometimes_ installed before the proxy itself.
>>
>
> Moreover, if I rewrite the dependency as:
>
> Service['apt-cacher'] -> File['/etc/apt/apt.conf.d/01proxy']
>
>
> there is no change.
>
>
>> Why?
>>
>> --
>> Brian L. Troutwine
>>
>>
>
>
> --
> Brian L. Troutwine
>
>
--
Brian L. Troutwine
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.