Commit Graph

17 Commits

Author SHA1 Message Date
Clark Boylan f668e192ac Define reply_to_email_address
Puppet 4 was complaining that this variable was undefined. Define it to
make this warning go away.

We switch away from scope.lookupvar for consistency with the rest of the
var lookups in this file and to keep our conditional short.

Change-Id: I64cc9660a72bf5ab096c9c6f29080a838df5ddea
2019-03-07 08:28:25 -08:00
Witold Bedyk 85896f5c03 Set default_url for email notification
Email notifications about task status changes triggered from Gerrit do
not include correct Story URL. Setting the default StoryBoard URL should
fix that issue.

Change-Id: Ic639e344921c4265d3471ac9bd591a4ae489ae52
Story: 2001410
Task: 6106
2018-04-18 20:42:46 +00:00
Jeremy Stanley e5040616f3 Use utf8mb4 for MySQL database charset
The default "utf8" character set for MySQL only supports up to
3-byte codepoints. In order to support text with 4-byte codepoints
(at the expense of some additional storage) explicitly use "utf8mb4"
instead when creating and connecting to the database.

Change-Id: I25bd7b5d2a904dad3e13efaf2da94cce205bcc0b
2018-03-27 17:32:50 +00:00
Adam Coldrick 9d27b4e5d6 Add config template for the email plugin
Change-Id: Iafa85f86cc10f0cd4c45224e45038a9d5594f9d7
2016-01-04 15:32:10 +00:00
Michael Krotscheck 9cff9d2142 Added new OAuth Parameters
Storyboard.conf now accepts authorization_code_ttl and a list of
valid_oauth_clients.

Change-Id: I29495a0b640c3ca097cca8c17349df5cc42388de
2015-03-04 09:27:27 -08:00
Michael Krotscheck 936abca6a6 Updated storyboard configuration for pymysql.
In order to support Python3, https://review.openstack.org/#/c/152339/ is switching
to a mysql driver that's supported by Python3. This updates the puppet module to use
the new connection string.

Change-Id: Id5d9eacd8de5700675848d3129b189fad07a221b
2015-02-23 12:36:15 -08:00
Michael Krotscheck 12bb2c8d42 Moved working_directory configuration element into correct block.
The working_directory config flag was in [oauth] block, when
it should have been in [default].

Change-Id: I4f6d632d7dce4c856cba2569246ab6101224de60
2015-02-23 12:34:38 -08:00
Michael Krotscheck 27b9f13f0b Disabled Cron workers on Storyboard.
Storyboard is currently failing because of requests to get the working
directory are failing. This disables that configuration option so
we have some time to investigate.

Change-Id: I8d0b8d6ce350836b8eba5822e1aa6e9920d7dc8e
2015-01-20 09:13:21 -08:00
Marton Kiss 7fe4951d7d Add missing working directory to filesystem and storyboard config
Solves the directory creation issue mentioned in that patch:
https://review.openstack.org/#/c/148592/

Change-Id: I9bef14d695c9bb1bb29790132566d4ed04bec544
2015-01-20 16:46:50 +01:00
Michael Krotscheck aca28c6fa2 Added Cron and Token Cleanup to configuration.
This patch adds the new oauth config section from
https://review.openstack.org/144355, as well as the cron enabling
flag from https://review.openstack.org/129609/. Both are defaulted
to false in storyboard, so until this patch lands the features
will not be enabled.

Change-Id: Iedd1d8fb9b734c4356a922b6781395249ae14ed4
2015-01-06 10:53:13 -08:00
Michael Krotscheck 23410116c6 Added CORS configuration to puppet-storyboard
Storyboard will soon support CORS, which is configured via
storyboard.conf. This patch adds the two relevant properties
to the puppet module, and makes them accessible in
storyboard::application.

Depends on https://review.openstack.org/#/c/124163/

Change-Id: I33a33076a18a9192b067a9f6f08d752ff8c22e3b
2014-09-25 14:48:51 -07:00
James E. Blair cd3f27298d Make enable notifications a flag
So that it can be disabled.

Change-Id: I04d20b491cfa0c897160d9fc78c37a164cd09122
2014-08-26 18:40:19 +00:00
Michael Krotscheck fb38fa63b3 Added RabbitMQ to StoryBoard
In order to support subscriptions in StoryBoard, we're adding a
queueing system to support triggered events. The specification in
question is #95307, which goes into detail on the various different
options evaluated. I also anticipate that this system can be used
for report generation.

Change-Id: Ia4cc91f1e75365a9fb41ca163e55548023233412
Story: 96
2014-08-13 11:31:14 -07:00
Michael Krotscheck 4fdd12b7f5 Modularized StoryBoard Module
In order to get the puppet module for storyboard up to a level where
we can publish it to puppetforge, I did some work on it to create
separate modules which can be used by anyone to install storyboard.

- API and Webclient are now installed via storyboard::application,
  which assumes that you can provide the DB connection criteria.
- storyboard::cert is now a separate class, which accepts either
  files or strings, which generates the SSL certificate and chain
  files for storyboard.
- storyboard::params is our dependency checker.
- storyboard::init will install a standalone, entirely
  self-contained instance of storyboard.
- Added various puppet module files necessary for eventual
  deployment to puppetforge.
- Added README.md documentation for later puppetforge addition.

This patch also includes a new module: example42-puppi, which is a
series of convenience utilities useful for deployment. For example,
puppi::netinstall (used here) will fetch tarballs and zip files and
extract them into a provided directory. It also contains changes to
the storyboard configuration for the new refresh token support patch
in #94363

Change-Id: I6ab8c24b308df38774fc0694d218dcb5022cd899
2014-08-13 00:14:39 +00:00
Monty Taylor 4e5338a964 Put a default section header above the TTL
Turns out that ini files need section headers.

Change-Id: Ia6c715fa4e47135ad3a81577db9a8749342b654d
2014-08-13 00:14:39 +00:00
Nikita Konovalov 716abb695f Storyboard token expiration increased
Expiration is set to 24 hours.
This should be merged before https://review.openstack.org/#/c/84107/

Change-Id: Ie3ba222caf2b8c6c20ffcac0cbd94bc8b4e2a83d
2014-08-13 00:14:39 +00:00
Ruslan Kamaldinov cee4845d02 Add Storyboard puppet module
There are two major parts being installed with this module:
1. storyboard-api - REST API service served  with
   apache mod_wsgi module
2. storyboard-webclient - static html/css/js files.
   This project is built and published to tarballs.o.o,
   from where it'll be installed with this puppet module

This module requires three configs from Hiera:
* storyboard_db_host
* storyboard_db_password
* storyboard_db_user

Installed projects:
* http://git.openstack.org/cgit/openstack-infra/storyboard/
* http://git.openstack.org/cgit/openstack-infra/storyboard-webclient/

Things to be added in later commits:
* Documentation for ci.openstack.org.
* Configure logging (once supported by storyboard.)
* SSL.

Change-Id: If3da06f8d20a6282036f1f9f063c25a6d0db60c6
2014-08-13 00:14:14 +00:00