staypuft 0.5.18 → 0.5.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/staypuft/staypuft.css.scss +1 -0
- data/app/lib/actions/staypuft/host/trigger_provisioning.rb +5 -2
- data/app/lib/staypuft/seeder.rb +19 -7
- data/app/models/staypuft/concerns/environment_extensions.rb +4 -0
- data/app/models/staypuft/deployment/cinder_service.rb +12 -3
- data/lib/staypuft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b797789ba713b33c1db4e2a09d4feec861bfb4
|
4
|
+
data.tar.gz: a9f26aee683a285766a58ce98d6164cb3d575d26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e94ea349578792352fa803ecd4a5f51a5281a44689f514338086c105455292c7b1b8fe93b5d34466ca020df2dde81a2fd25ab51a4348b9e71bb3df154b320cf8
|
7
|
+
data.tar.gz: b7ef4a76c194540fca97a676ef6cffbb015227f2c418738a72186ee1aab17d88bd09c4f46dfd8c20122f43584069e909fa1ec99c56c80860c2d65a022f64015b
|
@@ -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
|
-
|
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
|
data/app/lib/staypuft/seeder.rb
CHANGED
@@ -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
|
-
|
70
|
-
:
|
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
|
206
|
-
|
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
|
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.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-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman-tasks
|