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 +8 -8
- data/app/lib/staypuft/network_query.rb +7 -1
- data/app/lib/staypuft/seeder.rb +7 -3
- data/lib/staypuft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjUyOTYwYjliZjgzY2EwMDBkMTQ2OGVjNzVjMDI5OGNlNzU4YTM1NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmRlZDMyNDIzNjhjZjdkYmY2OTEwZTFlMGNlOTc0ZWM1MmM3YzI3Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjI3ZTA5ZTEzNmFjMDUxNTdmNGVkNmNkYmVkODBmYzRjZmU2ODRkMzU1NThl
|
10
|
+
ZmExNDliZGNjYTBjOTBhNTEwZTNmYjA2NzJjNTY2ODc3YWFhMWY5ZGYzODcw
|
11
|
+
MDcyMzZhZmVlNWU1NWMxNTA3NGYwMzNiMjA5MmEzODViMDcxMWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
data/app/lib/staypuft/seeder.rb
CHANGED
@@ -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.
|
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::
|
460
|
-
'lb_backend_server_names' => { :array => '<%= @host.deployment.network_query.
|
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' => {
|
data/lib/staypuft/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman-tasks
|