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
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
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
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
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
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
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
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
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
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
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
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
Our official git master is at git.openstack.org, update places
that use github instead. Fix URL as well.
Change-Id: I914696b7a7d91a77f3a2e8d62ccecc12f7c27688
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
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
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
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
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
Fix capitalization of RefStack project name in comments, remove unused
dependencies, and correct some file names.
Change-Id: Ie203c3dab354b67f2693993beb5038a72130aec8
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
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
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