46 Commits

Author SHA1 Message Date
Thomas Herve
9b0dd8fed5 Allow configuration of trust notifier
To be able to use the trust notifier, we need to fill the trustee
section in the configuration.

Change-Id: Ibba7af4983303f3b85aa399f77391ba6bc984e8d
2017-07-19 14:25:26 +02:00
Thomas Herve
610d9bc987 Expose websocket notification settings
This exposes new settings for the websocket service.

Change-Id: I75d5708bec88d9834f2cb4cbad414233854520ad
2017-07-12 14:56:44 +02:00
ZhongShengping
673da3b664 Remove deprecated keystone authtoken signing_dir option
Change-Id: I7127fa24716b12f44e77f76dda83952a4b73efc2
2017-07-07 10:01:29 +08:00
Emilien Macchi
03ec6b4711 include policy class in api.pp
Like we do in other modules, include zaqar::policy class in
zaqar::server so users can define policies without taking care of the
class.

Change-Id: I9f549f11bd4e939ad41ff77c51dd2f32338621c8
2017-06-15 14:14:28 -04:00
Jenkins
33ee86a64d Merge "Add oslo::db to dependency chain" 2017-04-27 01:16:25 +00:00
Jenkins
404f469173 Merge "Add the setting log level" 2017-04-19 10:04:53 +00:00
ZhongShengping
19462cb3ee Add the setting log level
Increase the setting log level in the synchronization database.

Change-Id: Ia2fc51601ed54837c2b5e7da34e9ea12f1d0bf62
Closes-Bug: #1683567
2017-04-18 11:42:25 +08:00
Thomas Herve
ec305d3b3c Add logging options
This adds various logging options to the services, and it particular
sets log_dir by default.

Change-Id: Icd0936777e7dfea2dd4a1d1e3f7d6abb11e3e7ae
2017-04-13 09:56:28 +02:00
Thomas Herve
d1e35d4e6b Fix db-sync
This fixes the command used to sync zaqar database.

Change-Id: I9e57885796a6ba2efe8d7a16528d582163ae896a
2017-03-07 22:14:59 +01:00
Thomas Herve
c7354c9934 Allow configuration of Zaqar keystone roles
To be able to use the swift backend, we may need to configure Zaqar to
have the proper role to access Swift. This exposes the roles parameter
to allow that.

Change-Id: I9ce1bbc18d02383a5cdd3edbcf8c65c90165fb53
2017-03-02 11:52:22 +01:00
Thomas Herve
4a5a1fd46d Allow deployment of Zaqar WSGI with Apache
Change-Id: If91894176abdfae2820c2e13723c87f5ef8fb153
2017-02-22 13:13:12 -05:00
Thomas Herve
889be10904 Add support for the swift backend
This adds support for running swift as the messaging backend of Zaqar,
and SQLAlchemy as the management backend.

Change-Id: I448d303d01e33a0d89625d7ff442b652838d9c36
2017-02-14 14:18:10 +01:00
DeepaJon
c08abdc641 Add oslo::db to dependency chain
All db settings should be applied and all releated packages should
be installed before dbsync starts.

Change-Id: If5d4076315df5d4d5c9672a8265c126bf4d06ab8
2017-01-27 12:09:17 +00:00
Matthew J. Black
aaaa38c198 Allow python-memcache install from authtoken class
The python-memcache package is required if using memcached. By
default the package is not installed and the define has it set to
false. This change allows managing the python-memcache package
install from the authtoken class.

Change-Id: Id0d980618cd3816172e491b20058d540d6d1ed41
2017-01-11 18:36:16 -05:00
ZhongShengping
fa7c8ba473 Deprecate signing_dir option
The signing_dir is deprecated for removel because of PKI token format
is no longer supported.
Update warning message and release note.

Change-Id: If82b345969da11d2187a7919fd213275f1cf8339
Closes-Bug: #1652700
2016-12-28 14:43:37 +08:00
ZhongShengping
c21c7126f8 Add test for sync
Change-Id: I01d0d5f50b294a4b9593a651f50cf7b5a2fddd70
2016-12-12 16:41:13 +08:00
ZhongShengping
c54428f524 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: If4f585264f5f5a15549855d97b532866d91f5215
2016-12-07 16:49:58 +08:00
ZhongShengping
a85d3bc12c Fix lint issue
Change-Id: I17aa1e00ca1bba58a41b47cf3c8cdf98b5b6ab5d
2016-11-30 10:45:23 +08:00
ZhongShengping
7cf66df9e1 Add support for Debian system
We can add suport for Debian system due to have the
zaqar package in Debian system.
The Debian system does not support the use of services to run
a second instance, because there is no zaqar-server@.service
in zaqar package, so do not test it. I will Re-test it after
the zaqar package solve the problem.

Change-Id: I026b7d8f2b5994114d5a319200ed7c7d099b4fb5
2016-11-29 12:53:23 +08:00
Iury Gregory Melo Ferreira
641be0c1e0 Remove old authtoken options
Since we are in ocata lets remove all old parameters in api
to configure the keystone_authtoken section

Change-Id: I4950c5dba0eb257412fe2d2d39f1780b431c05d4
2016-11-18 00:54:16 +00:00
ZhongShengping
7436100653 Add purge_config option
Add the option in order to facilitate management.
User can ensure that only the options they hoped
are configured.

Change-Id: Iade2197388b1aa114f2fd9e2ab53a62f1f45c4e9
2016-10-27 00:36:46 +08:00
Sharat Sharma
abb350c4d9 Added retries for db_sync
If db sync fails, it is never retried leading to errors. So, this
patch adds retries for db_sync to avoid sync fails.

Change-Id: Id89665099079ab5e4c468f7f30953762a248af01
Closes-Bug: #1628580
2016-09-29 14:15:01 +00:00
Emilien Macchi
c510b3b66d dbsync: don't require User resource
User[zaqar] is not in the catalog, don't try to require it, it doesn't
exit!

The dbsync is run after package management so we're good.

Change-Id: Ie642f9ec6e6acc0765bc88ec4438a01a5618563b
2016-09-14 22:02:01 -04:00
Iury Gregory Melo Ferreira
a95b356f0f Move authtoken to class
Update module to work with the new schema for authtoken

Change-Id: If7eca0a769651b13a996558e6318ac682eff24f6
Closes-Bug: #1604463
2016-08-04 12:25:34 -03:00
Iury Gregory Melo Ferreira
6ddcb152e9 Move zaqar to authtoken
In zaqar, use keystone::resource::authtoken to configure
keystone_authtoken section in the configuration file,
with all parameters required to configure keystonemiddleware.
This patch will allow to deploy zaqar to use Keystone v3 authentification.

Some deprecations:
- zaqar::identity_uri is deprecated in favor of
zaqar::auth_url
- zaqar::admin_user is deprecated in favor of
zaqar::username
- zaqar::admin_password is deprecated in favor of
zaqar::password
- zaqar::admin_tenant_name is deprecated in favor of
zaqar::project_name

Change-Id: Ie825ce4d88ca4a2a33a7ced6e413ddc59f28ef1c
Related-Bug: #1604463
2016-07-24 16:50:00 -03:00
Dan Prince
24b18afe18 Add param to set max_messages_post_size
Change-Id: I07a8b3c659a367f65b9d4cd700912a419e50a472
2016-07-20 15:16:29 -04:00
Jenkins
5c694c2562 Merge "Include openstacklib defaults manifest." 2016-07-11 13:00:55 +00:00
Sofer Athlan-Guyot
1e4976ea58 Include openstacklib defaults manifest.
This provides a mechanism for setting default across all modules.

Change-Id: If0e6588783328df7a8edcf83a3fdffa419f0fa82
Related-Bug: 1599113
2016-07-08 09:04:30 +00:00
Dan Prince
837dad71f2 Add zaqar::keystone::auth_websocket
Adds a new zaqar::keystone::auth_websocket class to help
create a 'messaging-websocket' Keystone endpoint. Users of
zaqar websockets currently have to do substring replacement on the
Zaqar HTTP URLs... having a dedicated endpoint for websockets will
be much better.

Change-Id: Idd3ca1765604d9a461f68fc7b4a18b23a3c19d5b
2016-07-07 15:56:59 -04:00
ZhongShengping
c2acaba000 Provide default service_name for keystone endpoint
This change updates the zaqar::keystone::auth class to include a default
service_name of 'zaqar' so that if a user changes the auth_name, the
service is still created as being related to 'zaqar'.  This improves the
user experiance when they want to customize the usernames for services.

Change-Id: I2977790c3558732c2a1773aa3ede834c1d62ca16
Closes-Bug: #1590040
2016-06-08 13:52:19 +08:00
Jenkins
7820dca770 Merge "Add params to configure zaqar storage pipelines" 2016-05-21 15:23:50 +00:00
Dan Prince
ad63a4b940 Add params to configure zaqar storage pipelines
This patch adds parameters to configure the storage/*_pipeline
parameters for zaqar. These parameters are quite useful is you
wish to recieve notifications for Zaqar. In particular the
message_pipeline would often get set to 'zaqar.notification.notifier'
so that messages that have been subscribed to could be recieved.

Zaqar upstream has these set to nothing upstream so for now
setting the default to $os_service_default seems reasonable.

Change-Id: I14eade5ef0ac64f8856bfa455c4f9aaf51dd6c8d
2016-05-18 19:42:58 -04:00
ZhongShengping
ac45966573 Use oslo module for logging and policy configuration
Change-Id: I6a6c3dc4a54ac72ab212b3bd1a82d9f023876650
2016-05-09 08:34:59 +08:00
Denis Egorenko
ba00e81f17 Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: I5eb5a0b7fc5be00cdd98ef922aa66da679d1cb0a
2016-04-18 14:21:07 +03:00
Alex Schultz
366deb93cb Switch zaqar to use rspec-puppet-facts
This change updates the tests to use rspec-puppet-facts. Additionally
this change fixes the relationship in zaqar::server_instance for Debian
based systems.

Change-Id: I03ce4ee17feec1f0ea7012ea116c9c12cf3bde5f
2016-02-18 21:35:02 -07:00
Dan Prince
6c05509bcc Add zaqar::transport::wsgi class
This class helps manage zaqar transport settings for wsgi.

Change-Id: I668ecc79f1684438beff620394711c6bb8f2cc34
2016-02-17 08:23:58 -05:00
Dan Prince
623ed3789b Add zaqar::transport::websocket class
This class helps manage zaqar transport settings for websockets.

Change-Id: Idf9589785431c32ac2678351ca326e8a0d4d57d5
2016-02-17 08:23:58 -05:00
Dan Prince
e9b736c8eb Add zaqar::server_instance class.
This class manages N instances of zaqar-server each using an
alternate /etc/zaqar/n.conf file to control select service
settings which take priority over settings in /etc/zaqar/zaqar.conf.

The primary use case for this class would be to enable websockets
alongside of wsgi. The only way to do this with Zaqar today is
to run multiple processes.

Change-Id: Ib730206ece73efe57aca7df4a65c906e95cdd606
2016-02-17 08:23:57 -05:00
Dan Prince
ecadc5930d Add zaqar::server class
This class manages the primary zaqar-server process.

Change-Id: Ie062d1ff4dd2a3adef5bcc9d36eca2f67a39048c
2016-02-16 15:33:51 -05:00
Dan Prince
b731e48bf4 Add zaqar::messaging::mongodb
This class is used to enable and configure the mongodb
messaging driver.

Change-Id: I1843aa1506103f92dd3bb8057eca9d2120a5d7b1
2016-02-16 14:34:10 -05:00
Dan Prince
e55ebf275c Add zaqar::management::mongodb
This class is used to enable and configure the mongodb
management driver.

Change-Id: I3d40e835d3bd51bc536e5cf111254907caeea67d
2016-02-16 14:34:10 -05:00
Dan Prince
a5a474d4d8 Implement zaqar::init class
This configure high level (non-driver) settings for zaqar
in addition to keystone auth settings.

Change-Id: Iec49c7aca993fcb44e89d27b17c0aaadb24452d9
2016-02-16 14:34:08 -05:00
Dan Prince
5a0b65b1ea Updated defaults for zaqar::keystone::auth
Update the defaults for keystone::auth so that they are
consistent with the project (python-zaqarclient, etc.)

Change-Id: I317fb47a1326eb577dd0fa8ec5eb2d7ac842c4af
2016-02-11 20:10:45 -05:00
Swapnil Kulkarni (coolsvap)
8b454bc7eb Update typo
Change-Id: Ia2e763e1a72157d17d03f1af885fe146eaf6bcc4
2016-01-08 03:32:14 +00:00
Emilien Macchi
eaf21d19ee Make Keystone_endpoint match service by name/type
Since a chance in puppet-keystone (1], we now match an endpoint with a
service name/type.
)
[1] http://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=0a4e06abb0f5b3f324464ff5219d2885816311ce

Change-Id: Id31829908be2818ba5afe121caf79d97300dd20f
Closes-Bug: #1528308
2015-12-22 18:13:36 +01:00
Richard Raseley
33c0956a92 puppet-zaqar: Initial commit
This is the initial commit for puppet-zaqar.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: Iaca8f89dd22320ec0e08bfb8ec9b5912ad68c9fb
Co-Authored-By: yguenane@redhat.com
2015-08-25 09:59:38 -07:00