kytoon 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ * Fri Apr 26 2013 Dan Prince <dprince@redhat.com> - 1.3.6
2
+ -Set hostname domain to .local in /etc/hosts. This fixes
3
+ fqdn warnings with some config management tools.
4
+
1
5
  * Wed Mar 13 2013 Dan Prince <dprince@redhat.com> - 1.3.5
2
6
  -Add remote_exec retry for libvirt_provider (fixes issue where
3
7
  initial ssh command fails)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.5
1
+ 1.3.6
@@ -168,7 +168,7 @@ class ServerGroup
168
168
 
169
169
  instance_ip = create_instance(sg.id, server['hostname'], server['memory'], server['original'], server['original_xml'], disk_path, server['create_cow'], server['selinux_enabled'], ssh_public_key, sudo)
170
170
  server['ip_address'] = instance_ip
171
- hosts_file_data += "#{instance_ip}\t#{server['hostname']}\n"
171
+ hosts_file_data += "#{instance_ip}\t#{server['hostname']}\t#{server['hostname']}.local\n"
172
172
  sg.cache_to_disk
173
173
  end
174
174
 
@@ -205,7 +205,7 @@ chmod 600 .ssh/authorized_keys
205
205
  cat > /etc/hosts <<-EOF_CAT
206
206
  #{hosts_file_data}
207
207
  EOF_CAT
208
- hostname "#{server['hostname']}"
208
+ hostname "#{server['hostname']}.local"
209
209
  if [ -f /etc/sysconfig/network ]; then
210
210
  sed -e "s|^HOSTNAME.*|HOSTNAME=#{server['hostname']}|" -i /etc/sysconfig/network
211
211
  fi
@@ -178,7 +178,7 @@ class ServerGroup
178
178
  server['ip_address'] = server_ip
179
179
  end
180
180
  sg.cache_to_disk
181
- hosts_file_data += "#{server_ip}\t#{server['hostname']}\n"
181
+ hosts_file_data += "#{server_ip}\t#{server['hostname']}\t#{server['hostname']}.local\n"
182
182
  end
183
183
  end
184
184
  rescue Timeout::Error => te
@@ -218,7 +218,7 @@ chmod 600 .ssh/authorized_keys
218
218
  cat > /etc/hosts <<-EOF_CAT
219
219
  #{hosts_file_data}
220
220
  EOF_CAT
221
- hostname "#{server['hostname']}"
221
+ hostname "#{server['hostname']}.local"
222
222
  if [ -f /etc/sysconfig/network ]; then
223
223
  sed -e "s|^HOSTNAME.*|HOSTNAME=#{server['hostname']}|" -i /etc/sysconfig/network
224
224
  fi
@@ -237,7 +237,7 @@ fi
237
237
 
238
238
  hosts_file_data = "127.0.0.1\tlocalhost localhost.localdomain\n"
239
239
  sg.servers.each do |server|
240
- hosts_file_data += "#{server['ip_address']}\t#{server['hostname']}\n"
240
+ hosts_file_data += "#{server['ip_address']}\t#{server['hostname']}\t#{server['hostname']}.local\n"
241
241
  end
242
242
 
243
243
  Kytoon::Util.remote_exec(%{
@@ -373,7 +373,7 @@ echo 1 > /proc/sys/net/ipv4/ip_forward
373
373
  sleep 1
374
374
  done
375
375
  ssh #{hostname} bash <<-EOF_SSH_BASH
376
- hostname #{hostname}
376
+ hostname #{hostname}.local
377
377
  EOF_SSH_BASH
378
378
  scp /etc/hosts #{hostname}:/etc/hosts
379
379
  }, gw_ip) do |ok, out|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kytoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-13 00:00:00.000000000 Z
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -289,7 +289,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
289
  version: '0'
290
290
  segments:
291
291
  - 0
292
- hash: 2293031051392450227
292
+ hash: 2902312835877875808
293
293
  required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  none: false
295
295
  requirements: