staypuft 0.5.18 → 0.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8aa1fc0e43ac4f94ddae7be23c7941b1d22c74b8
4
- data.tar.gz: 7e4e4d1e9529729d3242e90e3fb98e934fb529d2
3
+ metadata.gz: 33b797789ba713b33c1db4e2a09d4feec861bfb4
4
+ data.tar.gz: a9f26aee683a285766a58ce98d6164cb3d575d26
5
5
  SHA512:
6
- metadata.gz: a71e8eba640b5a17c09a4524d26154e258ff1c00ca78e8d3f685996aa34b952028f75cfeaa5e955e7d5157d4d258a43c3dfbb91f27f21c201775d3d24b4f4146
7
- data.tar.gz: f237025c2388b22842315478a46c834cc04c9f490eb5c494be8c9f89a788956f90fa1f85517952f3dda8b9f73f5ae13b72a2c8aeccbcd48c608f79ea9103f14d
6
+ metadata.gz: e94ea349578792352fa803ecd4a5f51a5281a44689f514338086c105455292c7b1b8fe93b5d34466ca020df2dde81a2fd25ab51a4348b9e71bb3df154b320cf8
7
+ data.tar.gz: b7ef4a76c194540fca97a676ef6cffbb015227f2c418738a72186ee1aab17d88bd09c4f46dfd8c20122f43584069e909fa1ec99c56c80860c2d65a022f64015b
@@ -217,6 +217,7 @@ h3[data-toggle="collapse"] {
217
217
  margin-bottom: 0;
218
218
  .control-label {
219
219
  text-align: left;
220
+ clear: left;
220
221
  }
221
222
  .help-block {
222
223
  margin-bottom: 0;
@@ -20,9 +20,12 @@ module Actions
20
20
  def plan(host)
21
21
  fail 'cannot provision unmanaged host' unless host.managed?
22
22
 
23
- # return back to hostgroup's environment
24
23
  sequence do
25
- plan_action Actions::Staypuft::Host::Update, host, :environment => nil
24
+ # set the env to 'provisioning' to avoid compiling the
25
+ # production catalog when actually not applying it, which
26
+ # might cause errors
27
+ plan_action Actions::Staypuft::Host::Update, host,
28
+ :environment_id => Environment.get_or_create_provisioning.id
26
29
  plan_self host_id: host.id
27
30
  end
28
31
  end
@@ -65,14 +65,18 @@ module Staypuft
65
65
 
66
66
  # some services don't have puppetclasses yet, since they aren't broken out on the back end
67
67
  SERVICES = {
68
- :cinder_node => { :name => 'Cinder (node)', :class => ['quickstack::storage_backend::cinder'] },
69
- :nova_compute => { :name => 'Nova-compute', :class => ['quickstack::nova_network::compute'] },
70
- :neutron_compute => { :name => 'Neutron-compute', :class => ['quickstack::neutron::compute'] },
68
+ :cinder_node => { :name => 'Cinder (node)', :class => ['quickstack::storage_backend::cinder',
69
+ 'quickstack::ntp'] },
70
+ :nova_compute => { :name => 'Nova-compute', :class => ['quickstack::nova_network::compute',
71
+ 'quickstack::ntp'] },
72
+ :neutron_compute => { :name => 'Neutron-compute', :class => ['quickstack::neutron::compute',
73
+ 'quickstack::ntp'] },
71
74
  :swift_node => { :name => 'Swift (node)', :class => ['quickstack::swift::storage'] },
72
75
  :controller => { :name => 'Controller',
73
76
  :class => ['quickstack::openstack_common',
74
77
  'quickstack::pacemaker::common',
75
- 'quickstack::pacemaker::params'] },
78
+ 'quickstack::pacemaker::params',
79
+ 'quickstack::ntp'] },
76
80
  :keystone => { :name => 'Keystone',
77
81
  :class => ['quickstack::pacemaker::keystone'] },
78
82
  :load_balancer => { :name => 'Load Balancer',
@@ -84,18 +88,21 @@ module Staypuft
84
88
  :nova => { :name => 'Nova', :class => ['quickstack::pacemaker::nova'] },
85
89
  :heat => { :name => 'Heat', :class => ['quickstack::pacemaker::heat'] },
86
90
  :cinder => { :name => 'Cinder', :class => ['quickstack::pacemaker::cinder'] },
87
- :swift => { :name => 'Swift', :class => ['quickstack::pacemaker::swift'] },
91
+ :swift => { :name => 'Swift', :class => ['quickstack::pacemaker::swift',
92
+ 'quickstack::ntp'] },
88
93
  :horizon => { :name => 'Horizon', :class => ['quickstack::pacemaker::horizon'] },
89
94
  :galera => { :name => 'Galera', :class => ['quickstack::pacemaker::galera'] },
90
95
  :mysql => { :name => 'Mysql', :class => ['quickstack::pacemaker::mysql'] },
91
96
  :ceilometer => { :name => 'Ceilometer', :class => ['quickstack::pacemaker::nosql',
92
97
  'quickstack::pacemaker::ceilometer'] },
93
98
  :neutron => { :name => 'Neutron', :class => ['quickstack::pacemaker::neutron'] },
94
- :generic_rhel_7 => { :name => 'Generic RHEL 7', :class => ['quickstack::openstack_common'] },
99
+ :generic_rhel_7 => { :name => 'Generic RHEL 7', :class => ['quickstack::openstack_common',
100
+ 'quickstack::ntp'] },
95
101
  :ceph_osd => { :name => 'Ceph Storage (OSD) (node)',
96
102
  :class => ['quickstack::openstack_common',
97
103
  'quickstack::ceph::config',
98
- 'quickstack::firewall::ceph_osd'] },
104
+ 'quickstack::firewall::ceph_osd',
105
+ 'quickstack::ntp'] },
99
106
  }
100
107
 
101
108
  # The list of roles is still from astapor
@@ -347,6 +354,8 @@ module Staypuft
347
354
  ceph_osd_pool_size = { :string => '<%= @host.deployment.ceph.osd_pool_size %>' }
348
355
  ceph_osd_journal_size = { :string => '<%= @host.deployment.ceph.osd_journal_size %>' }
349
356
 
357
+ # NTP
358
+ ntp_servers = { :array => "<%= @host.params['ntp-servers'].split(',') %>" }
350
359
 
351
360
  # effective_value grabs shared password if deployment is in shared password mode,
352
361
  # otherwise use the service-specific one
@@ -687,6 +696,9 @@ module Staypuft
687
696
  },
688
697
  'quickstack::pacemaker::ceilometer' => {
689
698
  'ceilometer_metering_secret' => ceilometer_metering,
699
+ },
700
+ 'quickstack::ntp' => {
701
+ 'servers' => ntp_servers,
690
702
  }
691
703
  }
692
704
  end
@@ -8,5 +8,9 @@ module Staypuft::Concerns::EnvironmentExtensions
8
8
  'missing discovery environment, which ensures all its machines are booted ' +
9
9
  'to discovery image.'
10
10
  end
11
+
12
+ def get_or_create_provisioning
13
+ where(name: 'provisioning').first_or_create
14
+ end
11
15
  end
12
16
  end
@@ -202,14 +202,23 @@ module Staypuft
202
202
  end
203
203
  end
204
204
 
205
- %w{hostname login password server_port storage_familie transport_type storage_protocol
206
- nfs_share nfs_shares_config volume_list vfiler vserver controller_ip sa_password
207
- storage_pool }.each do |name|
205
+ %w{hostname login password server_port transport_type storage_protocol
206
+ nfs_shares_config volume_list vfiler vserver sa_password }.each do |name|
208
207
  define_method "compute_netapp_#{name}s" do
209
208
  self.netapps.collect { |e| e.send name }
210
209
  end
211
210
  end
212
211
 
212
+ %w{controller_ips nfs_shares storage_pools}.each do |name|
213
+ define_method "compute_netapp_#{name}" do
214
+ self.netapps.collect { |e| e.send name }
215
+ end
216
+ end
217
+
218
+ def compute_netapp_storage_families
219
+ self.netapps.collect { |e| e.send :storage_family }
220
+ end
221
+
213
222
  private
214
223
 
215
224
  def set_lvm_ptable
@@ -1,3 +1,3 @@
1
1
  module Staypuft
2
- VERSION = '0.5.18'
2
+ VERSION = '0.5.19'
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.18
4
+ version: 0.5.19
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-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks