cb9682aed3
Avoids a potential duplicate Package resource when both the install and remote modules are used. Change-Id: I9511c1830b967038721e03dcbb4401cc3059648a
44 lines
1.1 KiB
Puppet
44 lines
1.1 KiB
Puppet
# == Class: pacemaker::install
|
|
#
|
|
# Installs needed packages for pacemaker
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*ensure*]
|
|
# (optional) Whether to make sure packages are present or absent
|
|
# Defaults to present
|
|
#
|
|
# === Dependencies
|
|
#
|
|
# None
|
|
#
|
|
# === Authors
|
|
#
|
|
# Crag Wolfe <cwolfe@redhat.com>
|
|
# Jason Guiditta <jguiditt@redhat.com>
|
|
#
|
|
# === Copyright
|
|
#
|
|
# Copyright (C) 2016 Red Hat Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
class pacemaker::install (
|
|
$ensure = present,
|
|
) {
|
|
include ::pacemaker::params
|
|
ensure_resource('package', $::pacemaker::params::package_list, {
|
|
ensure => present
|
|
})
|
|
}
|