foreman_puppet 4.0.4 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 745a9b5da4d9e341965da09876aea703a9a9e40f2bfc989f002e1263aa67547b
|
|
4
|
+
data.tar.gz: 2e80676582c1105c5839682d076f2e03ae6240721e46daf04a7c76e0721aafca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a246077d90bf3e91c5963bb603680354ee18c94a0e523067d85683ebd48ee4cd4757e88a8438a456438abd6086a3db88087099e69520bdf79f1213ddddb0b282
|
|
7
|
+
data.tar.gz: 58f460b97fad16c5d4ca45850d58baf059e70fd72b7ab898369c64200bfe5a3dd3b472d3b52dfdc0f2650061c49604e59a6cafec5b97933ad996d9aed9332640
|
data/README.md
CHANGED
|
@@ -37,8 +37,9 @@ You can install it on Foreman 2.5 to prepare for the Foreman update.
|
|
|
37
37
|
|
|
38
38
|
|Foreman version|Plugin version|Notes |
|
|
39
39
|
|---------------|--------------|------------------------------------------|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
40
|
+
| ~> 3.4 | ~> 4.1 | Required |
|
|
41
|
+
| ~> 3.3 | ~> 4.0 | Required |
|
|
42
|
+
| ~> 3.2 | ~> 3.0 | Required |
|
|
42
43
|
| ~> 3.1 | ~> 2.0 | Required |
|
|
43
44
|
| ~> 3.0 | ~> 1.0 | Required |
|
|
44
45
|
| >= 2.5 | ~> 0.1 | Optional; replaces Core features |
|
|
@@ -15,8 +15,8 @@ module ForemanPuppet
|
|
|
15
15
|
before_destroy EnsureNotUsedBy.new(:hosts, :hostgroups)
|
|
16
16
|
has_many :environment_classes, dependent: :destroy, inverse_of: :puppetclass
|
|
17
17
|
has_many :environments, -> { distinct }, through: :environment_classes
|
|
18
|
-
has_many :organizations, -> { distinct.reorder(
|
|
19
|
-
has_many :locations, -> { distinct.reorder(
|
|
18
|
+
has_many :organizations, -> { distinct.reorder(:id) }, through: :environments
|
|
19
|
+
has_many :locations, -> { distinct.reorder(:id) }, through: :environments
|
|
20
20
|
|
|
21
21
|
# rubocop:disable Rails/HasAndBelongsToMany
|
|
22
22
|
has_and_belongs_to_many :operatingsystems
|
|
@@ -72,7 +72,7 @@ module ForemanPuppet
|
|
|
72
72
|
assert_equal 1, host.interfaces.count
|
|
73
73
|
interface = host.interfaces.first
|
|
74
74
|
assert_equal 'Nic::Bond', interface.type
|
|
75
|
-
|
|
75
|
+
assert_same_elements %w[eth0 eth1], interface.attached_to.split(', ')
|
|
76
76
|
assert_equal 'bond0', interface.identifier
|
|
77
77
|
assert interface.primary
|
|
78
78
|
assert interface.provision
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0
|
|
4
|
+
version: 4.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ondřej Ezr
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-12-
|
|
12
|
+
date: 2022-12-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Allow assigning Puppet environments and classes to the Foreman Hosts.
|
|
15
15
|
email:
|