Fix duplicated package for build-essential

When installing nodepool on single_node_ci context, it
gives an error for build-essential duplicated declaration
(nodepool and zuul). Zuul is protecting that with an if !defined
declaration, but nodepool is not doing that.
Enclose all the package list in ensure_packages, to protect
from duplication errors.

Change-Id: Ibfc7af81ff8429d592d7d9fe70b06e1f5be4e77f
This commit is contained in:
Yolanda Robla 2016-06-07 18:02:52 +02:00
parent 3fc6515604
commit 7dd94ddae8
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ class nodepool (
'libxslt-dev',
]
package { $packages:
ensure => present,
}
ensure_packages($packages, {'ensure' => 'present'})
file { '/etc/mysql/conf.d/max_connections.cnf':
ensure => present,