Commit Graph

36 Commits

Author SHA1 Message Date
Andreas Jaeger 29479ea290 Retire puppet-apps_site (2/3)
Remove all content and add a README.rst to explain retirement.

Depends-On: I638cc127d3588d757a4da01984a2bd292a84413c
Needed-By: I8dbc25c8a0de61ef72d53b58cf8aae3e91f41442
Change-Id: I802957611fccf66a6cd74cb7e9a35c74cc875a8c
2017-12-10 20:40:40 +01:00
Colleen Murphy 146153bac5 Depend on helper gem for spec_helper_acceptance
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.

Change-Id: Ib8d118b40ff3a844300d46dd65c2732c5be82e55
2017-08-18 10:41:43 +02:00
Colleen Murphy 300023f403 Fix beaker on xenial
Update the spec helper to install puppet 3 from the Ubuntu repos instead
of from puppetlabs.

Change-Id: I42d5adc2f489d3b6b17fd8ce027c954cd9b3a59c
2017-06-24 15:29:02 +02:00
Paul Belanger b310bf97ac Add bindep.txt file
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.

Change-Id: I8963906c0d164a032d15ac0887080b1cd753899b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-02 14:00:33 +00:00
Paul Belanger 342e9901ca
Fix puppet-lint job
Lets make our puppet-lint job happy again.

Change-Id: I68b8aca27a00bad3b63ac0b9d447ac347d1d7aad
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-02 09:55:07 -04:00
Ivan Udovichenko dd854d9988 Ensure that memcached service is installed and running
Currently App catalog with Glare will not allow
to log in if memcached service is not running.

Other minor changes to get rid of lintian warnings.

Add retries to assets import due to timeouts from time
to time.

spec/acceptance/nodesets/ :
  - nodepool-centos7.yml :
    * Make host file compatible with beaker-hostgenerator 1.x

  - nodepool-xenial.yml :
    * Add host file for Xenial.

Change-Id: Id5466d346b2fd3e67bb8d0c3a9e5f6ad9d586b45
2016-12-16 15:22:07 +03:00
Ivan Udovichenko 5dd27aca8c Add glare-db-sync call before service start up and fix minor issues
glare-db-sync should be called before the service
start up and right after package installation.

Remove default vhost completely.

Change-Id: I6e07f99a69b8beedac49edd1cf8f551ebb5c569d
2016-11-25 22:54:59 +03:00
Bartosz Kupidura 8b72875d3c Glare support for app-catalog
This commit should allow to deploy app-catalog with glare support
introduced by Ib5c6920c90f566d73a5f9e8ed545f0e082a0b20e

Change-Id: I9fbe756cfcc2456587c0395e88f14681a1e43ee4
2016-10-12 09:38:32 +02:00
Christopher Aedo 389e331d6b Include package python-dateutils
A script that runs when an asset is added to the app catalog
relies on python-dateutils. When it is not available, it
fails silently, and does not update the date that asset was
last modified. This commit will include that package.

Change-Id: I43b42c8e9d2a6053f9817c63bdc65c5b35eec485
Closes-Bug: 1553572
2016-08-22 17:21:10 -07:00
Spencer Krum e85166ef32 Use new infra_spec_helper for gem dependencies
Change-Id: I7b4ecbcd870eb4b7bc60860672573b5186509001
2016-06-21 18:37:36 -07:00
Spencer Krum b8531a7d1d Pin google-api-client; sanitize Gemfile
Change-Id: I6effd32fb24acf6fae6ab5ed415e839c17c87391
2016-04-14 15:16:52 -07:00
Andrey Nikitin ee55a0b325 Order of the class parameters is refactored
Order of those parameters is changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: I6930da346e9bb4f2c7ceb865e8562468d9d5a19e
2016-03-20 01:39:45 +03:00
Christopher Aedo 8329ddc278 Update app-catalog commands
This commit updates the App Catalog manifest to execute the proper
commands for generating static and compressed content such that the
content  will appear in the install directory as and when expected.

Change-Id: I130878728ce3a1ae06e9823fcd3db1aa1fa5285d
2015-12-02 16:21:18 -08:00
Christopher Aedo e5b4919277 Update paths for production Apps site
This patch updates the paths to prevent puppet
from making changes to the location where the
git repo is checked out.

Change-Id: I41ac378d98e5e3423d6538fb7cf90323ca9d5ac6
2015-11-20 14:53:20 -08:00
Christopher Aedo 8fd856b594 Add python WSGI server
This commit adds and configures mod_wsgi
for apps.openstack.org.

Change-Id: I860ba015aff8e555a69c361b414e3214e9a2107f
Depends-On: I2fa9686d3e5db4ee43a02aa7d09b998472e02bf6
2015-11-20 13:38:29 -08:00
Christopher Aedo c2814473c9 Add SSL support for apps.openstack.org.
This commit enables SSL support for the
App Catalog.

Partial-Bug: 1496611
Change-Id: I87180f34d583b7319e4964d8e97c53279554f3f3
2015-10-02 17:17:26 -07:00
Kevin Fox 962f316fb4 Fix for Murano Liberty version issue.
Murano does not support tagging packages in a way so that they can
add features to a package without making it break with older
engines. The app catalog does not support versioning yet, so we
need a way to let the Liberty Murano find Liberty packages
separate from the Kilo ones. This change sets up a way for the Murano
engine to specify what version it is and we can update the endpoint
later to target Liberty specific Murano packages.

Change-Id: Icb869e9ac8e9795e93d8922600d900522b759e08
2015-09-17 11:36:59 -07:00
Christopher Aedo fb6c041ffc Resolve errors in puppet runs
This commit resolves errors that are being
triggered in puppet runs for the App Catalog
hosted on OpenStack Infra by removing the
unnecessary commands to create directories
and by checking for OS disto codename before
attempting to install the zopfli package.

Change-Id: I9444087c3aa1001616af88303d8ce04fc7050b47
Closes-bug: 1495648
2015-09-14 11:37:36 -07:00
Christopher Aedo d0551caf67 Update source repo after rename
This commit updates the line specifying the
repository holding the contents for the
App Catalog web site, which is being moved
from stackforge to openstack.

Change-Id: Ib88c339eb176ecb17cce5ddedb02cf726d6983cf
Depends-On: Icad6f97112f91c528f80b887a5caa9fd8f6e5355
2015-09-06 10:56:20 -07:00
Christopher Aedo f8e7040a25 Enable CORS for new /api directory and gzip
This patch adds access control headers to
the location /api/v1/assets.
This will allow a Horizon panel to work with
the App Catalog directly. For multiple
deployments of OpenStack to access the JSON
file regardless of their domain name, this
additional header (Access-Control-Allow-Origin)
must be set to "*" which will enable cross-
origin resource sharing which is normally
forbidden to prevent security issues related
to cross-site scripting. This change also
enables compression on the file, giving roughly
a 5x reduction in download size. This patch also
removes this access control header from /static

To provide content at /api/v1/assets this
patch replaces a trigger that used to build
a JSON file via a shell call in puppet with
a call to a script on the server.

Authored-By: Christopher Aedo <doc@aedo.net>
Co-Authored-By: Kevin Fox <kevin@efox.cc>
Change-Id: I4da417908186c24767310d337bc3bbbc07964d48
Closes-Bug: 1490609
2015-09-02 14:28:14 -07:00
Jenkins 9db65f3984 Merge "Generate assets file from assets.yaml" 2015-08-31 03:01:59 +00:00
Christopher Aedo ff2bcbbf4b Generate assets file from assets.yaml
This commit modifies the puppet manifest to
generate a JSON file from the contents of
the assets.yaml file. This is necessary as
the multiple YAML files are now combined
into a single YAML file.

Change-Id: Ib8211b1f0a00e2d9098c7c0eb0624781fdb212d3
2015-08-27 13:23:56 -07:00
Spencer Krum 562944dac2 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I7b5f1841ad20b16217c28d82c88481a0aa69affe
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:34:06 -07:00
Spencer Krum 3f51f49e09 Boilerplate beaker-rspec files
Change-Id: I7f113d0965e75a4abfe9a5181eb79670a9ff76e9
2015-07-28 02:03:43 -07:00
Jenkins e0b551a27d Merge "Fix No newline at end of file" 2015-07-27 16:49:10 +00:00
Paul Belanger e28ca92841 Fix missed a2mod conversion to puppet-httpd
Change-Id: I67aea79c04d725f9b9889a38aff018f0895321a9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-24 17:08:23 -04:00
Paul Belanger 62725543aa Fix No newline at end of file
Change-Id: I6c468413df11ddc3f9e7ed5a617aba7485771a1a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-24 12:49:51 -04:00
Jenkins 2a46e44257 Merge "Remove puppet-lint-numericvariable gem" 2015-07-24 16:24:35 +00:00
Colleen Murphy b6b6edcb16 Remove puppet-lint-numericvariable gem
Variables with numbers for names are valid as regex capture groups in
puppet 4[1], so this check is not beneficial and can be
counterproductive when we do actually want to have numeric variables.

Change-Id: I6ae5eaa5d9036b415759793f8bdc3dc8f1351c7e
2015-07-21 19:32:42 -07:00
Paul Belanger 81920e9582 Migrate to puppet-httpd module
puppet-httpd is the openstack-infra version of puppetlabs-apache
(0.0.4) release.

This patchset will remove the puppetlabs-apache namespace from -infra
allowing for possible future patchsets to use newer puppetlabs-apache
modules.

Change-Id: Ieaabcd9f6fbb4556c8f30e87245fceb7ef539d2e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-16 10:53:08 -04:00
Jenkins 8d9fde0e93 Merge "Enable CORS for app-catalog" 2015-07-14 16:48:23 +00:00
Colleen Murphy b406ffcdd6 Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

This patch also fixes lint errors caught by the
puppet-lint-absolute_classname-check gem.

Change-Id: Ia6fdc921b4c4a8ec2d5f6a6dfe9669704eafc67b
2015-07-08 16:34:18 -07:00
Christopher Aedo 69c64a34be Enable CORS for app-catalog
This commit enables the apache headers module,
and adds an access control header which will
allow AJAX requests from other sites. This
is intended to allow a Horizon panel to work
with the App Catalog directly. For multiple
deployments of OpenStack to access the JSON
files regardless of their domain name, this
additional header (Access-Control-Allow-Origin)
must be set to "*" which will enable cross-
origin resource sharing which is normally
forbidden to prevent security issues related
to cross-site scripting.

This commit also includes a modification to
the puppet module to create three JSON files from
the contents of YAML files retrieved from the
App Catalog repository. The YAML format was
chosen in order to make it convenient for humans
to add content to the App Catalog, but the
preliminary work on a Horizon plugin relies on
retrieving the contents in JSON format. Adding
the functionality to automatically generate
the JSON files is a short term step intended
to accelerate development of the Horizon plugin.

Change-Id: I4a3c44bb5806362416b1b175d917939ebaa351dd
Closes-Bug: 1467699
2015-07-01 16:23:44 -07:00
Christopher Aedo 38e49e9efc Move vhost.erb into templates directory
The apache vhost template needed to live
in a templates subdirectory.  This commit
moves the template file into the subdirectory.

Change-Id: Ic9aa9385970ba98c50e915ffa8127ef0182744db
2015-06-09 18:03:40 -07:00
Christopher Aedo 93c85e96bf Create site for apps.openstack.org
This commit adds the puppet module to
host the content of apps.openstack.org
by cloning the repo hosting static
content.

Change-Id: If419130e5ed01742c0e3840c7fe761ca53f86560
2015-06-02 21:07:32 -07:00
OpenStack Project Creator 5c2b0d61f9 Added .gitreview 2015-05-28 21:37:52 +00:00