Skip to content

Instantly share code, notes, and snippets.

@jprovaznik
jprovaznik / script
Last active September 14, 2015 17:50
heat resources
first run
[stack@host03-rack02 ~]$ python test_resources.py
xxxx0 77.9745030403
xxxx0-events 78.5971889496
xxxx0-events 79.2853188515
xxxx0-events 79.7970600128
xxxx0-events 80.1811249256
xxxx0-events 80.6371958256
xxxx0-events 80.9747948647
find_all_files_in_tpldir.each do |fname|
content = fname.readlines
path = fname.basedir
content.gsub(/get_file: (.*)/, "get_file: basedir/$1")
files[basedir/$1] = content
end
diff --git a/overcloud-without-mergepy.yaml b/overcloud-without-mergepy.yaml
index be32452..47e6d31 100644
--- a/overcloud-without-mergepy.yaml
+++ b/overcloud-without-mergepy.yaml
@@ -465,6 +465,9 @@ parameters:
type: string
constraints:
- custom_constraint: nova.flavor
+ update_timestamp:
+ type: string
# for upgrading single particular package (this works fine)
+ ControllerUpdateConfig:
+ type: OS::Heat::SoftwareConfig
+ properties:
+ group: puppet
+ options:
+ enable_hiera: True
+ enable_facter: False
+ inputs:
+ outputs:
# for updating all packages (not tested, just an idea, or use some bash script instead of puppet for invoking the command)
+ ControllerUpdateConfig:
+ type: OS::Heat::SoftwareConfig
+ properties:
+ group: puppet
+ options:
+ enable_hiera: True
+ enable_facter: False
+ inputs:
+ outputs:
@jprovaznik
jprovaznik / gist:81576ed823d627c1a6cc
Created July 11, 2014 18:14
haproxy for rabbitmq - quick hack done on built image
[tripleo@ibm-x3550m3-15 tripleo-image-elements]$ git diff elements/rabbitmq-server/
diff --git a/elements/haproxy/os-config-applier/etc/haproxy/haproxy.cfg b/elements/haproxy/os-config-applier/etc/haproxy/haproxy.cfg
index eb9bcb8..98e07f1 100644
--- a/elements/haproxy/os-config-applier/etc/haproxy/haproxy.cfg
+++ b/elements/haproxy/os-config-applier/etc/haproxy/haproxy.cfg
@@ -40,6 +40,20 @@ listen {{name}}
{{/nodes}}
{{/services}}
@jprovaznik
jprovaznik / gist:9662754
Created March 20, 2014 12:32
overcloud-ha.yaml
Description: 'Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
server,Dedicated RabbitMQ Server,Group of Nova Computes,Swift-common: Openstack
object storage common configurations'
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
KeystoneURL:
Description: URL for the Overcloud Keystone service
Value:
Fn::Join:
- ''
Description: 'Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
server,Dedicated RabbitMQ Server,Group of Nova Computes,Swift-common: Openstack
object storage common configurations'
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
KeystoneURL:
Description: URL for the Overcloud Keystone service
Value:
Fn::Join:
- ''
Description: 'Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
server,Dedicated RabbitMQ Server,Group of Nova Computes,Swift-common: Openstack
object storage common configurations'
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
KeystoneURL:
Description: URL for the Overcloud Keystone service
Value:
Fn::Join:
- ''
Description: 'Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
server,Dedicated RabbitMQ Server,Group of Nova Computes,Swift-common: Openstack
object storage common configurations'
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
KeystoneURL:
Description: URL for the Overcloud Keystone service
Value:
Fn::Join:
- ''