Skip to content

Commit

Permalink
Enable plugins via yum.conf. Version update. Resolves CERIT-SC#5.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlastimil Holer committed Nov 6, 2014
1 parent adf02da commit a0a480b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 2014-11-06 - Release 0.9.3

Enable yum.conf plugins if disabled.

#### Bugfixes

- Enable yum.conf plugins (if disabled) when we
install plugin via yum::plugin.

## 2014-09-02 - Release 0.9.2

Fix metadata.json
Expand Down
9 changes: 9 additions & 0 deletions manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@
package { $_pkg_name:
ensure => $ensure,
}

if ! defined(Augeas['yum.conf_plugins_enable']) {
augeas { 'yum.conf_plugins_enable':
lens => 'Yum.lns',
incl => '/etc/yum.conf',
context => '/files/etc/yum.conf',
changes => 'set main/plugins 1',
}
}
}
7 changes: 2 additions & 5 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ceritsc-yum",
"version": "0.9.2",
"version": "0.9.3",
"author": "ceritsc",
"summary": "YUM utilities",
"license": "MIT",
Expand Down Expand Up @@ -42,9 +42,6 @@
}
],
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.0.0"
}
{"name":"puppetlabs/stdlib","version_requirement":">= 4.0.0"}
]
}

0 comments on commit a0a480b

Please sign in to comment.