foreman_default_hostgroup 2.0.0 → 2.0.1
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 +8 -8
- data/README.md +1 -1
- data/lib/default_hostgroup_managed_host_patch.rb +6 -3
- data/lib/foreman_default_hostgroup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDQ3MDU3NTRiNDNkNmExNzcxNmJlZDBmMDM3N2NkOWJhZGQxNTExZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWNkODUwM2VmYTk4YWFhYzQ2MDViZWRlZTQyZTNlMWE1ZTA5MDFlNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGIyZWZmN2NmNTZkMDNjZWJhMjViMTk4NWU1MWU3ODUxMzczZmVlODgzNTg1
|
10
|
+
MmExYjU2MzAxMWIwNjViY2MyNGQ3MzVjMWVjNmY3YjQzOTM4MGUwOGViMzk3
|
11
|
+
NjVjZDk2NDQ0MThhZmRiODc4YjQ5NzJiY2EwYWI2ZjJhZTg3Y2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTFkMzZlZTgyMjBkYTJkYmI2Nzk2OTQ4YTlkN2UxMzg4ZjdhZDk3YjZiMmJh
|
14
|
+
OTQ5MTZkYjIwNjIxZGRkZDNiYWUzZjkwY2YxNWE1ZGRhYzIwZjc4ZmIxNzBk
|
15
|
+
ZjBjMzE3ZDRjYzUxMzVkOGFhNGI4NDVmN2QyYjQzOTBkOGE5Y2M=
|
data/README.md
CHANGED
@@ -10,11 +10,14 @@ module DefaultHostgroupManagedHostPatch
|
|
10
10
|
|
11
11
|
module ClassMethods
|
12
12
|
def import_host_and_facts_with_match_hostgroup hostname, facts, certname = nil, proxy_id = nil
|
13
|
-
|
14
|
-
|
13
|
+
host, result = import_host_and_facts_without_match_hostgroup(hostname, facts, certname, proxy_id)
|
14
|
+
|
15
|
+
unless SETTINGS[:default_hostgroup] && SETTINGS[:default_hostgroup][:map]
|
16
|
+
Rails.logger.warn "DefaultHostgroupMatch: Could not load default_hostgroup map from settings, check config."
|
17
|
+
return host, result
|
18
|
+
end
|
15
19
|
|
16
20
|
Rails.logger.debug "DefaultHostgroupMatch: performing Hostgroup match"
|
17
|
-
host, result = import_host_and_facts_without_match_hostgroup(hostname, facts, certname, proxy_id)
|
18
21
|
|
19
22
|
if Setting[:force_hostgroup_match_only_new]
|
20
23
|
# host.new_record? will only test for the early return in the core method, a real host
|