staypuft 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,12 +94,16 @@ module Staypuft
94
94
  end
95
95
 
96
96
  unless unassigned_hosts.empty?
97
- flash[:warning] = 'Unassigned hosts: ' + unassigned_hosts.map(&:name_was).join(', ')
98
- Rails.logger.warn(
99
- "Unassigned hosts: \n" +
100
- unassigned_hosts.
97
+ unassigned_messages = 'Unassigned hosts: <ul>' + unassigned_hosts.
98
+ map { |h| format '<li>%s <ul>%s</ul></li>', h.name_was, h.errors.full_messages.map {|msg|
99
+ "<li>#{msg}</li>"}.join}.
100
+ join + '</ul>'
101
+
102
+ flash[:error] = unassigned_messages
103
+ Rails.logger.warn('Unassigned hosts:\n' + unassigned_hosts.
101
104
  map { |h| format '%s (%s)', h.name_was, h.errors.full_messages.join(',') }.
102
- join("\n"))
105
+ join("\n")
106
+ )
103
107
  end
104
108
 
105
109
  redirect_to deployment_path(deployment)
@@ -169,8 +169,7 @@ module Staypuft
169
169
  module Platform
170
170
  RHEL7 = 'rhel7'
171
171
  RHEL6 = 'rhel6'
172
- LABELS = { RHEL7 => N_('Red Hat Enterprise Linux OpenStack Platform 5 with RHEL 7'),
173
- RHEL6 => N_('Red Hat Enterprise Linux OpenStack Platform 5 with RHEL 6') }
172
+ LABELS = { RHEL7 => N_('Red Hat Enterprise Linux OpenStack Platform 5 with RHEL 7')}
174
173
  TYPES = LABELS.keys
175
174
  HUMAN = N_('Platform')
176
175
  end
@@ -1,3 +1,3 @@
1
1
  module Staypuft
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staypuft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Staypuft team
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
12
+ date: 2014-07-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: foreman-tasks
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: dynflow
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,20 +46,23 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: wicked
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: foreman_discovery
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -73,106 +82,106 @@ executables: []
73
82
  extensions: []
74
83
  extra_rdoc_files: []
75
84
  files:
76
- - app/overrides/hide_subscription_manager_passwords.rb
77
85
  - app/overrides/customize_foreman_tasks_show_page.rb
86
+ - app/overrides/hide_subscription_manager_passwords.rb
78
87
  - app/helpers/staypuft/application_helper.rb
79
88
  - app/helpers/staypuft/deployments_helper.rb
80
- - app/assets/javascripts/staypuft/staypuft.js
81
- - app/assets/stylesheets/staypuft/foreman_helper.scss
82
- - app/assets/stylesheets/staypuft/staypuft.css.scss
83
- - app/assets/stylesheets/staypuft/bootstrap_and_overrides.css.scss
89
+ - app/models/setting/staypuft_provisioning.rb
84
90
  - app/models/staypuft/service.rb
91
+ - app/models/staypuft/deployment/vlan_range_values_validator.rb
92
+ - app/models/staypuft/deployment/glance_service.rb
93
+ - app/models/staypuft/deployment/nova_service.rb
94
+ - app/models/staypuft/deployment/attribute_param_storage.rb
95
+ - app/models/staypuft/deployment/vips.rb
96
+ - app/models/staypuft/deployment/cinder_service.rb
97
+ - app/models/staypuft/deployment/passwords.rb
98
+ - app/models/staypuft/deployment/ips.rb
99
+ - app/models/staypuft/deployment/neutron_service.rb
100
+ - app/models/staypuft/deployment/abstract_param_scope.rb
85
101
  - app/models/staypuft/role_class.rb
102
+ - app/models/staypuft/service_class.rb
103
+ - app/models/staypuft/layout.rb
86
104
  - app/models/staypuft/deployment.rb
87
- - app/models/staypuft/role_service.rb
88
105
  - app/models/staypuft/deployment_role_hostgroup.rb
89
- - app/models/staypuft/layout.rb
90
- - app/models/staypuft/service_class.rb
106
+ - app/models/staypuft/layout_role.rb
107
+ - app/models/staypuft/service/ui_params.rb
108
+ - app/models/staypuft/concerns/puppetclass_extensions.rb
109
+ - app/models/staypuft/concerns/host_open_stack_affiliation.rb
91
110
  - app/models/staypuft/concerns/host_orchestration_build_hook.rb
92
111
  - app/models/staypuft/concerns/hostgroup_extensions.rb
93
- - app/models/staypuft/concerns/host_open_stack_affiliation.rb
94
112
  - app/models/staypuft/concerns/lookup_key_extensions.rb
95
- - app/models/staypuft/concerns/puppetclass_extensions.rb
96
113
  - app/models/staypuft/concerns/environment_extensions.rb
97
- - app/models/staypuft/layout_role.rb
98
- - app/models/staypuft/service/ui_params.rb
114
+ - app/models/staypuft/role_service.rb
99
115
  - app/models/staypuft/role.rb
100
- - app/models/staypuft/deployment/passwords.rb
101
- - app/models/staypuft/deployment/glance_service.rb
102
- - app/models/staypuft/deployment/vlan_range_values_validator.rb
103
- - app/models/staypuft/deployment/attribute_param_storage.rb
104
- - app/models/staypuft/deployment/abstract_param_scope.rb
105
- - app/models/staypuft/deployment/cinder_service.rb
106
- - app/models/staypuft/deployment/vips.rb
107
- - app/models/staypuft/deployment/ips.rb
108
- - app/models/staypuft/deployment/neutron_service.rb
109
- - app/models/staypuft/deployment/nova_service.rb
110
- - app/models/setting/staypuft_provisioning.rb
111
- - app/lib/staypuft/deployment_param_importer.rb
112
- - app/lib/staypuft/exception.rb
113
- - app/lib/staypuft/seeder.rb
114
- - app/lib/staypuft/deployment_param_exporter.rb
115
- - app/lib/actions/staypuft/middleware/as_current_user.rb
116
- - app/lib/actions/staypuft/hostgroup/deploy.rb
117
- - app/lib/actions/staypuft/hostgroup/ordered_deploy.rb
118
- - app/lib/actions/staypuft/host/deploy.rb
119
- - app/lib/actions/staypuft/host/build.rb
120
- - app/lib/actions/staypuft/host/wait_until_host_ready.rb
121
- - app/lib/actions/staypuft/host/puppet_run.rb
122
- - app/lib/actions/staypuft/host/create.rb
123
- - app/lib/actions/staypuft/host/wait_until_installed.rb
124
- - app/lib/actions/staypuft/deployment/deploy.rb
125
- - app/lib/actions/staypuft/deployment/populate.rb
126
- - app/controllers/staypuft/steps_controller.rb
127
- - app/controllers/staypuft/deployments_controller.rb
128
- - app/controllers/staypuft/application_controller.rb
129
- - app/views/staypuft/deployments/_deployment_access_all_details_dialogue.html.erb
130
- - app/views/staypuft/deployments/_deployment_progress_page_header.html.erb
131
- - app/views/staypuft/deployments/index.html.erb
132
- - app/views/staypuft/deployments/_assigned_hosts_table.html.erb
133
- - app/views/staypuft/deployments/_deployment_summary.html.erb
134
- - app/views/staypuft/deployments/_deployment_progress_bar.html.erb
135
- - app/views/staypuft/deployments/show.html.erb
136
- - app/views/staypuft/deployments/edit.html.erb
137
- - app/views/staypuft/deployments/_deployed_hosts_table.html.erb
138
- - app/views/staypuft/deployments/_import_form.html.erb
139
- - app/views/staypuft/deployments/_free_hosts_table.html.erb
140
- - app/views/staypuft/deployments/summary.html.erb
141
- - app/views/staypuft/layouts/staypuft.html.erb
142
- - app/views/staypuft/layouts/application.html.erb
143
- - app/views/staypuft/steps/_nova_ha.html.erb
116
+ - app/assets/stylesheets/staypuft/foreman_helper.scss
117
+ - app/assets/stylesheets/staypuft/bootstrap_and_overrides.css.scss
118
+ - app/assets/stylesheets/staypuft/staypuft.css.scss
119
+ - app/assets/javascripts/staypuft/staypuft.js
144
120
  - app/views/staypuft/steps/services_overview.html.erb
145
- - app/views/staypuft/steps/_neutron.html.erb
146
- - app/views/staypuft/steps/_wizard_form_buttons.html.erb
147
- - app/views/staypuft/steps/deployment_settings.html.erb
148
121
  - app/views/staypuft/steps/_neutron_ha.html.erb
149
- - app/views/staypuft/steps/_neutron_non_ha.html.erb
150
- - app/views/staypuft/steps/_nova.html.erb
151
122
  - app/views/staypuft/steps/_title.html.erb
123
+ - app/views/staypuft/steps/_neutron.html.erb
152
124
  - app/views/staypuft/steps/_glance.html.erb
125
+ - app/views/staypuft/steps/deployment_settings.html.erb
126
+ - app/views/staypuft/steps/_neutron_non_ha.html.erb
153
127
  - app/views/staypuft/steps/services_configuration.html.erb
128
+ - app/views/staypuft/steps/_nova.html.erb
129
+ - app/views/staypuft/steps/_nova_ha.html.erb
130
+ - app/views/staypuft/steps/_wizard_form_buttons.html.erb
154
131
  - app/views/staypuft/steps/_nova_non_ha.html.erb
155
132
  - app/views/staypuft/steps/_cinder.html.erb
156
- - config/staypuft.local.rb
133
+ - app/views/staypuft/layouts/staypuft.html.erb
134
+ - app/views/staypuft/layouts/application.html.erb
135
+ - app/views/staypuft/deployments/show.html.erb
136
+ - app/views/staypuft/deployments/_free_hosts_table.html.erb
137
+ - app/views/staypuft/deployments/_deployment_access_all_details_dialogue.html.erb
138
+ - app/views/staypuft/deployments/_deployed_hosts_table.html.erb
139
+ - app/views/staypuft/deployments/edit.html.erb
140
+ - app/views/staypuft/deployments/_deployment_progress_bar.html.erb
141
+ - app/views/staypuft/deployments/index.html.erb
142
+ - app/views/staypuft/deployments/_deployment_progress_page_header.html.erb
143
+ - app/views/staypuft/deployments/_import_form.html.erb
144
+ - app/views/staypuft/deployments/_assigned_hosts_table.html.erb
145
+ - app/views/staypuft/deployments/_deployment_summary.html.erb
146
+ - app/views/staypuft/deployments/summary.html.erb
147
+ - app/controllers/staypuft/application_controller.rb
148
+ - app/controllers/staypuft/steps_controller.rb
149
+ - app/controllers/staypuft/deployments_controller.rb
150
+ - app/lib/staypuft/deployment_param_exporter.rb
151
+ - app/lib/staypuft/exception.rb
152
+ - app/lib/staypuft/seeder.rb
153
+ - app/lib/staypuft/deployment_param_importer.rb
154
+ - app/lib/actions/staypuft/deployment/populate.rb
155
+ - app/lib/actions/staypuft/deployment/deploy.rb
156
+ - app/lib/actions/staypuft/hostgroup/deploy.rb
157
+ - app/lib/actions/staypuft/hostgroup/ordered_deploy.rb
158
+ - app/lib/actions/staypuft/middleware/as_current_user.rb
159
+ - app/lib/actions/staypuft/host/wait_until_installed.rb
160
+ - app/lib/actions/staypuft/host/wait_until_host_ready.rb
161
+ - app/lib/actions/staypuft/host/build.rb
162
+ - app/lib/actions/staypuft/host/deploy.rb
163
+ - app/lib/actions/staypuft/host/puppet_run.rb
164
+ - app/lib/actions/staypuft/host/create.rb
157
165
  - config/routes.rb
158
- - db/migrate/20140312050615_create_staypuft_role_classes.rb
159
- - db/migrate/20140309021811_create_staypuft_layouts.rb
160
- - db/migrate/20140310203855_create_staypuft_role_services.rb
166
+ - config/staypuft.local.rb
161
167
  - db/migrate/20140310023613_create_staypuft_roles.rb
162
- - db/migrate/20140623142500_remove_amqp_provider_from_staypuft_deployment.rb
163
- - db/migrate/20140325211410_add_role_to_staypuft_deployment_role_hostgroup.rb
164
168
  - db/migrate/20140326032027_drop_staypuft_hostgroup_roles.rb
165
- - db/migrate/20140602121501_add_amqp_provider_to_staypuft_deployment.rb
166
- - db/migrate/20140310194221_create_staypuft_services.rb
167
- - db/migrate/20140312050001_create_staypuft_hostgroup_roles.rb
168
- - db/migrate/20140310174152_create_staypuft_layout_roles.rb
169
- - db/migrate/20140318163222_add_deploy_order_to_staypuft_layout_role.rb
170
- - db/migrate/20140507103716_add_form_step_to_staypuft_deployment.rb
171
- - db/migrate/20140513124807_change_column_default_form_step_on_staypuft_deployment.rb
172
169
  - db/migrate/20140315031754_add_networking_to_staypuft_layout.rb
173
- - db/migrate/20140312051144_create_staypuft_service_classes.rb
170
+ - db/migrate/20140623142500_remove_amqp_provider_from_staypuft_deployment.rb
171
+ - db/migrate/20140507103716_add_form_step_to_staypuft_deployment.rb
174
172
  - db/migrate/20140312044533_create_staypuft_deployment_role_hostgroups.rb
173
+ - db/migrate/20140310203855_create_staypuft_role_services.rb
174
+ - db/migrate/20140312051144_create_staypuft_service_classes.rb
175
+ - db/migrate/20140312050001_create_staypuft_hostgroup_roles.rb
176
+ - db/migrate/20140513124807_change_column_default_form_step_on_staypuft_deployment.rb
177
+ - db/migrate/20140309021811_create_staypuft_layouts.rb
175
178
  - db/migrate/20140310004533_create_staypuft_deployments.rb
179
+ - db/migrate/20140325211410_add_role_to_staypuft_deployment_role_hostgroup.rb
180
+ - db/migrate/20140310194221_create_staypuft_services.rb
181
+ - db/migrate/20140318163222_add_deploy_order_to_staypuft_layout_role.rb
182
+ - db/migrate/20140310174152_create_staypuft_layout_roles.rb
183
+ - db/migrate/20140602121501_add_amqp_provider_to_staypuft_deployment.rb
184
+ - db/migrate/20140312050615_create_staypuft_role_classes.rb
176
185
  - db/seeds.rb
177
186
  - lib/staypuft/engine.rb
178
187
  - lib/staypuft/version.rb
@@ -181,40 +190,41 @@ files:
181
190
  - LICENSE
182
191
  - Rakefile
183
192
  - README.md
184
- - test/test_helper.rb
185
- - test/staypuft_test.rb
186
- - test/unit/staypuft_test.rb
187
- - test/integration/navigation_test.rb
188
193
  - test/factories/staypuft_factories.rb
194
+ - test/unit/staypuft_test.rb
195
+ - test/staypuft_test.rb
189
196
  - test/test_plugin_helper.rb
197
+ - test/test_helper.rb
198
+ - test/integration/navigation_test.rb
190
199
  homepage: https://github.com/theforeman/staypuft
191
200
  licenses:
192
201
  - GPL-3.0+
193
- metadata: {}
194
202
  post_install_message:
195
203
  rdoc_options: []
196
204
  require_paths:
197
205
  - lib
198
206
  required_ruby_version: !ruby/object:Gem::Requirement
207
+ none: false
199
208
  requirements:
200
- - - '>='
209
+ - - ! '>='
201
210
  - !ruby/object:Gem::Version
202
211
  version: '0'
203
212
  required_rubygems_version: !ruby/object:Gem::Requirement
213
+ none: false
204
214
  requirements:
205
- - - '>='
215
+ - - ! '>='
206
216
  - !ruby/object:Gem::Version
207
217
  version: '0'
208
218
  requirements: []
209
219
  rubyforge_project:
210
- rubygems_version: 2.0.3
220
+ rubygems_version: 1.8.23.2
211
221
  signing_key:
212
- specification_version: 4
222
+ specification_version: 3
213
223
  summary: OpenStack Foreman Installer
214
224
  test_files:
215
- - test/test_helper.rb
216
- - test/staypuft_test.rb
217
- - test/unit/staypuft_test.rb
218
- - test/integration/navigation_test.rb
219
225
  - test/factories/staypuft_factories.rb
226
+ - test/unit/staypuft_test.rb
227
+ - test/staypuft_test.rb
220
228
  - test/test_plugin_helper.rb
229
+ - test/test_helper.rb
230
+ - test/integration/navigation_test.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 1f8df208eb5200dba56f1125b82683f9d55b0d98
4
- data.tar.gz: 6dcddccd7c5f65f0daadc4e293aa78535bfab64b
5
- SHA512:
6
- metadata.gz: 76a2e80b52e9fafaf3bba0fdb1f11e3058a110d0750890c0ad035048db07292f012e81ee63fa2dc8b773a6f1624b1f6af34f62974bf7c6b8c004095edcb8efd3
7
- data.tar.gz: 4410509ecf432d80667f13b312597af3de86504bcd9b136a7b8b7d7c5cc47fd19510b403c5f8994f5ca13353d245f9f9c1af606c0f18c30f3432a6444757a9c7