foreman_setup 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4258027ef0bc91310ed4f931a518f4eb45baf73e
|
4
|
+
data.tar.gz: 2b0c3bb905c870fb637abae3606c3d8c633967de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3cdc54fcfc96bdc010dd619c36ae3dabe6a8453a6e3f2a41e5af60794e79a3d4db862e7ab89abf3d80da8437506a32859b447136c40acdd20b33c353d1c89da
|
7
|
+
data.tar.gz: 9736ca2d7201a55a9c8311b8405952450eec92496c94baba69985db80b2d48ddc816696e3fb29faa5a74236baf68695b4b549fb1a14079912608cbd5acbaee5c
|
data/CHANGES.md
CHANGED
@@ -164,7 +164,7 @@ module ForemanSetup
|
|
164
164
|
tmpls.any? || raise("cannot find template for #{@provisioner.host.os}")
|
165
165
|
|
166
166
|
# prefer foreman_bootdisk templates
|
167
|
-
tmpl = tmpls.where(
|
167
|
+
tmpl = tmpls.where("name LIKE '%sboot disk%s'").first || tmpls.first
|
168
168
|
|
169
169
|
tmpl.operatingsystems << @provisioner.host.os unless tmpl.operatingsystems.include? @provisioner.host.os
|
170
170
|
tmpl.save!
|
@@ -65,7 +65,7 @@ module ForemanSetup
|
|
65
65
|
# Ensures our nested hostgroup has as much data as possible
|
66
66
|
def populate_hostgroup
|
67
67
|
return unless hostgroup.present?
|
68
|
-
hostgroup.architecture_id ||=
|
68
|
+
hostgroup.architecture_id ||= architecture.id
|
69
69
|
hostgroup.domain_id ||= domain.id
|
70
70
|
hostgroup.operatingsystem_id ||= operatingsystem.id
|
71
71
|
hostgroup.puppet_ca_proxy_id = smart_proxy.id if smart_proxy.features.include? Feature.find_by_name('Puppet CA')
|