Ensure that every package's latest version is installed

refs #6842
This commit is contained in:
Alexander Klimov 2014-11-24 14:42:07 +01:00
parent 64445ae887
commit 30ee6c9411
11 changed files with 17 additions and 19 deletions

View File

@ -24,7 +24,7 @@ class apache {
}
package { $apache:
ensure => installed,
ensure => latest,
alias => 'apache',
}

View File

@ -8,6 +8,6 @@
#
class gcc {
package { 'gcc':
ensure => installed,
ensure => latest,
}
}

View File

@ -8,6 +8,6 @@
#
class git {
package { 'git':
ensure => installed,
ensure => latest,
}
}

View File

@ -3,7 +3,7 @@ class monitoring_plugins {
# nagios plugins from epel
package { 'nagios-plugins-all':
ensure => installed,
ensure => latest,
require => Class['epel']
}
}

View File

@ -16,11 +16,10 @@ class mysql {
Exec { path => '/usr/bin' }
package {
'mysql':
ensure => installed;
'mysql-server':
ensure => installed;
package { [
'mysql', 'mysql-server'
]:
ensure => latest,
}
service { 'mysqld':

View File

@ -15,7 +15,7 @@
class openldap {
package { ['openldap-servers', 'openldap-clients']:
ensure => installed
ensure => latest,
}
service { 'slapd':

View File

@ -21,7 +21,7 @@ class pear {
include php
package { 'php-pear':
ensure => installed,
ensure => latest,
require => Class['php']
}

View File

@ -17,11 +17,10 @@ class pgsql {
Exec { path => '/sbin:/bin:/usr/bin' }
package {
'postgresql':
ensure => installed;
'postgresql-server':
ensure => installed;
package { [
'postgresql', 'postgresql-server'
]:
ensure => latest,
}
exec { 'initdb':

View File

@ -19,7 +19,7 @@ class php {
include apache
package { 'php':
ensure => installed,
ensure => latest,
require => Package['apache'],
notify => Service['apache']
}

View File

@ -8,6 +8,6 @@
#
class tar {
package { 'tar':
ensure => installed,
ensure => latest,
}
}

View File

@ -15,6 +15,6 @@
class wget {
package { 'wget':
ensure => installed,
ensure => latest,
}
}