Commit fda546f
committed
Avoid dependency cycles with glibc-langpack-en
By calling stdlib::ensure_packages() in the class itself the resource
gets tied to the class. If other packages also depend on the resource,
you can get dependency cycles.
In particular, candlepin also does this and that causes a dependency
cycle.
By using a class that is included the resource "floats" in the catalog.
We then only ensure the package is installed somewhere before we create
the database.
Link: theforeman/puppet-candlepin@ca77145
Fixes: 768a54e ("Ensure glibc-langpack-en is always installed on EL")1 parent 9881651 commit fda546f
File tree
3 files changed
+17
-7
lines changed- manifests/database
- postgresql
- spec/classes
3 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| 17 | + | |
21 | 18 | | |
22 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
0 commit comments