Add zypper package but not for trusty

Since we want to start building opensuse-minimal images, we need to
install zypper. But trusty doesn't have this package, so don't install
it.

Change-Id: Ie1df66bddc39fb624f5e0a7a646dc4ff752b2a21
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-05-24 13:57:31 -04:00
parent 0b1ddfe1e6
commit 89fc332703
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,13 @@ class diskimage_builder (
'yum-utils',
]
# Ubuntu trusty doesn't support zypper today, so skip it.
if ($::lsbdistcodename != 'trusty') {
package { 'zypper':
ensure => present,
}
}
package { $packages:
ensure => present,
}