24 Commits

Author SHA1 Message Date
Carlos Camacho
b979667b1a Remove unnecesary spaces in log messages.
Spaces added by mistake in some log messages.

Change-Id: I64b6b0cc60476500d91bd9eb9331619caa5b592e
2016-09-27 17:23:37 +02:00
Jenkins
da589acf11 Merge "Add hooks for external install & svc management" 2016-09-21 04:24:24 +00:00
Adam Vinsh
9fe25f3a23 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: I31c023824e428ad0fc3dad30b4d3103aaa747597
2016-09-17 17:11:05 -06:00
Carlos Camacho
88656e9d44 Fix puppet-lint before upgrading gem
Removing puppet-lint warnings in favor of
upgrading the puppet-lint gem

2016-09-13 21:05:00.043653 | examples/ironic.pp:55:WARNING: unquoted node name found
2016-09-13 21:05:00.043728 | examples/ironic.pp:84:WARNING: unquoted node name found
2016-09-13 21:05:00.043749 | manifests/api.pp:120:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043767 | manifests/api.pp:124:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043785 | manifests/api.pp:128:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043803 | manifests/api.pp:132:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043822 | manifests/api.pp:136:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043840 | manifests/api.pp:140:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043858 | manifests/api.pp:196:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043877 | manifests/inspector.pp:233:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043910 | manifests/inspector.pp:237:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043929 | manifests/inspector.pp:241:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043947 | manifests/inspector.pp:245:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043965 | manifests/inspector.pp:249:WARNING: line has more than 140 characters
2016-09-13 21:05:00.043984 | manifests/inspector.pp:325:WARNING: line has more than 140 characters

Change-Id: I2fd5466639b5fd8eb709b8f2f55984c073a0c99d
2016-09-14 11:26:16 +02:00
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
Alex Schultz
95d0af7ec8 Add memcached_servers for keystone authtoken
This change adds the abiltity to manage the memcached servers for the
keystone authtoken configuration in ironic::api

Change-Id: I43af512ffd7662366534128ef2e5836d5a506252
2016-06-30 15:15:07 -06:00
Andrey Shestakov
bf6842e525 Add public_endpoint parameter
public_endpoint allows to set URL to use when building the links to the API
resources.
If the API is operating behind a proxy, user will want to change this to
represent the proxy's URL.

Change-Id: Ic85497dd957cf1de738da728c1b0f5b87fecfb79
2016-05-17 13:38:04 +00:00
Emilien Macchi
fc36b718f9 Use identity_uri and auth_uri by default
Drop old auth_ parameters that were deprecated, to use by default
identity_uri and auth_uri.

Also deprecate auth_version which has no effect when using identity_uri
and auth_uri.

It keeps default values from before.
Closes-Bug: #1528963

Change-Id: I624ee69268ceaf9adf075509c5f2a5359aef1ff1
2016-01-08 10:53:15 -05:00
Emilien Macchi
2af5037a07 Implement WSGI support for Ironic API
* Using the same method as other OpenStack modules, add WSGI support in
  manifests.
* Change functional testing to run apache by default.

Change-Id: I96047373b8ee27eade21e1b5b466d8bb7259ddb8
2016-01-07 15:05:04 -05:00
Emilien Macchi
3654632762 Allow to configure api_workers
Add api/api_workers configuration with a new parameter.

Change-Id: I01c83a6daa3909d4d9b1cb559836b7b5e54c7c7e
2016-01-06 10:53:36 -05:00
Dan Prince
490699ff66 Add support for identity_uri.
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: Ibcc63d82b6e7b9de6ef12209a43f39a4cdecb5a2
2015-09-14 13:30:39 -04:00
Jenkins
6a29e260bb Merge "Fixed the comment for port in ironic api.pp" 2015-08-14 07:56:27 +00: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
nanhai.liao
93c68b626f Fixed the comment for port in ironic api.pp
Change-Id: Ia9e5557aa178ab101b33789ba9f3fadea8a0712a
Closes-bug: #1483608
2015-08-12 11:33:17 +08:00
Yanis Guenane
49dc0e100f Add tag to package and service resources
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 'ironic-package' and 'ironic-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 == 'ironic-package' |> -> X

Change-Id: I7cea635625e841db05a5163e7b7ea5a138c3c307
2015-07-22 20:27:38 +02:00
Sebastien Badia
45c6ec1704 lint: Fix lint issues (missing documentation for define types)
The gem 'puppet-lint-param-docs' was bumped to 1.2.0 and now handle
class and define type. This patch fix lint issues (missing documentation).

Change-Id: I9899719b9e81c1769a4577cbe1d35caeee231785
2015-06-25 11:34:06 +02:00
Gael Chamoulaud
952bed761b Tag all Ironic packages
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: I4ad01a9f55deb441fec12ffa0541584fb5e07478
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-28 19:43:07 +01:00
Gael Chamoulaud
1b44b7d826 Add Puppet 4.x lint checks
- This changes the puppet-lint requirement to 1.1.x, so that we can use
  puppet-lint plugins. Most of these plugins are for 4.x compat, but some just
  catch common errors.

Change-Id: Ic47d53384592637dd27c3d0851fe24861ee1ed81
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-20 17:15:32 +01:00
Ryan Hallisey
7f5d4ed694 Fix Ironic modules so services properly run in Juno
Initially, the module was not creating an ironic.conf file and now
it does.  The configurations that are being put into the ironic.conf
file come straight out of the documentation.

The ironic-conductor service requires the execution of 'ironic-dbsync'
before it can be active.

In the params module, the 'RedHat' packages and services were named
incorrectly or were otherwise missing.

Change-Id: I73cecc590038fa7d9518453c448bfc243ddedff1
2015-01-22 17:10:39 -05:00
Yanis Guenane
a8b26db75a policy.json: Allow one to manage them from the puppet module
This commit allow a deployer to manage the policies via this module
It relies on augeas to change only the policy needed. The init takes
a hash of policies and apply them.

Change-Id: I8bd71a740294394009b2ad581121a9999956b5d0
2014-11-10 15:06:03 -05:00
Jenkins
b32027728c Merge "Add arguments for configuring Keystone credentials" 2014-07-23 10:16:06 +00:00
Soren Hansen
f8184a7846 Add arguments for configuring Keystone credentials
Change-Id: I5523633c68a4e24829024f02937418b3c64df32f
2014-07-11 10:21:29 +02:00
Soren Hansen
f95e82c498 Remove circular dependency
Change-Id: Ic0d36934b40ced90564a1e1ad79ec1138fd39767
2014-07-10 16:14:05 +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