staypuft 0.5.16 → 0.5.17

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: 74a5862bd668b6f98ac0a65f485cf5ae57ce4897
4
- data.tar.gz: e7c7a890e4c73c74722626a4c0d0e90d9ab56332
3
+ metadata.gz: a2e91c90ca8e9b70669cbb9a5fe75be55fbbf977
4
+ data.tar.gz: c823eea5c150ddd9044c4d4a549a0883e3ed583a
5
5
  SHA512:
6
- metadata.gz: 633895bb0b6737544b067b7dbbfc7d248e2e5fe14a49efcbfaec36aa39fb54c3282aa652f14fd4c4efb6452ba726254c3986a52b5f253a2906ab524af63b0fc1
7
- data.tar.gz: 626fae057c887bd398b803cfd521228dd9fae377823904ec1063c1b1dda86f4c88f9f9d39e7b38683443dbb396f67146492777f71875bbffc4589838e02ec754
6
+ metadata.gz: 43a3e7557a2978915e8462b8bcf21f70967cba8f8ef40f49714e8852ee127370ff45c631444ba3fab8792482245df07ef7001e6e0816767ca6cb994387c6a416
7
+ data.tar.gz: 0ffbd027d808222eaf87b49d66adca6b6b6562f29e792f5cbe93a72b631f43a83a9a808a9b38f7485e0c9465ccf21cab80de24d639c98d50ad9ed9343556bab4
@@ -221,61 +221,6 @@ $('.neutron_ml2_mechanisms').parent().parent().removeClass('col-md-6').addClass(
221
221
  }
222
222
  }
223
223
 
224
- showCinderNetApp();
225
- // trigger function whenever NetApp checkmark is changed
226
- $("#staypuft_deployment_cinder_backend_netapp").change(showCinderNetApp);
227
-
228
- /**
229
- * Shows NetApp configuration options if it is selected as a backend
230
- */
231
- function showCinderNetApp() {
232
- if ($('#staypuft_deployment_cinder_backend_netapp').is(":checked")) {
233
- $('.cinder_netapp').show();
234
- if($('#netapps').children().length == 0) {
235
- $('.add_another_netapp').click();
236
- }
237
- }
238
- else {
239
- $('.cinder_netapp').hide();
240
- }
241
- }
242
-
243
- /**
244
- * The user first selects their NetApp storage family and protocol
245
- * and then relevant options are presented to them.
246
- */
247
- function showHideNetAppOptions(){
248
- $('#netapps').children().each(function(){
249
- var family = $(this).find('.netapp-main select[name*=storage_family]').val()
250
- var protocol = $(this).find('.netapp-main select[name*=storage_protocol]').val()
251
-
252
- // Hide all NetApp options
253
- $(this).find('.netapp-option').hide();
254
- $(this).find('.netapp-main select[name*=storage_protocol]').removeAttr("disabled");
255
-
256
- // Selectively show options based on storage family & protocol
257
- if (family == 'eseries'){
258
- protocol = 'iscsi';
259
- $(this).find('.netapp-main select[name*=storage_protocol]').val(protocol).attr('disabled', 'disabled');
260
- $(this).find('.netapp-eseries').show();
261
- }
262
-
263
- if (protocol == 'nfs'){
264
- $(this).find('.netapp-nfs').show();
265
- }
266
-
267
- if (protocol == 'iscsi' && family == 'ontap_7mode'){
268
- $(this).find('.netapp-7mode-iscsi').show();
269
- }
270
-
271
- if (family == 'ontap_cluster'){
272
- $(this).find('.netapp-vserver').show();
273
- }
274
-
275
- })
276
-
277
- }
278
-
279
224
  showNeutronMl2CiscoNexus();
280
225
  $("#staypuft_deployment_neutron_ml2_cisco_nexus").change(showNeutronMl2CiscoNexus);
281
226
  function showNeutronMl2CiscoNexus() {
@@ -468,25 +413,6 @@ $('.neutron_ml2_mechanisms').parent().parent().removeClass('col-md-6').addClass(
468
413
  }
469
414
  })
470
415
 
471
- /**
472
- * Adds another NetApp storage system configuration section
473
- */
474
- $("button.add_another_netapp").live("click", function() {
475
- var netapp_form = function () {
476
- return $('#netapp_form_template').text().replace(/NEW_RECORD/g, new Date().getTime());
477
- }
478
- $('#netapps').append(netapp_form());
479
- if($('#netapps').children().length > 1) {
480
- var added_form_span = $('#netapps').children().last().find('h5').find('.server_number');
481
- var previous_span_number = $('#netapps').children().eq(-2).find('h5').find('.server_number');
482
- added_form_span.html(parseInt(previous_span_number.html(), 10) + 1);
483
- }
484
-
485
- // Unbind existing handlers & add event handlers to all NetApp config sections
486
- $(".netapp-main select[name*=storage_family]").unbind().change(showHideNetAppOptions);
487
- $(".netapp-main select[name*=storage_protocol]").unbind().change(showHideNetAppOptions);
488
- })
489
-
490
416
  $("button.add_another_switch").live("click", function() {
491
417
  var nexus_form = function() {
492
418
  return $('#nexus_form_template').text().replace(/NEW_RECORD/g, new Date().getTime());
@@ -311,23 +311,6 @@ module Staypuft
311
311
  cinder_eqlx_chap_login = { :array => '<%= @host.deployment.cinder.compute_eqlx_chap_logins %>' }
312
312
  cinder_eqlx_chap_password = { :array => '<%= @host.deployment.cinder.compute_eqlx_chap_passwords %>' }
313
313
 
314
- cinder_backend_netapp = { :string => '<%= @host.deployment.cinder.netapp_backend? %>' }
315
- cinder_netapp_hostname = { :array => '<%= @host.deployment.cinder.compute_netapp_hostnames %>' }
316
- cinder_netapp_login = { :array => '<%= @host.deployment.cinder.compute_netapp_logins %>' }
317
- cinder_netapp_password = { :array => '<%= @host.deployment.cinder.compute_netapp_passwords %>' }
318
- cinder_netapp_server_port = { :array => '<%= @host.deployment.cinder.compute_netapp_server_ports %>' }
319
- cinder_netapp_storage_family = { :array => '<%= @host.deployment.cinder.compute_netapp_storage_families %>' }
320
- cinder_netapp_transport_type = { :array => '<%= @host.deployment.cinder.compute_netapp_transport_types %>' }
321
- cinder_netapp_storage_protocol = { :array => '<%= @host.deployment.cinder.compute_netapp_storage_protocols %>' }
322
- cinder_netapp_nfs_shares = { :array => '<%= @host.deployment.cinder.compute_netapp_nfs_shares %>' }
323
- cinder_netapp_nfs_shares_config = { :array => '<%= @host.deployment.cinder.compute_netapp_nfs_shares_configs %>' }
324
- cinder_netapp_volume_list = { :array => '<%= @host.deployment.cinder.compute_netapp_volume_lists %>' }
325
- cinder_netapp_vfiler = { :array => '<%= @host.deployment.cinder.compute_netapp_vfilers %>' }
326
- cinder_netapp_vserver = { :array => '<%= @host.deployment.cinder.compute_netapp_vservers %>' }
327
- cinder_netapp_controller_ips = { :array => '<%= @host.deployment.cinder.compute_netapp_controller_ips %>' }
328
- cinder_netapp_sa_password = { :array => '<%= @host.deployment.cinder.compute_netapp_sa_passwords %>' }
329
- cinder_netapp_storage_pools = { :array => '<%= @host.deployment.cinder.compute_netapp_storage_pools %>' }
330
-
331
314
  # Keystone
332
315
  keystonerc = 'true'
333
316
 
@@ -544,7 +527,6 @@ module Staypuft
544
527
  'rbd_user' => cinder_rbd_user,
545
528
  'rbd_secret_uuid' => cinder_rbd_secret_uuid,
546
529
  'backend_eqlx' => cinder_backend_eqlx,
547
- 'backend_netapp' => cinder_backend_netapp,
548
530
  'san_ip' => cinder_san_ip,
549
531
  'san_login' => cinder_san_login,
550
532
  'san_password' => cinder_san_password,
@@ -553,22 +535,7 @@ module Staypuft
553
535
  'eqlx_pool' => cinder_eqlx_pool,
554
536
  'eqlx_use_chap' => cinder_eqlx_use_chap,
555
537
  'eqlx_chap_login' => cinder_eqlx_chap_login,
556
- 'eqlx_chap_password' => cinder_eqlx_chap_password,
557
- 'netapp_hostname' => cinder_netapp_hostname,
558
- 'netapp_login' => cinder_netapp_login,
559
- 'netapp_password' => cinder_netapp_password,
560
- 'netapp_server_port' => cinder_netapp_server_port,
561
- 'netapp_storage_family' => cinder_netapp_storage_family,
562
- 'netapp_transport_type' => cinder_netapp_transport_type,
563
- 'netapp_storage_protocol' => cinder_netapp_storage_protocol,
564
- 'netapp_nfs_shares' => cinder_netapp_nfs_shares,
565
- 'netapp_nfs_shares_config' => cinder_netapp_nfs_shares_config,
566
- 'netapp_volume_list' => cinder_netapp_volume_list,
567
- 'netapp_vfiler' => cinder_netapp_vfiler,
568
- 'netapp_vserver' => cinder_netapp_vserver,
569
- 'netapp_controller_ips' => cinder_netapp_controller_ips,
570
- 'netapp_sa_password' => cinder_netapp_sa_password,
571
- 'netapp_storage_pools' => cinder_netapp_storage_pools },
538
+ 'eqlx_chap_password' => cinder_eqlx_chap_password },
572
539
  'quickstack::pacemaker::keystone' => {
573
540
  'keystonerc' => keystonerc,
574
541
  'admin_password' => admin_pw,
@@ -5,12 +5,11 @@ module Staypuft
5
5
  'cinder'
6
6
  end
7
7
 
8
- BACKEND_TYPE_PARAMS = :backend_eqlx, :backend_nfs, :backend_lvm, :backend_ceph, :backend_netapp
8
+ BACKEND_TYPE_PARAMS = :backend_eqlx, :backend_nfs, :backend_lvm, :backend_ceph
9
9
  BACKEND_PARAMS = :nfs_uri, :rbd_secret_uuid
10
10
 
11
11
  param_attr *BACKEND_TYPE_PARAMS, *BACKEND_PARAMS
12
12
  param_attr_array :eqlxs => Equallogic
13
- param_attr_array :netapps => Netapp
14
13
 
15
14
  after_save :set_lvm_ptable
16
15
 
@@ -19,12 +18,10 @@ module Staypuft
19
18
  NFS = 'nfs'
20
19
  CEPH = 'ceph'
21
20
  EQUALLOGIC = 'equallogic'
22
- NETAPP = 'netapp'
23
21
  LABELS = { LVM => N_('LVM'),
24
22
  NFS => N_('NFS'),
25
23
  CEPH => N_('Ceph'),
26
- EQUALLOGIC => N_('EqualLogic'),
27
- NETAPP => N_('NetApp') }
24
+ EQUALLOGIC => N_('EqualLogic') }
28
25
  TYPES = LABELS.keys
29
26
  HUMAN = N_('Choose Driver Backend')
30
27
  end
@@ -65,70 +62,12 @@ module Staypuft
65
62
  validate :equallogic_backends,
66
63
  :if => :equallogic_backend?
67
64
 
68
- module NetappHostname
69
- HUMAN = N_('Hostname:')
70
- end
71
- module NetappLogin
72
- HUMAN = N_('Login:')
73
- end
74
- module NetappPassword
75
- HUMAN = N_('Password:')
76
- end
77
- module NetappServerPort
78
- HUMAN = N_('Server Port:')
79
- end
80
- module NetappStorageFamily
81
- HUMAN = N_('Storage Family:')
82
- end
83
- module NetappTransportType
84
- HUMAN = N_('Transport Type:')
85
- end
86
- module NetappStorageProtocol
87
- HUMAN = N_('Storage Protocol:')
88
- end
89
- module NetappNfsShares
90
- HUMAN = N_('NFS Shares:')
91
- end
92
- module NetappNfsSharesConfig
93
- HUMAN = N_('NFS Shares Config:')
94
- end
95
- module NetappVolumeList
96
- HUMAN = N_('Volume List:')
97
- end
98
- module NetappVfiler
99
- HUMAN = N_('vFiler:')
100
- end
101
- module NetappVserver
102
- HUMAN = N_('Storage Virtual Machine (SVM):')
103
- end
104
- module NetappControllerIps
105
- HUMAN = N_('Controller IPs:')
106
- end
107
- module NetappSaPassword
108
- HUMAN = N_('SA Password:')
109
- end
110
- module NetappStoragePools
111
- HUMAN = N_('Storage Pools:')
112
- end
113
-
114
- validates :netapps,
115
- :presence => true,
116
- :if => :netapp_backend?
117
- validate :netapp_backends,
118
- :if => :netapp_backend?
119
-
120
65
  class Jail < Safemode::Jail
121
- allow :lvm_backend?, :nfs_backend?, :ceph_backend?, :equallogic_backend?, :netapp_backend?,
66
+ allow :lvm_backend?, :nfs_backend?, :ceph_backend?, :equallogic_backend?,
122
67
  :multiple_backends?, :rbd_secret_uuid, :nfs_uri, :eqlxs, :eqlxs_attributes=,
123
68
  :compute_eqlx_san_ips, :compute_eqlx_san_logins, :compute_eqlx_san_passwords,
124
69
  :compute_eqlx_group_names, :compute_eqlx_pools, :compute_eqlx_thin_provision,
125
- :compute_eqlx_use_chap, :compute_eqlx_chap_logins, :compute_eqlx_chap_passwords,
126
- :netapps, :compute_netapp_hostnames, :compute_netapp_logins, :compute_netapp_passwords,
127
- :compute_netapp_server_ports, :compute_netapp_storage_families,
128
- :compute_netapp_transport_types, :compute_netapp_storage_protocolss,
129
- :compute_netapp_nfs_shares, :compute_netapp_nfs_shares_configs, :compute_netapp_volume_list,
130
- :compute_netapp_vfilers, :compute_netapp_vservers, :compute_netapp_controller_ips,
131
- :compute_netapp_sa_passwords, :compute_netapp_storage_pools
70
+ :compute_eqlx_use_chap, :compute_eqlx_chap_logins, :compute_eqlx_chap_passwords
132
71
  end
133
72
 
134
73
  def set_defaults
@@ -136,7 +75,6 @@ module Staypuft
136
75
  self.backend_ceph = "false"
137
76
  self.backend_nfs = "false"
138
77
  self.backend_eqlx = "false"
139
- self.backend_netapp = "false"
140
78
  self.rbd_secret_uuid = SecureRandom.uuid
141
79
  end
142
80
 
@@ -161,13 +99,8 @@ module Staypuft
161
99
  self.backend_eqlx == "true"
162
100
  end
163
101
 
164
- def netapp_backend?
165
- self.backend_netapp == "true"
166
- end
167
-
168
102
  def multiple_backends?
169
103
  (equallogic_backend? and self.eqlxs.length > 1) or
170
- (netapp_backend? and self.netapps.length > 1) or
171
104
  BACKEND_TYPE_PARAMS.select { |type| send(type.to_s) == "true" }.length > 1
172
105
  end
173
106
 
@@ -182,8 +115,7 @@ module Staypuft
182
115
  { "backend_lvm" => backend_lvm, "backend_ceph" => backend_ceph,
183
116
  "backend_nfs" => backend_nfs, "backend_eqlx" => backend_eqlx,
184
117
  "nfs_uri" => nfs_uri, "rbd_secret_uuid" => rbd_secret_uuid,
185
- "eqlxs" => self.eqlxs, "backend_netapp" => backend_netapp,
186
- "netapps" => self.netapps }
118
+ "eqlxs" => self.eqlxs }
187
119
  end
188
120
 
189
121
  def lvm_ptable
@@ -230,11 +162,5 @@ module Staypuft
230
162
  errors.add :base, _("Please fix the problems in selected backends")
231
163
  end
232
164
  end
233
-
234
- def netapp_backends
235
- unless self.netapps.all? { |item| item.valid? }
236
- errors.add :base, _("Please fix the problems in selected backends")
237
- end
238
- end
239
165
  end
240
166
  end
@@ -35,13 +35,6 @@
35
35
  :unchecked_value => 'false',
36
36
  :text => _(Staypuft::Deployment::CinderService::DriverBackend::LABELS['equallogic']))
37
37
  %>
38
-
39
- <%= check_box_f_non_inline(p, :backend_netapp,
40
- :checked_value => 'true',
41
- :unchecked_value => 'false',
42
- :text => _(Staypuft::Deployment::CinderService::DriverBackend::LABELS['netapp']))
43
- %>
44
-
45
38
  <div class="cinder_equallogic col-md-offset-1 hide">
46
39
  <div id="eqlxs" class="cinder_equallogic_picker">
47
40
  <% @deployment.cinder.eqlxs.each_with_index do |eqlx, index| %>
@@ -55,20 +48,6 @@
55
48
  </script>
56
49
  <button type="button" class= "btn btn-primary btn-sm add_another_server"><%= _("Add Another Server") %></button>
57
50
  </div>
58
-
59
- <div class="cinder_netapp col-md-offset-1 hide">
60
- <div id="netapps" class="cinder_netapp_picker">
61
- <% @deployment.cinder.netapps.each_with_index do |netapp, index| %>
62
- <%= p.fields_for "netapps[]", netapp, index: index do |e| %>
63
- <% render partial: 'cinder_netapp_form', locals: {e: e} %>
64
- <% end %>
65
- <% end %>
66
- </div>
67
- <script type='html/template' id='netapp_form_template'>
68
- <%= p.fields_for 'netapps[]', Staypuft::Deployment::CinderService::Netapp.new, index: 'NEW_RECORD' do |e| render(partial: 'cinder_netapp_form', locals: {e: e}); end %>
69
- </script>
70
- <button type="button" class= "btn btn-primary btn-sm add_another_netapp"><%= _("Add Another NetApp Storage System") %></button>
71
- </div>
72
51
  <%end%>
73
52
  </div>
74
53
  </div>
@@ -1,3 +1,3 @@
1
1
  module Staypuft
2
- VERSION = '0.5.16'
2
+ VERSION = '0.5.17'
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.16
4
+ version: 0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Staypuft team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks
@@ -101,201 +101,199 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - app/assets/javascripts/staypuft/nics_assignment.js
104
+ - LICENSE
105
+ - README.md
106
+ - Rakefile
105
107
  - app/assets/javascripts/staypuft/host_edit.js
106
108
  - app/assets/javascripts/staypuft/new_subnet.js
109
+ - app/assets/javascripts/staypuft/nics_assignment.js
107
110
  - app/assets/javascripts/staypuft/staypuft.js
108
111
  - app/assets/javascripts/staypuft/subnets_assignment.js
109
112
  - app/assets/stylesheets/staypuft/bootstrap_and_overrides.css.scss
110
113
  - app/assets/stylesheets/staypuft/foreman_helper.scss
111
114
  - app/assets/stylesheets/staypuft/staypuft.css.scss
112
115
  - app/controllers/staypuft/application_controller.rb
113
- - app/controllers/staypuft/subnet_typings_controller.rb
114
- - app/controllers/staypuft/interface_assignments_controller.rb
115
- - app/controllers/staypuft/steps_controller.rb
116
+ - app/controllers/staypuft/bonds_controller.rb
116
117
  - app/controllers/staypuft/concerns/hosts_api_extensions.rb
117
118
  - app/controllers/staypuft/concerns/hosts_controller_extensions.rb
118
119
  - app/controllers/staypuft/deployments_controller.rb
120
+ - app/controllers/staypuft/interface_assignments_controller.rb
121
+ - app/controllers/staypuft/steps_controller.rb
122
+ - app/controllers/staypuft/subnet_typings_controller.rb
119
123
  - app/controllers/staypuft/subnets_controller.rb
120
- - app/controllers/staypuft/bonds_controller.rb
121
- - app/models/staypuft/fencing.rb
122
- - app/models/staypuft/simple_subnet.rb
123
- - app/models/staypuft/layout_role.rb
124
- - app/models/staypuft/interface_assigner.rb
125
- - app/models/staypuft/role.rb
126
- - app/models/staypuft/deployment/vlan_range_values_validator.rb
124
+ - app/helpers/staypuft/application_helper.rb
125
+ - app/helpers/staypuft/deployments_helper.rb
126
+ - app/helpers/staypuft/hosts_helper.rb
127
+ - app/lib/actions/staypuft/deployment/deploy.rb
128
+ - app/lib/actions/staypuft/deployment/populate.rb
129
+ - app/lib/actions/staypuft/host/assert_report_success.rb
130
+ - app/lib/actions/staypuft/host/create.rb
131
+ - app/lib/actions/staypuft/host/deploy.rb
132
+ - app/lib/actions/staypuft/host/puppet_run.rb
133
+ - app/lib/actions/staypuft/host/report_wait.rb
134
+ - app/lib/actions/staypuft/host/trigger_provisioning.rb
135
+ - app/lib/actions/staypuft/host/update.rb
136
+ - app/lib/actions/staypuft/host/wait_until_provisioned.rb
137
+ - app/lib/actions/staypuft/host/wait_until_ready.rb
138
+ - app/lib/actions/staypuft/hostgroup/ordered_deploy.rb
139
+ - app/lib/actions/staypuft/middleware/as_current_user.rb
140
+ - app/lib/actions/staypuft/middleware/timeout.rb
141
+ - app/lib/staypuft/deployment_param_exporter.rb
142
+ - app/lib/staypuft/deployment_param_importer.rb
143
+ - app/lib/staypuft/exception.rb
144
+ - app/lib/staypuft/network_query.rb
145
+ - app/lib/staypuft/seeder.rb
146
+ - app/models/setting/staypuft_provisioning.rb
147
+ - app/models/staypuft/concerns/environment_extensions.rb
148
+ - app/models/staypuft/concerns/host_details_helper.rb
149
+ - app/models/staypuft/concerns/host_fencing_extensions.rb
150
+ - app/models/staypuft/concerns/host_interface_management.rb
151
+ - app/models/staypuft/concerns/host_open_stack_affiliation.rb
152
+ - app/models/staypuft/concerns/host_orchestration_build_hook.rb
153
+ - app/models/staypuft/concerns/hostgroup_extensions.rb
154
+ - app/models/staypuft/concerns/lookup_key_extensions.rb
155
+ - app/models/staypuft/concerns/nic_fencing_extensions.rb
156
+ - app/models/staypuft/concerns/puppetclass_extensions.rb
157
+ - app/models/staypuft/deployment.rb
158
+ - app/models/staypuft/deployment/abstract_param_scope.rb
159
+ - app/models/staypuft/deployment/attribute_param_storage.rb
127
160
  - app/models/staypuft/deployment/ceph_service.rb
128
- - app/models/staypuft/deployment/nova_service.rb
129
161
  - app/models/staypuft/deployment/cinder_service.rb
130
- - app/models/staypuft/deployment/nfs_uri_validator.rb
131
- - app/models/staypuft/deployment/abstract_param_scope.rb
132
- - app/models/staypuft/deployment/neutron_service/cisconexus.rb
133
162
  - app/models/staypuft/deployment/cinder_service/equallogic.rb
134
- - app/models/staypuft/deployment/cinder_service/netapp.rb
135
- - app/models/staypuft/deployment/neutron_service.rb
136
- - app/models/staypuft/deployment/ip_check.rb
137
163
  - app/models/staypuft/deployment/glance_service.rb
138
- - app/models/staypuft/deployment/attribute_param_storage.rb
139
164
  - app/models/staypuft/deployment/ip_address_validator.rb
165
+ - app/models/staypuft/deployment/ip_check.rb
166
+ - app/models/staypuft/deployment/neutron_service.rb
167
+ - app/models/staypuft/deployment/neutron_service/cisconexus.rb
168
+ - app/models/staypuft/deployment/nfs_uri_validator.rb
169
+ - app/models/staypuft/deployment/nova_service.rb
140
170
  - app/models/staypuft/deployment/passwords.rb
171
+ - app/models/staypuft/deployment/vlan_range_values_validator.rb
172
+ - app/models/staypuft/deployment_role_hostgroup.rb
141
173
  - app/models/staypuft/deployment_vip_nic.rb
142
- - app/models/staypuft/service_class.rb
143
- - app/models/staypuft/subnet_type.rb
174
+ - app/models/staypuft/fencing.rb
175
+ - app/models/staypuft/interface_assigner.rb
144
176
  - app/models/staypuft/layout.rb
145
- - app/models/staypuft/concerns/hostgroup_extensions.rb
146
- - app/models/staypuft/concerns/puppetclass_extensions.rb
147
- - app/models/staypuft/concerns/nic_fencing_extensions.rb
148
- - app/models/staypuft/concerns/host_details_helper.rb
149
- - app/models/staypuft/concerns/environment_extensions.rb
150
- - app/models/staypuft/concerns/host_interface_management.rb
151
- - app/models/staypuft/concerns/host_orchestration_build_hook.rb
152
- - app/models/staypuft/concerns/host_fencing_extensions.rb
153
- - app/models/staypuft/concerns/lookup_key_extensions.rb
154
- - app/models/staypuft/concerns/host_open_stack_affiliation.rb
177
+ - app/models/staypuft/layout_role.rb
178
+ - app/models/staypuft/layout_subnet_type.rb
179
+ - app/models/staypuft/role.rb
180
+ - app/models/staypuft/role_class.rb
155
181
  - app/models/staypuft/role_service.rb
156
182
  - app/models/staypuft/service.rb
157
- - app/models/staypuft/role_class.rb
158
- - app/models/staypuft/layout_subnet_type.rb
159
- - app/models/staypuft/vip_nic.rb
160
- - app/models/staypuft/deployment.rb
183
+ - app/models/staypuft/service_class.rb
184
+ - app/models/staypuft/simple_subnet.rb
185
+ - app/models/staypuft/subnet_type.rb
161
186
  - app/models/staypuft/subnet_typing.rb
162
- - app/models/staypuft/deployment_role_hostgroup.rb
163
- - app/models/setting/staypuft_provisioning.rb
187
+ - app/models/staypuft/vip_nic.rb
164
188
  - app/overrides/customize_foreman_tasks_show_page.rb
165
- - app/overrides/select_multiple_systems_hostgroup.rb
166
189
  - app/overrides/foreman_hosts_edit.rb
167
- - app/overrides/hosts_edit_subnet_types.rb
168
190
  - app/overrides/hide_subscription_manager_passwords.rb
169
- - app/lib/actions/staypuft/hostgroup/ordered_deploy.rb
170
- - app/lib/actions/staypuft/deployment/populate.rb
171
- - app/lib/actions/staypuft/deployment/deploy.rb
172
- - app/lib/actions/staypuft/host/assert_report_success.rb
173
- - app/lib/actions/staypuft/host/update.rb
174
- - app/lib/actions/staypuft/host/wait_until_ready.rb
175
- - app/lib/actions/staypuft/host/puppet_run.rb
176
- - app/lib/actions/staypuft/host/trigger_provisioning.rb
177
- - app/lib/actions/staypuft/host/report_wait.rb
178
- - app/lib/actions/staypuft/host/wait_until_provisioned.rb
179
- - app/lib/actions/staypuft/host/deploy.rb
180
- - app/lib/actions/staypuft/host/create.rb
181
- - app/lib/actions/staypuft/middleware/as_current_user.rb
182
- - app/lib/actions/staypuft/middleware/timeout.rb
183
- - app/lib/staypuft/network_query.rb
184
- - app/lib/staypuft/deployment_param_importer.rb
185
- - app/lib/staypuft/seeder.rb
186
- - app/lib/staypuft/exception.rb
187
- - app/lib/staypuft/deployment_param_exporter.rb
188
- - app/views/hosts/_new_nic_fields.html.erb
191
+ - app/overrides/hosts_edit_subnet_types.rb
192
+ - app/overrides/select_multiple_systems_hostgroup.rb
189
193
  - app/views/hosts/_fencing.html.erb
194
+ - app/views/hosts/_new_nic_fields.html.erb
190
195
  - app/views/hosts/_primary_interface_subnet.html.erb
191
- - app/views/staypuft/steps/_nova.html.erb
192
- - app/views/staypuft/steps/services_overview.html.erb
193
- - app/views/staypuft/steps/_neutron_cisco_nexus_form.html.erb
194
- - app/views/staypuft/steps/network_configuration.html.erb
195
- - app/views/staypuft/steps/_cinder_equallogic_form.html.erb
196
- - app/views/staypuft/steps/_title.html.erb
197
- - app/views/staypuft/steps/services_configuration.html.erb
198
- - app/views/staypuft/steps/_neutron_ha.html.erb
199
- - app/views/staypuft/steps/deployment_settings.html.erb
200
- - app/views/staypuft/steps/_cinder.html.erb
201
- - app/views/staypuft/steps/_nova_ha.html.erb
202
- - app/views/staypuft/steps/_glance.html.erb
203
- - app/views/staypuft/steps/_neutron.html.erb
204
- - app/views/staypuft/steps/_cinder_netapp_form.html.erb
205
- - app/views/staypuft/steps/_wizard_form_buttons.html.erb
206
- - app/views/staypuft/subnet_types/_subnet_type_pull.html.erb
207
- - app/views/staypuft/layouts/staypuft.html.erb
208
- - app/views/staypuft/layouts/application.html.erb
209
- - app/views/staypuft/bonds/destroy.js.erb
196
+ - app/views/nic/_subnet_id_field.html.erb
210
197
  - app/views/staypuft/bonds/add_slave.js.erb
211
198
  - app/views/staypuft/bonds/create.js.erb
212
- - app/views/staypuft/subnet_typings/destroy.js.erb
213
- - app/views/staypuft/subnet_typings/create.js.erb
214
- - app/views/staypuft/subnet_typings/update.js.erb
215
- - app/views/staypuft/subnets/new.html.erb
216
- - app/views/staypuft/subnets/create.js.erb
217
- - app/views/staypuft/subnets/_subnet_pull.html.erb
218
- - app/views/staypuft/subnets/_form.html.erb
219
- - app/views/staypuft/subnets/_drop_zone.html.erb
220
- - app/views/staypuft/interfaces/_drop_zone.html.erb
221
- - app/views/staypuft/interface_assignments/index.html.erb
222
- - app/views/staypuft/interface_assignments/destroy.js.erb
223
- - app/views/staypuft/interface_assignments/_interfaces.html.erb
224
- - app/views/staypuft/interface_assignments/create.js.erb
225
- - app/views/staypuft/interface_assignments/_nics_assignment.html.erb
226
- - app/views/staypuft/interface_assignments/_nics_assignment_overview.html.erb
227
- - app/views/staypuft/deployments/edit.html.erb
199
+ - app/views/staypuft/bonds/destroy.js.erb
228
200
  - app/views/staypuft/deployments/_advanced_configuration.html.erb
201
+ - app/views/staypuft/deployments/_assigned_hosts.html.erb
229
202
  - app/views/staypuft/deployments/_assigned_hosts_table.html.erb
230
- - app/views/staypuft/deployments/index.html.erb
203
+ - app/views/staypuft/deployments/_deployed_hosts.html.erb
204
+ - app/views/staypuft/deployments/_deployed_hosts_table.html.erb
205
+ - app/views/staypuft/deployments/_deployment_access_all_details_dialogue.html.erb
206
+ - app/views/staypuft/deployments/_deployment_hosts.html.erb
207
+ - app/views/staypuft/deployments/_deployment_networking.html.erb
231
208
  - app/views/staypuft/deployments/_deployment_overview.html.erb
232
- - app/views/staypuft/deployments/_param_field.html.erb
233
- - app/views/staypuft/deployments/_host_head_row.html.erb
209
+ - app/views/staypuft/deployments/_deployment_progress_bar.html.erb
234
210
  - app/views/staypuft/deployments/_deployment_progress_page_header.html.erb
235
- - app/views/staypuft/deployments/_free_hosts_table.html.erb
236
- - app/views/staypuft/deployments/_hosts_filter.html.erb
211
+ - app/views/staypuft/deployments/_deployment_show_header.html.erb
212
+ - app/views/staypuft/deployments/_deployment_summary.html.erb
237
213
  - app/views/staypuft/deployments/_empty_hosts.html.erb
238
- - app/views/staypuft/deployments/_assigned_hosts.html.erb
239
- - app/views/staypuft/deployments/_host_row.html.erb
240
- - app/views/staypuft/deployments/_deployment_hosts.html.erb
241
- - app/views/staypuft/deployments/show.html.erb
242
- - app/views/staypuft/deployments/_deployed_hosts_table.html.erb
243
- - app/views/staypuft/deployments/_deployed_hosts.html.erb
244
214
  - app/views/staypuft/deployments/_free_hosts.html.erb
245
- - app/views/staypuft/deployments/_hosts_table.html.erb
246
- - app/views/staypuft/deployments/_deployment_show_header.html.erb
215
+ - app/views/staypuft/deployments/_free_hosts_table.html.erb
216
+ - app/views/staypuft/deployments/_host_head_row.html.erb
217
+ - app/views/staypuft/deployments/_host_row.html.erb
218
+ - app/views/staypuft/deployments/_hosts_filter.html.erb
247
219
  - app/views/staypuft/deployments/_hosts_header.html.erb
248
- - app/views/staypuft/deployments/_deployment_access_all_details_dialogue.html.erb
249
- - app/views/staypuft/deployments/_deployment_progress_bar.html.erb
220
+ - app/views/staypuft/deployments/_hosts_table.html.erb
250
221
  - app/views/staypuft/deployments/_import_form.html.erb
251
- - app/views/staypuft/deployments/_deployment_summary.html.erb
252
- - app/views/staypuft/deployments/_deployment_networking.html.erb
253
- - app/views/nic/_subnet_id_field.html.erb
254
- - app/helpers/staypuft/hosts_helper.rb
255
- - app/helpers/staypuft/deployments_helper.rb
256
- - app/helpers/staypuft/application_helper.rb
257
- - config/staypuft.local.rb
222
+ - app/views/staypuft/deployments/_param_field.html.erb
223
+ - app/views/staypuft/deployments/edit.html.erb
224
+ - app/views/staypuft/deployments/index.html.erb
225
+ - app/views/staypuft/deployments/show.html.erb
226
+ - app/views/staypuft/interface_assignments/_interfaces.html.erb
227
+ - app/views/staypuft/interface_assignments/_nics_assignment.html.erb
228
+ - app/views/staypuft/interface_assignments/_nics_assignment_overview.html.erb
229
+ - app/views/staypuft/interface_assignments/create.js.erb
230
+ - app/views/staypuft/interface_assignments/destroy.js.erb
231
+ - app/views/staypuft/interface_assignments/index.html.erb
232
+ - app/views/staypuft/interfaces/_drop_zone.html.erb
233
+ - app/views/staypuft/layouts/application.html.erb
234
+ - app/views/staypuft/layouts/staypuft.html.erb
235
+ - app/views/staypuft/steps/_cinder.html.erb
236
+ - app/views/staypuft/steps/_cinder_equallogic_form.html.erb
237
+ - app/views/staypuft/steps/_glance.html.erb
238
+ - app/views/staypuft/steps/_neutron.html.erb
239
+ - app/views/staypuft/steps/_neutron_cisco_nexus_form.html.erb
240
+ - app/views/staypuft/steps/_neutron_ha.html.erb
241
+ - app/views/staypuft/steps/_nova.html.erb
242
+ - app/views/staypuft/steps/_nova_ha.html.erb
243
+ - app/views/staypuft/steps/_title.html.erb
244
+ - app/views/staypuft/steps/_wizard_form_buttons.html.erb
245
+ - app/views/staypuft/steps/deployment_settings.html.erb
246
+ - app/views/staypuft/steps/network_configuration.html.erb
247
+ - app/views/staypuft/steps/services_configuration.html.erb
248
+ - app/views/staypuft/steps/services_overview.html.erb
249
+ - app/views/staypuft/subnet_types/_subnet_type_pull.html.erb
250
+ - app/views/staypuft/subnet_typings/create.js.erb
251
+ - app/views/staypuft/subnet_typings/destroy.js.erb
252
+ - app/views/staypuft/subnet_typings/update.js.erb
253
+ - app/views/staypuft/subnets/_drop_zone.html.erb
254
+ - app/views/staypuft/subnets/_form.html.erb
255
+ - app/views/staypuft/subnets/_subnet_pull.html.erb
256
+ - app/views/staypuft/subnets/create.js.erb
257
+ - app/views/staypuft/subnets/new.html.erb
258
258
  - config/routes.rb
259
- - db/seeds.rb
260
- - db/migrate/20140701075033_create_layout_subnet.rb
261
- - db/migrate/20140310023613_create_staypuft_roles.rb
262
- - db/migrate/20140310203855_create_staypuft_role_services.rb
263
- - db/migrate/20140701090256_create_staypuft_subnet_typings.rb
264
- - db/migrate/20140701074900_create_subnet_type.rb
265
- - db/migrate/20140602121501_add_amqp_provider_to_staypuft_deployment.rb
259
+ - config/staypuft.local.rb
266
260
  - db/migrate/20140309021811_create_staypuft_layouts.rb
261
+ - db/migrate/20140310004533_create_staypuft_deployments.rb
262
+ - db/migrate/20140310023613_create_staypuft_roles.rb
267
263
  - db/migrate/20140310174152_create_staypuft_layout_roles.rb
264
+ - db/migrate/20140310194221_create_staypuft_services.rb
265
+ - db/migrate/20140310203855_create_staypuft_role_services.rb
266
+ - db/migrate/20140312044533_create_staypuft_deployment_role_hostgroups.rb
267
+ - db/migrate/20140312050001_create_staypuft_hostgroup_roles.rb
268
+ - db/migrate/20140312050615_create_staypuft_role_classes.rb
269
+ - db/migrate/20140312051144_create_staypuft_service_classes.rb
270
+ - db/migrate/20140315031754_add_networking_to_staypuft_layout.rb
268
271
  - db/migrate/20140318163222_add_deploy_order_to_staypuft_layout_role.rb
269
- - db/migrate/20140825164900_add_orchestration_to_staypuft_role.rb
272
+ - db/migrate/20140325211410_add_role_to_staypuft_deployment_role_hostgroup.rb
270
273
  - db/migrate/20140326032027_drop_staypuft_hostgroup_roles.rb
271
- - db/migrate/20140623142500_remove_amqp_provider_from_staypuft_deployment.rb
272
- - db/migrate/20141009064907_add_custom_repos_to_deployment.rb
274
+ - db/migrate/20140507103716_add_form_step_to_staypuft_deployment.rb
273
275
  - db/migrate/20140513124807_change_column_default_form_step_on_staypuft_deployment.rb
274
- - db/migrate/20140312050615_create_staypuft_role_classes.rb
275
- - db/migrate/20140310004533_create_staypuft_deployments.rb
276
- - db/migrate/20140312050001_create_staypuft_hostgroup_roles.rb
276
+ - db/migrate/20140602121501_add_amqp_provider_to_staypuft_deployment.rb
277
+ - db/migrate/20140623142500_remove_amqp_provider_from_staypuft_deployment.rb
278
+ - db/migrate/20140701074900_create_subnet_type.rb
279
+ - db/migrate/20140701075033_create_layout_subnet.rb
280
+ - db/migrate/20140701090256_create_staypuft_subnet_typings.rb
281
+ - db/migrate/20140825164900_add_orchestration_to_staypuft_role.rb
277
282
  - db/migrate/20140831234000_add_required_to_subnet_types.rb
278
- - db/migrate/20140325211410_add_role_to_staypuft_deployment_role_hostgroup.rb
279
- - db/migrate/20140312051144_create_staypuft_service_classes.rb
280
283
  - db/migrate/20141003223000_add_validation_to_subnet_types.rb
281
- - db/migrate/20140312044533_create_staypuft_deployment_role_hostgroups.rb
282
- - db/migrate/20140315031754_add_networking_to_staypuft_layout.rb
283
- - db/migrate/20140507103716_add_form_step_to_staypuft_deployment.rb
284
+ - db/migrate/20141009064907_add_custom_repos_to_deployment.rb
284
285
  - db/migrate/20141107144800_create_staypuft_deployment_vip_nics.rb
285
- - db/migrate/20140310194221_create_staypuft_services.rb
286
+ - db/seeds.rb
286
287
  - lib/staypuft.rb
287
288
  - lib/staypuft/engine.rb
288
289
  - lib/staypuft/version.rb
289
290
  - lib/tasks/staypuft_tasks.rake
290
- - LICENSE
291
- - Rakefile
292
- - README.md
293
- - test/test_helper.rb
294
- - test/staypuft_test.rb
295
- - test/unit/staypuft_test.rb
296
- - test/test_plugin_helper.rb
297
291
  - test/factories/staypuft_factories.rb
298
292
  - test/integration/navigation_test.rb
293
+ - test/staypuft_test.rb
294
+ - test/test_helper.rb
295
+ - test/test_plugin_helper.rb
296
+ - test/unit/staypuft_test.rb
299
297
  homepage: https://github.com/theforeman/staypuft
300
298
  licenses:
301
299
  - GPL-3.0+
@@ -316,14 +314,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
314
  version: '0'
317
315
  requirements: []
318
316
  rubyforge_project:
319
- rubygems_version: 2.0.14
317
+ rubygems_version: 2.2.2
320
318
  signing_key:
321
319
  specification_version: 4
322
320
  summary: OpenStack Foreman Installer
323
321
  test_files:
324
- - test/test_helper.rb
325
- - test/staypuft_test.rb
326
322
  - test/unit/staypuft_test.rb
327
- - test/test_plugin_helper.rb
328
- - test/factories/staypuft_factories.rb
329
323
  - test/integration/navigation_test.rb
324
+ - test/staypuft_test.rb
325
+ - test/factories/staypuft_factories.rb
326
+ - test/test_plugin_helper.rb
327
+ - test/test_helper.rb
@@ -1,59 +0,0 @@
1
- #encoding: utf-8
2
- module Staypuft
3
- class Deployment::CinderService::Netapp
4
- include ActiveModel::Serializers::JSON
5
- include ActiveModel::Validations
6
- extend ActiveModel::Naming
7
-
8
- attr_accessor :id, :hostname, :login, :password, :server_port,
9
- :storage_family, :transport_type, :storage_protocol,
10
- :nfs_shares, :nfs_shares_config, :volume_list, :vfiler,
11
- :vserver, :controller_ips, :sa_password, :storage_pools
12
- attr_reader :errors
13
-
14
- STORAGE_FAMILIES = { :ontap_cluster => 'Clustered Data ONTAP',
15
- :ontap_7mode => 'Data ONTAP 7-mode',
16
- :eseries => 'E-Series' }
17
- STORAGE_PROTOCOLS = { :nfs => 'NFS', :iscsi => 'iSCSI' }
18
- TRANSPORT_TYPES = { :http => 'http', :https => 'https' }
19
-
20
- def initialize(attrs = {})
21
- @errors = ActiveModel::Errors.new(self)
22
- self.attributes = attrs
23
- self.server_port = 80
24
- self.storage_family = 'ontap_cluster'
25
- self.transport_type = 'http'
26
- self.storage_protocol = 'nfs'
27
- end
28
-
29
- def self.human_attribute_name(attr, options = {})
30
- attr
31
- end
32
-
33
- def self.lookup_ancestors
34
- [self]
35
- end
36
-
37
- def attributes
38
- { 'hostname' => nil, 'login' => nil, 'password' => nil,
39
- 'server_port' => nil, 'storage_family' => nil, 'transport_type' => nil,
40
- 'storage_protocol' => nil, 'nfs_shares' => nil, 'nfs_shares_config' => nil,
41
- 'volume_list' => nil, 'vfiler' => nil, 'vserver' => nil,
42
- 'controller_ips' => nil, 'sa_password' => nil,
43
- 'storage_pools' => nil }
44
- end
45
-
46
- def attributes=(attrs)
47
- attrs.each { |attr, value| send "#{attr}=", value } unless attrs.nil?
48
- end
49
-
50
- validates :login,
51
- presence: true,
52
- format: /\A[a-zA-Z\d][\w\.\-]*[\w\-]\z/,
53
- length: { maximum: 16 }
54
- validates :password,
55
- presence: true,
56
- format: /\A[!-~]+\z/,
57
- length: { minimum:3, maximum: 16 }
58
- end
59
- end
@@ -1,55 +0,0 @@
1
- <div class="netapp well">
2
- <h5 class="muted"><a href="#" class="remove"><i class="glyphicon glyphicon-remove-sign ">&nbsp;</i></a>&nbsp;Storage System #<span class="server_number">1</span></h5>
3
-
4
- <div class="netapp-main">
5
- <%= select_f e, :storage_family, Staypuft::Deployment::CinderService::Netapp::STORAGE_FAMILIES,
6
- :first, :last,
7
- {},
8
- { :label => _(Staypuft::Deployment::CinderService::NetappStorageFamily::HUMAN) } %>
9
- <%= select_f e, :storage_protocol, Staypuft::Deployment::CinderService::Netapp::STORAGE_PROTOCOLS,
10
- :first, :last,
11
- {},
12
- { :label => _(Staypuft::Deployment::CinderService::NetappStorageProtocol::HUMAN) } %>
13
- <%= text_f e, :hostname, class: "cinder_netapp",
14
- label: _(Staypuft::Deployment::CinderService::NetappHostname::HUMAN) %>
15
- <%= text_f e, :login, class: "cinder_netapp",
16
- label: _(Staypuft::Deployment::CinderService::NetappLogin::HUMAN) %>
17
- <%= password_f e, :password, class: "cinder_netapp",
18
- label: _(Staypuft::Deployment::CinderService::NetappPassword::HUMAN) %>
19
- <%= text_f e, :server_port, class: "cinder_netapp",
20
- label: _(Staypuft::Deployment::CinderService::NetappServerPort::HUMAN) %>
21
-
22
- <%= select_f e, :transport_type, Staypuft::Deployment::CinderService::Netapp::TRANSPORT_TYPES,
23
- :first, :last,
24
- {},
25
- { :label => _(Staypuft::Deployment::CinderService::NetappTransportType::HUMAN) } %>
26
- </div>
27
-
28
- <div class="netapp-nfs netapp-option">
29
- <%= text_f e, :nfs_shares, class: "cinder_netapp",
30
- label: _(Staypuft::Deployment::CinderService::NetappNfsShares::HUMAN) %>
31
- <%= text_f e, :nfs_shares_config, class: "cinder_netapp",
32
- label: _(Staypuft::Deployment::CinderService::NetappNfsSharesConfig::HUMAN) %>
33
- </div>
34
-
35
- <div class="netapp-7mode-iscsi netapp-option hide">
36
- <%= text_f e, :volume_list, class: "cinder_netapp",
37
- label: _(Staypuft::Deployment::CinderService::NetappVolumeList::HUMAN) %>
38
- <%= text_f e, :vfiler, class: "cinder_netapp",
39
- label: _(Staypuft::Deployment::CinderService::NetappVfiler::HUMAN) %>
40
- </div>
41
-
42
- <div class="netapp-vserver netapp-option">
43
- <%= text_f e, :vserver, class: "cinder_netapp",
44
- label: _(Staypuft::Deployment::CinderService::NetappVserver::HUMAN) %>
45
- </div>
46
-
47
- <div class="netapp-eseries netapp-option hide">
48
- <%= text_f e, :controller_ips, class: "cinder_netapp",
49
- label: _(Staypuft::Deployment::CinderService::NetappControllerIps::HUMAN) %>
50
- <%= text_f e, :sa_password, class: "cinder_netapp",
51
- label: _(Staypuft::Deployment::CinderService::NetappSaPassword::HUMAN) %>
52
- <%= text_f e, :storage_pools, class: "cinder_netapp",
53
- label: _(Staypuft::Deployment::CinderService::NetappStoragePools::HUMAN) %>
54
- </div>
55
- </div>