diff --git a/Gemfile b/Gemfile index 2cfb945..ed878f1 100644 --- a/Gemfile +++ b/Gemfile @@ -9,11 +9,11 @@ gem 'facter' gem 'rspec-puppet' gem 'yard' gem 'puppet-strings', '< 2.0.0' -gem 'rake' gem 'semantic_puppet' gem 'rgen' gem 'public_suffix', '<= 2.0.5' gem 'parallel', '<= 1.13.0' +gem 'rake', '~> 12.3', '>= 12.3.3' # rspec must be v2 for ruby 1.8.7 if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9' diff --git a/manifests/main/install.pp b/manifests/main/install.pp new file mode 100644 index 0000000..dbcbd84 --- /dev/null +++ b/manifests/main/install.pp @@ -0,0 +1,34 @@ +## cd_clamav ::main::install.pp +# Module name: cd_clamav +# Author: Arne Teuke (arne_teuke@ConfDroid.com) +# # License: +# This file is part of cd_clamav. +# +# cd_clamav is used for providing automatic configuration of +# +# Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# @summary Class manage all aspects of installing binaries required for +# cd_clamav +############################################################################### +class cd_clamav::main::install ( + +) inherits cd_clamav::params { + + require cd_clamav::main::yumrepo + + package {$reqpackages: + ensure => $pkg_ensure, + } +} diff --git a/manifests/params.pp b/manifests/params.pp index e08b375..89faad3 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -28,7 +28,7 @@ class cd_clamav::params ( # installation -$reqpackages = '' +$reqpackages = ['clamav','clamd'], $pkg_ensure = 'latest', ) {