Update libxslt package name for Xenial

Change-Id: If65865c5d895559f48db325b65f3e72445ef9d4b
This commit is contained in:
Colleen Murphy 2018-06-22 21:26:35 +02:00
parent 7cd8a2d4a3
commit 80e86753b3
1 changed files with 10 additions and 1 deletions

View File

@ -79,11 +79,20 @@ class nodepool (
'libgmp-dev', # transitive dep of paramiko
# xml2 and xslt are needed to build python lxml.
'libxml2-dev',
'libxslt-dev',
]
ensure_packages($packages, {'ensure' => 'present'})
if versioncmp($::operatingsystemrelease, '16.04') >= 0 {
$libxslt_dev = 'libxslt1-dev'
} else {
$libxslt_dev = 'libxslt-dev'
}
package { 'libxslt-dev':
name => $libxslt_dev,
ensure => present,
}
$absent_packages = [
'python-openssl',
]