Skip to content

Commit db98b7a

Browse files
authored
Merge pull request #148 from igalic/fix/resource-direct
instantiate yumrepo & yum::config directly
2 parents 7342a49 + abe142a commit db98b7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manifests/init.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133

134134
$normalized_repos.each |$yumrepo, $attributes| {
135135
if member($_managed_repos_minus_exclusions, $yumrepo) {
136-
Resource['yumrepo'] {
137-
$yumrepo: * => $attributes,
136+
yumrepo { $yumrepo:
137+
* => $attributes,
138138
}
139139
# Handle GPG Key
140140
if ('gpgkey' in $attributes) {
@@ -183,8 +183,8 @@
183183
}
184184

185185
$_normalized_config_options.each |$config, $attributes| {
186-
Resource['yum::config'] {
187-
$config: * => $attributes,
186+
yum::config { $config:
187+
* => $attributes,
188188
}
189189
}
190190
}

0 commit comments

Comments
 (0)