thanks for reply and another way to write it. And yes, in result I get two 
files in sources.list.d directory. Is here any way to make it 1? I tried 
something like:

apt::source {
  foo:
    location => [ 'first_location', 'second_location' ]
    ...
}

but it does not work... I know that in my case it actually won't work 
because I have 2 different releases (squeeze/update and squeeze), but in 
general? Maybe everything I can do is just following your advice about 
writing style...

On Tuesday, December 18, 2012 10:41:14 PM UTC+2, windowsrefund wrote:
>
> Generally speaking, you should be managing files in the sources.list.d 
> directory instead of managing lines in a single file.
>
> also (generally speaking), you can
>
>  apt::source {
>    foo:
>     ensure => present;
>   bar:
>     ensure => absent;
> }
>
> The "style guide" frowns upon this syntax but it is far superior due to 
> the manifest's reduced size and cleaner organization.
>

-- 
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/-/9o4SB8wozxAJ.
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.

Reply via email to