Add commands to the base module to update/upgrade Debian/Ubuntu systems
Change-Id: Ifb182e0429fe985bdc0182252f6803979cae8ff1
This commit is contained in:
@@ -11,6 +11,20 @@ class base {
|
||||
$editors = ['joe', $vim]
|
||||
$vcs = ['git']
|
||||
|
||||
case $operatingsystem {
|
||||
/Debian|Ubuntu/: {
|
||||
exec { "apt-get update":
|
||||
command => "/usr/bin/apt-get update",
|
||||
before => Exec["apt-get upgrade"],
|
||||
}
|
||||
|
||||
exec { "apt-get upgrade":
|
||||
command => "/usr/bin/apt-get upgrade -y",
|
||||
require => Exec["apt-get update"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
package { $editors:
|
||||
ensure => latest
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user