11 Commits

Author SHA1 Message Date
nanhai.liao
28426bab08 Add type/provider for paste configs
Co-Authored-By: Denis Egorenko <degorenko@mirantis.com>

Change-Id: I2ea1e2ee0eed241544d6e006306990d1db995ac7
Closes-bug: #1483371
2016-01-13 20:23:32 +03:00
Yanis Guenane
ed3732cc78 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in heat_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

heat_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

heat_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  heat_config { 'DEFAULT/foo' : value => $myvar }
} else {
  heat_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

heat_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

heat_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: Iaaf2e5755080ef32d7d585465aaea6fd408d0ece
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:37:05 +02:00
Yanis Guenane
0cf89d487e Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: I6476060c97d350640b5a254738a60e319ad522e9
2015-08-12 19:03:34 +02:00
Denis Egorenko
b7d19f43bd Remove deprecated parameter stack_user_domain
According to [1], stack_user_domain parameter is deprecated,
and now will be used stack_user_domain_name parameter instead.

[1] http://docs.openstack.org/kilo/config-reference/content/orchestration-configuring-api.html

Change-Id: I558eaf311af8751897c402b3d3c2d82b4fadb07d
2015-07-30 14:31:55 +00:00
Jenkins
de99d07d32 Merge "rename keystone_v2_authenticate method" 2015-04-21 20:53:29 +00:00
Emilien Macchi
d73a719477 rename keystone_v2_authenticate method
In puppet-neutron, keystone_v2_authenticate already exists and is in
colision with the keystone_v2_authenticate in puppet-heat.

While we move the whole method in puppet-openstacklib, let's just rename
the method from keystone_v2_authenticate to keystone_v2_auth.

Closes-bug #1429096

Change-Id: I15b6d0550bb3baef37d7536d264b822768802ad0
2015-04-14 17:40:24 -04:00
Lukas Bezdicka
2331ba06e3 Fix ipv6 support
There is issue with ipv6 where address has to be in brackets, this causes the
underlying ruby TCPSocket to fail. Net::HTTP.new will fail without brackets on
joining the ipv6 address with :port or passing brackets to TCPSocket. It was
found that if we use Net::HTTP.start with url.hostname the incriminated code
won't be hit.

Change-Id: Ia70e05098b52121d12b035bdab59685b086523db
Closes-Bug: rhbz#1185652
2015-03-20 09:55:25 -04:00
Martin Magr
41608dc6c8 Implement Keystone domain creation
Keystone domain has to be created for Heat. This patch implements this
via helper script [1] since we don't have support for Keystone v3 API
in puppet-keystone yet. This implementation should be refactored as soon
as we will have v3 API available in puppet-keystone. For more info
please check [2].

[1] https://github.com/openstack/heat/blob/master/bin/heat-keystone-setup-domain
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1076172

Change-Id: I036a84eee6b9d0afa9a9ed96849494324ba4c4db
2014-09-18 12:27:20 +02:00
Sebastien Badia
6a89a44f9d Hide secrets from puppet logs
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
2014-07-22 13:13:23 +00:00
Emilien Macchi
03ef6a7b7f Update the module for new config file method
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
2013-08-06 23:28:31 +02:00
Émilien Macchi
7b14b0f797 Add Providers & Types 2013-05-30 21:50:33 +02:00