On Centos 6.3, I have attempted to upgrade to php 5.4 using the following: yumrepo { "epel-repo": baseurl => "http://download.fedoraproject.org/pub/epel/6/\$basearch", descr => "Epel Repo", enabled => 1, gpgcheck => 0, } yumrepo { "remi-repo": baseurl => "http://rpms.famillecollet.com/enterprise/6/remi/\$basearch/", descr => "remi repo", enabled => 1, gpgcheck => 0, require => Yumrepo["epel-repo"], } package { 'php': ensure => latest, require => [ Yumrepo["remi-repo"] ], }
This actually works fine, but *only* if I apply the manifest *twice*. It seems that the first time it runs, the Remi repo has not been installed, so Puppet decides that the Package php statement ensure => latest is in fact up-to-date, so it does not actually try to update php. (php 5.3.3 is installed from the default repository; Remi makes php 5.4 available.) On the second run, Remi is installed, and Puppet correctly notices that php needs to be updated. Is there any way I can get the php package rule to update php on the first run? -- 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/-/oHjxcqEowX4J. 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.