hi, im trying to update the puppet windows agent on my windows server 2008 
r2 node.

i installed puppet-3.2.2 manually. my goal is to update the puppet agent to 
puppet-3.2.3-rc1

i tried that with the following manifest:

*init.pp:*

class base_puppet_agent {
   include base_puppet_agent::install,
           base_puppet_agent::service,
           base_puppet_agent::config
}

*install.pp:*

class base_puppet_agent::install {
   case $::operatingsystem {
      windows : {
         package { 'PuppetWindows':
            name    => 'Puppet',
            ensure   => installed,
            source   => 
'puppet:\\\modules\base_puppet_agent\puppet-3.2.3-rc1.msi',
            provider => windows
         }
      }
      centos, redhat: {
         package { 'puppet':
            ensure => installed,
         }
      }
   }
}

*service.pp:*

class base_puppet_agent::service {
   service { 'puppet':
      ensure     => running,
      enable     => true,
      hasstatus  => true,
      hasrestart => true
   }
}

*config.pp:*

class base_puppet_agent::config {

   case $::operatingsystem {
      windows: {
         #Windows
         file { 'C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf':
            source => "puppet:///modules/base_puppet_agent/puppet_windows.conf",
            notify => Service['puppet'],
            require => Package ['PuppetWindows']
         }
      }
      centos, redhat: {
         #Linux
         file { '/etc/puppet/puppet.conf':
            source => "puppet:///modules/base_puppet_agent/puppet.conf",
            owner => 'root',
            group => 'root',
            mode => '0644',
            notify => Service['puppet'],
            require => Package ['puppet']
         }
      }
   }
}

the puppet run works perfectly. no errors whatsoever. the problem is, that 
it doesn't update to the desired version. it just checks, if a package 
named "puppet" is installed, but ignores the current version.

thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to