7 Commits

Author SHA1 Message Date
iberezovskiy
eef5b11679 Configure keystone authtoken options
Add ironic api and inspector authtoken classes to
configure keystone authtoken related parameters.
Unit tests are updated accordingly.

Deprecate some parameters in api and inspectore classes:
  - ironic::api|inspector::admin_tenant_name is deprecated
    in favor of ironic::api|inspector::authtoken::project_name.
  - ironic::api|inspector::admin_user is deprecated
    in favor of ironic::api|inspector::authtoken::username.
  - ironic::api|inspector::admin_password is deprecated
    in favor of ironic::api|inspector::authtoken::password.
  - ironic::api|inspector::identity_uri is deprecated
    in favor of ironic::api|inspector::authtoken::auth_uri.
  - ironic::api|inspector::auth_uri is deprecated
    in favor of ironic::api|inspector::authtoken::auth_uri.
  - ironic::api::memcached_servers is deprecated
    in favor of ironic::api::authtoken::memcached_servers.

Closes-bug: #1604463

Change-Id: Idcb9557ab0b42b2a0dba7cf2ab6a5ccf52dd1d23
2016-08-18 13:43:10 +03:00
ZhongShengping
a70ee4fb7e Add api_paste type/provider for Ironic
Add ironic_api_paste_ini type/provider for Ironic.
Also add the capability to configure api-paste.ini with config.pp.
Closes-bug: #1483371

Change-Id: I0a5ba71e577b87ad469fd624a73033a1a8ea6b82
2016-02-16 09:23:11 +08:00
John Trowbridge
0358830fa7 Add ironic-inspector support
Add the ability to configure the ironic-inspector service
for doing introspection of bare metal nodes.

Closes-Bug: 1486197
Change-Id: I9b2917a2c3f6afe75dc295c81d09f7a12856007f
2015-10-06 09:17:41 -04:00
Yanis Guenane
bb1bab5b28 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in ironic_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 :

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

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

That means that all the current :

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

can be removed in favor of :

ironic_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 :

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

Change-Id: I35ddb5c9f90cb5c65ceca64abf1c4881e4216554
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 11:02:55 +02:00
Yanis Guenane
69fa700138 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: I121f3cf146d9909cd549bd2e252f8cc645e5a030
2015-08-12 19:07:12 +02:00
Emilien Macchi
65faf63162 API, Conductor, Drivers, Specs
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2013-11-30 01:08:04 +01:00
Emilien Macchi
e5b4e458ab First commit with basic manifests
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2013-11-25 20:59:48 +01:00