staypuft 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDcwZDhkOTZjODlhNzg5N2NmZTQ1ZTY0N2VjNzNkMWQ1YzZmNWExMQ==
4
+ ZjUyOTYwYjliZjgzY2EwMDBkMTQ2OGVjNzVjMDI5OGNlNzU4YTM1NQ==
5
5
  data.tar.gz: !binary |-
6
- ZDI0Y2YxOWY1ZjA2OGNhNTQ0MGZkYWJkNWMzNzU4NGFlZWI3NzA5Nw==
6
+ NmRlZDMyNDIzNjhjZjdkYmY2OTEwZTFlMGNlOTc0ZWM1MmM3YzI3Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2NhYmRkNjQzZGVlYmQwMDUyZDljMjc4Y2I2MjRlNjhlNWViMDU0OThiMGMx
10
- YjM4ZTc1ZjE5MWZiMzQzMmNjOTQ1ZGVlNjc2NWJhMmJkYmU2MTcxZDMzOGQ5
11
- OTgwZjdhNzQ2NmE4NWYwMzAyZDQ3MjU2YWQ1MjMwNDUyNmEwNzU=
9
+ YjI3ZTA5ZTEzNmFjMDUxNTdmNGVkNmNkYmVkODBmYzRjZmU2ODRkMzU1NThl
10
+ ZmExNDliZGNjYTBjOTBhNTEwZTNmYjA2NzJjNTY2ODc3YWFhMWY5ZGYzODcw
11
+ MDcyMzZhZmVlNWU1NWMxNTA3NGYwMzNiMjA5MmEzODViMDcxMWM=
12
12
  data.tar.gz: !binary |-
13
- NDU4MDlkZTcwODEzY2JjNGJkYTlhMDBlYmI2Y2Y1OGQ5NDRiMDUwZmI5MDQ1
14
- YTYyZmU5M2RiZWI2NGVjZWEyMjc3Mjg5NDk0NzA3NzliZjhiYmUwZWViMjJl
15
- NDFkNTQ4ODMyMzgwMmIxY2I2ZWQyMTIyMDA4OTc1ZWNlMThmNDc=
13
+ MDhmNmQxNGU4ZTA2ODlkYTIxZWIxYzVhNWQ2OWIwMzNlNGVkY2JmOTg0MWRm
14
+ YzZiN2Q0NmMzYmZhZWJhNWFjMDFlNDU3NzY4MjIxZTZjMTZiM2U3N2Y0ODll
15
+ MmMyMDY4NWNhMmU4OTFlMjcxNzQzNDJlZjI3N2I2ZjQwYmI0ZGY=
@@ -95,6 +95,12 @@ module Staypuft
95
95
  controllers.map &:shortname
96
96
  end
97
97
 
98
+ def controller_lb_backend_shortnames
99
+ controllers.map do |controller|
100
+ "lb-backend-"+controller.shortname
101
+ end
102
+ end
103
+
98
104
  def controller_pcmk_shortnames
99
105
  controllers.map do |controller|
100
106
  "pcmk-"+controller.shortname
@@ -112,7 +118,7 @@ module Staypuft
112
118
  allow :ip_for_host, :interface_for_host, :network_address_for_host,
113
119
  :controller_ip, :controller_ips, :controller_fqdns, :get_vip, :controller_pcmk_shortnames,
114
120
  :subnet_for_host, :gateway_subnet, :gateway_interface, :gateway_interface_mac,
115
- :tenant_subnet?, :mtu_for_tenant_subnet
121
+ :tenant_subnet?, :mtu_for_tenant_subnet, :controller_lb_backend_shortnames
116
122
  end
117
123
 
118
124
  private
@@ -355,7 +355,8 @@ module Staypuft
355
355
  neutron_metadata_proxy_secret = { :string => '<%= @host.deployment.passwords.neutron_metadata_proxy_secret %>' }
356
356
 
357
357
 
358
- private_ip = { :string => "<%= @host.deployment.network_query.ip_for_host('#{Staypuft::SubnetType::MANAGEMENT}', @host) %>" }
358
+ private_ip = { :string => "<%= @host.network_query.ip_for_host('#{Staypuft::SubnetType::MANAGEMENT}') %>" }
359
+ pcmk_ip = { :string => "<%= @host.network_query.ip_for_host('#{Staypuft::SubnetType::CLUSTER_MGMT}') %>" }
359
360
  # private API/management
360
361
  amqp_host = get_host_format :amqp_vip, Staypuft::SubnetType::MANAGEMENT
361
362
  mysql_host = get_host_format :db_vip, Staypuft::SubnetType::MANAGEMENT
@@ -455,9 +456,12 @@ module Staypuft
455
456
  'amqp_vip' => vip_format(:amqp_vip),
456
457
  'swift_public_vip' => vip_format(:swift_public_vip),
457
458
  'private_ip' => private_ip,
459
+ 'pcmk_ip' => pcmk_ip,
458
460
  'cluster_control_ip' => { :string => "<%= @host.deployment.network_query.controller_ips('#{Staypuft::SubnetType::MANAGEMENT}').first %>" },
459
- 'lb_backend_server_addrs' => { :array => "<%= @host.deployment.network_query.controller_ips('#{Staypuft::SubnetType::CLUSTER_MGMT}') %>" },
460
- 'lb_backend_server_names' => { :array => '<%= @host.deployment.network_query.controller_pcmk_shortnames %>' },
461
+ 'lb_backend_server_addrs' => { :array => "<%= @host.deployment.network_query.controller_ips('#{Staypuft::SubnetType::MANAGEMENT}') %>" },
462
+ 'lb_backend_server_names' => { :array => '<%= @host.deployment.network_query.controller_lb_backend_shortnames %>' },
463
+ 'pcmk_server_addrs' => { :array => "<%= @host.deployment.network_query.controller_ips('#{Staypuft::SubnetType::CLUSTER_MGMT}') %>" },
464
+ 'pcmk_server_names' => { :array => '<%= @host.deployment.network_query.controller_pcmk_shortnames %>' },
461
465
  'agent_type' => neutron_agent_type,
462
466
  'n1kv_plugin_additional_params' => n1kv_plugin_additional_params },
463
467
  'quickstack::pacemaker::common' => {
@@ -1,3 +1,3 @@
1
1
  module Staypuft
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staypuft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Staypuft team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks