Commit Graph

53 Commits

Author SHA1 Message Date
Clark Boylan 29c864240c Retire this repo
The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.

Change-Id: I6a1d385c8dc3a457af2ef3b8a376470fecc754d4
2022-02-17 12:53:01 -08:00
Clark Boylan 7d2bf8ef50 Rely on servername not virtualhost name resolution
We recently broke our /etc/hosts content on our servers then restored it
to a sane default for each server. This would have removed any special
entries servers may have had. It appears that refstack was relying on
such special entries to make the named virtualhost entries work. With
the new /etc/hosts content our vhosts weren't serving content.

Fix this by removing the named vhost entries and instead rely on
ServerName to specify where requests go.

Change-Id: I8b8242b1b6d9b2bb072ace5b82a65899fe383056
2019-05-13 14:40:26 -07:00
OpenDev Sysadmins b712a03c46 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:37 +00:00
Ian Wienand 5027bd0fc5 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Id84741d2ed983ec966643903e5fcbdb37965a561
2019-03-24 20:35:45 +00:00
Colleen Murphy e93d8f55ee Update Gemfile for Zuulv3
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.

Change-Id: If01c1b3eb22bc3c751c6a13eafea369a7cef4e49
2018-07-12 09:57:45 +02:00
Zuul 85c3a19c6a Merge "Fix scope of vhost template variables" 2018-06-12 22:33:33 +00:00
Colleen Murphy 7580829b12 Fix scope of vhost template variables
Dynamic scoping for variables in ERB templates was removed in puppet
4[1] which means that the variables defined in the
refstack::apache::http* classes cannot be found when it is referenced in
the httpd::vhost defined type and will be evaluated as nil when
puppet runs. Use scope.lookupvar instead to be explicit about the
variable's source.

[1] https://puppet.com/docs/puppet/4.10/lang_updating_manifests.html#dynamic-scoping-in-erb

Change-Id: Ie4ebcce043c8b1ed28d42f58fe15502cac956b48
2018-04-27 20:49:12 +02:00
Colleen Murphy 013781cb46 Use versioncmp function
Puppet 4 is more strict about data types and doesn't tolerate using
arithmetic operators on strings. The operatingsystemrelease fact is a
string. Switch the arithmetic comparison to a native function that knows
how to deal with version numbers.

Change-Id: I63b0ffaba89d609a8107235759653be415820d7c
2018-04-26 22:16:32 +02:00
Megan Guiney e22ef04d4f Added option to set enable_anonymous_upload
Change-Id: If64f03f22cde99fe5b31b69bd8c73caff029da17
2018-02-16 18:51:32 +00:00
Jenkins 6c2e816318 Merge "Add exec to generate doc HTML templates" 2017-06-06 23:18:40 +00:00
Jenkins 645a14f5c2 Merge "Ensure pymysql is installed" 2017-06-06 23:18:07 +00:00
Paul Van Eck fd7f74bd99 Fix puppet lint errors
Required parameters must be listed first now, so this patch
brings required parameters to the top.

Also use infra_spec_helper for gem dependencies like other puppet
projects.

Change-Id: Ib9808fda496cada13d0b2b65e6f155022ebafdf9
2017-05-24 13:48:35 -07:00
Paul Van Eck ea2dfa5655 Add exec to generate doc HTML templates
RefStack will soon have a script[1] to generate HTML
templates from the RST docs. The 'about' page for the
RefStack website will depend on this script being run.
This patch will have puppet run the script everytime
a new version of RefStack is installed.

[1] https://review.openstack.org/#/c/458310

Change-Id: Ib5bdf3ab0b9944d54be79330e38bc9acfbf25c65
2017-04-27 13:55:13 -07:00
Paul Van Eck fb115601b3 Ensure pymysql is installed
PyMySQL was/will be removed from requirements.txt in refstack as it
is not an explicit dependency. It's an optional DB driver that is only
necessary if it is specified in the refstack configuration database URL.
Since pymysql is specified as the driver here, it is necessary to ensure
it is installed.

Change-Id: I336aa8ef196526601c16b165d8200b63ff11825d
2017-02-03 16:18:13 -08:00
Jenkins 4336f5fb05 Merge "Make sure libffi-dev is installed" 2016-08-22 19:32:25 +00:00
Yolanda Robla Mota 4f15d3b89d Fix lint error on puppet-refstack
Currently is failing with
WARNING: class included by relative name on line 20

Change-Id: I111bc0ce9f4fac2ac14b9b1c18e2de8137dc3056
2016-08-22 09:21:03 +02:00
Paul Van Eck 4b9935a3ee Make sure libffi-dev is installed
A recent change in the version of PyOpenSSL that RefStack uses requires
that the system has libffi-dev installed before PyOpenSSL's dependencies
can be installed. This patch ensures that the package is present.

Change-Id: I273fb762cc82c474f1cec8e6810dd3f15add092e
2016-08-19 11:00:35 -07:00
Spencer Krum 393913577d Pin google-api-client; sanitize Gemfile
Change-Id: I9489cdaca7354c8dde9f9d4d88e86cd2b1c2c6b7
2016-04-14 15:23:12 -07:00
Paul Van Eck 92ad5a7b0e Make puppet pull releases from Pypi
This commit merges api.pp and app.pp into one file to remove duplication
and for easier dependency chaining. This commit also makes puppet pull new
RefStack releases from pypi so we don't have to keep bumping versions
in puppet-refstack.

Change-Id: Ic6f5e30ea46d3c053c49b8a45168001bcbd2b46e
2016-03-17 09:29:56 -07:00
Andrey Pavlov 70a1c4af19 use specific tag version of refstack for installation.
It's not convenient for development to deploy latest master.
For example we need to commit features in several commits
and we can break something in the middle.
Also we want to implement something by several developers
and in this case we can have invalid code in the middle.

So we need to deploy refstack website with specific
and released (fully implemented and tested) version.
When next version will be released then we up version here.

Change-Id: Ie4459d1d5d3415670237aaeabfd56c8b62da275d
2016-02-16 11:26:08 +03:00
Andreas Jaeger ffddbd2d87 Use git.openstack.org everywhere
Our official git master is at git.openstack.org, update places
that use github instead. Fix URL as well.

Change-Id: I914696b7a7d91a77f3a2e8d62ccecc12f7c27688
2015-12-29 21:42:07 +01:00
Paul Van Eck d7e080c730 Refresh apache on api changes
Currently apache is only restarted when UI code is changed and not
when only API/python code is changed in the RefStack repository.
This patch will notify apache to restart when the API is updated.

Change-Id: Ie3111a3c2b9ee7dd514cf048871e9c820f545bb1
2015-11-10 12:05:43 -08:00
Paul Van Eck 70b1bfc9b5 Add mysql_host param to refstack class
This will allow the mysql host to be passed in, and allow for
a non-localhost mysql server to be used. If mysql_host is passed in
and not 'localhost', then we assume that the mysql_database has
already been created with mysql_user already granted access.

Change-Id: I161d8dd2e605425f8dc9e3e42adf3734cb43e627
2015-10-05 13:46:59 -07:00
Paul Van Eck 4f06b81398 Correct API url in refstack.conf template
Since the api is hosted on /api, that needs to be included
in the URL.

Change-Id: I023fa8f80a90c45616c243df375b9fe27682c3b5
2015-09-22 17:24:47 -07:00
Paul Van Eck c606f64c73 Update RefStack repo name
Since RefStack moved from stackforge to openstack, the repo
name should reflect this change.

Change-Id: I7c787c4f975295ff856d041f4cbe3eb1890e7619
2015-09-22 16:16:09 -07:00
Jenkins a9c5c27b85 Merge "Use httpd module instead of apache" 2015-09-12 21:42:47 +00:00
Jeremy Stanley 674ef361f1 Use httpd module instead of apache
OpenStack Infra currently uses a fork of puppetlabs/apache called
openstackinfra/httpd.

Change-Id: I470d7f5ebeee9949f6dd58d48a580d94866df0fd
2015-09-05 22:16:52 +00:00
Paul Van Eck 53d78113d2 Update refstack.conf template
The current template is a bit dated and is missing some needed
options. This patch adds the needed config options. The template
was also cleaned up to only show options that are set/changed from
the default.

Change-Id: Ie96052b5d2cf128164aa2243e5430b618d2ae45e
2015-09-04 04:46:25 +00:00
Paul Van Eck 579d39bbda Add param to specify app protocol
Templates/manifests for https hosting already exist, but we currently force
http hosting. This patch adds a 'protocol' param to allow the capability
to host with https. This patch also changes the hostname to default to
the fully qualified domain name and changes certs/keys to snakeoil.

Change-Id: Ic3cd47f4166c5219030254e8ae557b654f0756eb
2015-09-03 21:37:30 -07:00
Paul Van Eck e1482bf068 Remove virtualenv and install RefStack on system
The stankevich/puppet-python module was causing issues,
so this patch removed the dependency on it. Now pip is used
to install directly onto the system instead of in a virtualenv.

Change-Id: I8f9922ab05429f15cc718561ed3b324ffe8ea746
2015-08-24 17:04:10 -07:00
Paul Van Eck 8f2a27de12 Perform some module cleanup
Fix capitalization of RefStack project name in comments, remove unused
dependencies, and correct some file names.

Change-Id: Ie203c3dab354b67f2693993beb5038a72130aec8
2015-08-24 16:58:49 -07:00
Colleen Murphy 36a3b33379 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. Also fix errors
caught by the puppet-lint-absolute_classname-check gem.

Change-Id: I34bb706397bff9c5d8239c7ae7f5402c1ca9b118
2015-08-13 16:57:36 -07:00
Paul Van Eck d332ad4895 Add config.json file generation
The Refstack UI JS expects a config.json file to tell it the base
URL of the API. Without this file, API calls cannot be made, so puppet
should generate this file.

Change-Id: I6ae9d18c22771561d18691faabe53ee575b9486b
2015-07-20 18:47:13 +00:00
Paul Van Eck f23cdca396 Add .gitreview & fix puppet-lint errors/warnings
There were mainly alignment issues with =>, so those were fixed.
Also removed the charset declaration in mysql.pp as refstack itself
now takes care of this.

Change-Id: Ia1635bfe51669000374fd445d460081551cb978d
2015-07-06 17:19:38 -07:00
Michael Krotscheck 32a1e60a5b Modified npm invocation to match location of project manifests.
This patch modifies the puppet module to accomodate the changes
in this patch:
https://review.openstack.org/#/c/185723/
2015-05-26 13:00:40 -07:00
Michael Krotscheck 0e50af1532 Added WebClient installer. 2015-04-29 12:27:08 -07:00
Michael Krotscheck 7cd53e46c6 Added HTTP Modules. 2015-04-22 14:34:34 -07:00
Michael Krotscheck 993150a336 Added charset to mysql recipe. 2015-04-22 13:19:18 -07:00
Michael Krotscheck 0b1ddafaa4 Pip subscribe to VCSRepo update. 2015-04-21 11:36:09 -07:00
Michael Krotscheck 5e13a8be0b Removed old references of StoryBoard
Copy/pasta
2015-04-20 18:40:27 -07:00
Michael Krotscheck 238c77cd3b Migrate the database.
Subscribe only. This will only trigger if `pip install refstack` indicates
a change, or if the configuration file changes.
2015-04-20 18:39:48 -07:00
Michael Krotscheck f9c757cd5d Pip install refstack. 2015-04-20 18:20:24 -07:00
Michael Krotscheck 2b1ab4a067 Added libssl-dev 2015-04-20 18:19:00 -07:00
Michael Krotscheck 9d2c06d418 Create refstack config file. 2015-04-20 18:11:19 -07:00
Michael Krotscheck f6f54e540d Added mysql database. 2015-04-20 18:10:46 -07:00
Michael Krotscheck 7d533c0cbb Construct a virtualenv for refstack 2015-04-20 17:51:04 -07:00
Michael Krotscheck 16a9df5a7a Added refstack user.
Creates a user under which the refstack process will run.
2015-04-20 17:48:15 -07:00
Michael Krotscheck 63547e70ac Check out refstack source.
This patch checks out the refstack source to a configurable directory.
2015-04-20 17:24:16 -07:00
Michael Krotscheck 452d9770f3 Added vcsrepo module.
Included the OpenStack-CI VCSRepo module, so we can checkout our
git repository.
2015-04-20 17:23:38 -07:00
Michael Krotscheck cb0b7b3363 Added git.
Git needs to be installed so we can checkout the refstack source.
2015-04-20 17:18:35 -07:00