Ask Your Question
2

updating puppet with puppet on windows node (msi)

asked 2013-07-04 07:28:11 -0600

cko gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
-1

answered 2013-07-06 12:58:22 -0600

cko gravatar image

the "windows" provider is not able to update packages automatically.

i solved the problem with this solution: (Identifying Packages) http: //docs.puppetlabs.com/windows/writing.html#packagepackage

edit flag offensive delete link more
0

answered 2013-07-05 14:53:48 -0600

GregLarkin gravatar image

Try changing "ensure => installed" to "ensure => latest" in your install.pp and re-run the agent. Please reply with any new messages or diagnostic output.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-07-04 07:28:11 -0600

Seen: 170 times

Last updated: Jul 06 '13