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: 62d4ab95fa1d22a7b0c4d3f97ac525bda2193e00
4
- data.tar.gz: 2d6e3245a2e4f617a1106a26a5f18795c83234fe
3
+ metadata.gz: 4258027ef0bc91310ed4f931a518f4eb45baf73e
4
+ data.tar.gz: 2b0c3bb905c870fb637abae3606c3d8c633967de
5
5
  SHA512:
6
- metadata.gz: 45599df23b8b022ed4337be6b44e2f820534c90be21b34d21e4897c71cbb5099afd4b8cd78b95b9ae32b423d845236d1d460d8b55b13eb18c00f404311cfb0e6
7
- data.tar.gz: 28c8f1471d69fc2848c785ddf36665a1ffae2f97cbf757c1825db67a5b57829fc2c159e80be334ef7f633bee0c205fdb5d6db115067c208765d833aca440c850
6
+ metadata.gz: c3cdc54fcfc96bdc010dd619c36ae3dabe6a8453a6e3f2a41e5af60794e79a3d4db862e7ab89abf3d80da8437506a32859b447136c40acdd20b33c353d1c89da
7
+ data.tar.gz: 9736ca2d7201a55a9c8311b8405952450eec92496c94baba69985db80b2d48ddc816696e3fb29faa5a74236baf68695b4b549fb1a14079912608cbd5acbaee5c
data/CHANGES.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.1
4
+ * fix architecture assignment in host group
5
+ * fix template search under PostgreSQL
6
+
3
7
  ## v1.0.0
4
8
  * initial release
@@ -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('name LIKE "boot disk"').first || tmpls.first
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 ||= domain.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')
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal