I found that according to a comment in the apt provider, it does not
yet support enforcing versions :(

I guess I'll have to implement it, if I really need it :)

On 20 Mar., 15:32, "Klavs Klavsen" <kl...@enableit.dk> wrote:
> Hi,
>
> I've setup puppet to install apache2 version 2.2.9-7 (which isn't
> available to the client).
>
> Puppet installs apache-2.2.8-1ubuntu0.3.
>
> Isn't it suppose to fail instead, when I've defined a version it can't
> install?
>
> This is my apache2 class:
> class apache2 {
> $packagelist = ["apache2"]
> package { $packagelist:
> ensure => "2.2.9-7",
> ensure => "installed",
>                 }
>
> file { "/etc/apache2/apache2.conf":
> ensure => present,
> owner => "root",
> group => "root",
> mode => 644,
> source => "puppet://puppetmaster.u.net/files/apache2/apache2.conf",
>
>                 }
>
> service { apache2:
> hasrestart => "true",
> hasstatus => "true",
> enable => "true",
> ensure => "running",
> require => Package["apache2"]
>
> }
> }
>
> /klavs
--~--~---------~--~----~------------~-------~--~----~
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