Defined Type: yum::protect
- Defined in:
- manifests/protect.pp
Overview
Mark certain packages as protected.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'manifests/protect.pp', line 12
define yum::protect (
Array[String, 1] $packages = [$title],
) {
if ! defined(Class['::yum']) {
fail('You must include the yum base class before using any yum defined resources')
}
file { "${::yum::protected_dir}/${title}.conf":
ensure => file,
owner => 0,
group => 0,
mode => '0644',
content => "${join($packages, "\n")}\n",
}
}
|