In order to be able to take an action after all the packages of the
module have been installed/updated or all the services have been
started/restarted, we set a 'heat-package' and 'heat-service' tag
for each package and service of this module.
At the moment, there is a generic openstack tag that is not specific
enough if one wants to take action upon a single module change.
Use case :
If an action needs to be taken after all the packages have been
installed or updated : Package <| tag == 'heat-package' |> -> X
Change-Id: I38a6b422054dbf0fceacf6b7e329dbb3cb0fa9cb
For some deployments (multi-DC) being able to increase the response
timeout for heat RPC's is vital.
Change-Id: Ib6a61e01ba9879315f9283c4fae34873ce89d338
Kilo oslo.messaging added heartbeating support for RabbitMQ
connections. This patch adds support for this in Puppet modules
by managing the oslo_messaging_rabbit/heartbeat_timeout_threshold
and oslo_messaging_rabbit/heartbeat_rate settings.
Change-Id: I19c82aacf83e5a4f7c9c5fbf76527f9713d6e846
Closes-bug: 1467667
Kilo oslo-messaging deprecates rabbit/kombu settings in the
DEFAULT section.
Move these settings to proper oslo_messaging_rabbit section.
Change-Id: I8cd5fb7b8074e0acd62535238fe73a4bb9869a5d
Closes-bug: 1444161
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
The other packages appear to already have this, but heat-common isn't
triggering a db sync, and at least on Ubuntu, if this package is
upgraded first, all the others get pulled in also. When that happens,
Puppet doesn't trigger a notification for the other packages and the db
sync is never run.
Change-Id: I454220ee6c501c416b60564fd3b1f00fdecfd296
Some users wish to override the default package provider by their own.
Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.
Closes-bug: #1391209
Change-Id: I09e54700438894e22d29605fec51bb056baf4050
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
Some 'should' keyword have been forgotten during the rspec2.x to
rspec3.x updates. This patch fixes that!
Change-Id: I4acffbbfb051fce7f48d401812fce2c1afcc137d
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This adds support for enable_stack_adopt and moves
enable_stack_abandon out of the engine manifest and into the main one.
Change-Id: I93629f2b2173a767669fec0b17107a69dbf759de
This patch aim to update our specs test in order to work with the
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.
In details:
* Use shared_examples "a Puppet::Error" for puppet::error tests
* Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
* Fix spec tests for rspec-puppet 2.0.0
* Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
* Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)
* Remove un-used puppet-lint (name_containing_dash config)
Change-Id: I1b82e4f6ec0b1bbf52e86c5d127413a26277ae8c
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
If you leave it commented out, heat defaults it to ec2-user which can be
confusing to users. This allows you to set the value.
Change-Id: I44fef59d3ed1f7851d8504855a7ae0d5460fdc84
This patch adds the ability to set a new identity_uri parameter.
It also deprecates the old auth_host, auth_port, auth_protocol,
and auth_admin_prefix parameters. Logic is in place so that
users of the deprecated settings should have a smooth upgrade
process and get deprecation warnings until they adopt the
new settings.
Change-Id: I833bbac9338553daf88459a311f14a3788d90dfb
In environments with more than one region, heat will just pick the first
endpoints it sees in the catalog unless the region is specified. This
allows the ability to tell Heat which region to use
Change-Id: I795315fee8955d9c1c29e273852f6dad3b777019
Option to Specify Authentication method.
Set flavor to 'standalone' to get Heat to work with a remote OpenStack.
Defaults to 'keystone'
Change-Id: I5ff596b6418d71726714ec69211352dd5f4b8db2
Implements: blueprint option-to-configure-flavor-in-heat.conf
Rabbitmq won't talk to us anymore if we try to use SSLv3 as it disabled
support for SSLv3. Openstack components use python's openssl
implementation which does not support TLSv1.1 and TLSv1.2 yet so we
just switch to TLSv1. Support for newer TLS should come with python
2.7.9+
Closes-Bug: #1409667
Change-Id: I949421cd092a31eab3ef7f2194c4da3a9dbac818
The kombu_ssl_* parameters should not be required when rabbit_use_ssl => true
Rather, rabbit_use_ssl must be set to true if the kombu_ssl_* parameters are
used.
Change-Id: If9cceb4f4090c8b39079aa1aae2f53640c9ac0ff
Closes-Bug: 1356083
Currently secrets like rabbit_password or admin_password are laked
puppet logs when changed. This commit changes heat_*_config and
heat_*_ini types adding a new parameter that triggers obfuscation
the values in puppet logs.
Change-Id: Ib06a0f967dd5d5f8cc1c4dc7257c0e196786e8ae
Closes-Bug: #1328448
This commit causes the run to fail is rabbit_use_ssl parameter is set
to true but the ssl related parameters remains undef.
Change-Id: If621de7ed4432c4ef79d18cee4da822ebadb0a4f
In Icehouse, the format of heat.conf has changed to be more consistent
with other projects. What used to be:
[DEFAULT]
sql_connection= ...
Is now:
[database]
connection= ...
This patch fixes the heat module so that it correctly populates
database connection information.
Change-Id: I6edc9c7b58dcd5569f20f202b9b665431c7b0845
Closes-Bug: #1308868
Puppetlabs-mysql has been rewritten to be much
cleaner. This patch adds a new parameter for the
heat mysql and init classes allowing users to use
the new version. Previous behavior will continue
as normal when using the old version (0.9)
Change-Id: I4d268d793740c31493acd5999dd3f8501cc1d281
Previously, auth_uri had a default address of 127.0.0.1 as did
the keystone_host parameter. This caused problems for users that
use a different IP address for Keystone. This can cause issues
where the keystone host is an actual address and the auth_uri still
uses 127.0.0.1. Additionally, this patch will allow the auth_uri
behavior to be consistent with the other OpenStack modules.
Conflicts:
spec/classes/heat_init_spec.rb
Change-Id: I81fc650606c419d25a2e13dc2093c8e4538fb997
Other OS services support the idle_timeout parameter that is
needed for reaping stale sql connections. This is important for
clustered databases.
Change-Id: Ia297410e61f246b2f5b4788b5d24961f070aa087
Previously, the module would create a keystone_ec2_uri parameter
in heat.conf. This flag does not exist within heat.conf.
Additionally, the auth_uri within [ec2authtoken] would use the
incorrect auth uri (standard Keystone URL instead of the EC2
URI).
Change-Id: I61bcf59c60617db07eb3fad3e3e23e8fd6ab9eff
This commit allows a user to disable logging to a directory (for
example if syslog is enabled, in order to not log twice).
Change-Id: I814bf8199fcf57f976e95b9bbf872478694b9d3e
Closes-bug: #1282296
include_class is deprecated since rspec-puppet 1.0.0.
contain_class should be used instead.
Closes-bug: #1263617
Change-Id: I0915f843e9fb35e94651498064ae12d00f6360d3
heat::db is different to every other project's puppet modules. All of
nova, glance, keystone and cinder take a "sql_connection" parameter to
the "main" (project name) class.
This removes heat::db and adds it into init.pp to maintain parity with
those projects. This seems more logical than adding it to engine.pp;
since heat-engine is only using the DEFAULT section of heat.conf.
Change-Id: I4584cdb12d1f9e624228e6ee34b4bcfbf649a12e
This patch is adding the support for Apache Qpid in Heat.
Change-Id: I0ea4bd403e09426b0173a1aa3493d5c7c23fc688
Signed-off-by: Francesco Vollero <fvollero@redhat.com>
Since we have now an only config file (heat.conf) with this patch:
https://review.openstack.org/#/c/36476/
This patch updates the module and delete old configuration files
support and add a test.
Also, I fixed some tab issues in manifests.
Fix bug #1207858
Change-Id: If3d044e2581156fa5ce4de19f5c740328efa0aa8