Commit Graph

122 Commits

Author SHA1 Message Date
Clark Boylan 9998655fa9 Retire this project
OpenDev is no longer running an openstackid instance and the puppet
module isn't used by the folks running the current instance. We can go
ahead and clean this repo up.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/818170
Change-Id: Ifab5aa7a839d8353aee9acacd5fd2eec525cc924
2021-11-16 14:41:11 -08:00
smarcet ca788b2a8b Fixed PIP version
fixed pip install to 20.3.4 bc latest one
(21.0.0) breaks python build

Change-Id: I0266509ad07d0d28c509b446f40cabc7ca7ab8ef
Signed-off-by: smarcet <smarcet@gmail.com>
2021-01-27 12:13:54 -03:00
smarcet ad9fa60259 Changed default queue driver from database
to redis to prevent deadlocks

Change-Id: I39f5e3206b58800e7ed47abfa2ad58da360a77bb
Signed-off-by: smarcet <smarcet@gmail.com>
2020-10-19 09:30:31 -03:00
smarcet d806cb3155 Fixed typo ( extra =)
Change-Id: Ied4fdbc58defd6483a6848d522f6ff034afb30c7
Signed-off-by: smarcet <smarcet@gmail.com>
2020-09-22 00:27:13 -03:00
smarcet eb6547e446 Added cloud storage config
Change-Id: I6a9c67da18beacf4b6f67ed2ace8371ba3478fd8
Signed-off-by: smarcet <smarcet@gmail.com>
2020-09-21 09:25:11 -03:00
smarcet 437b6b776e Added message broker (RabbitMQ) settings
updated configuration for message broker

Change-Id: I3112fabafd1172129c5cdc4c3743b5c9685a9338
Signed-off-by: smarcet <smarcet@gmail.com>
Depends-on: https://review.opendev.org/#/c/752734
2020-09-18 15:08:02 -03:00
smarcet a647c22158 Fixed permissions issues on SpammerProcess
fixed permission due generating the pickle
file was not allowed.

Change-Id: I18f5a832753c393ba01cec6e3318191a1e639c1f
Signed-off-by: smarcet <smarcet@gmail.com>
2020-04-03 14:53:17 -03:00
Jeremy Stanley 5fd8ea4c50 Add SSL options in www subdomain redirect vhost
The *:443 vhost for www needs ssl options set even though it only
hosts a redirect.

Change-Id: Ib9be4d3901a6abd4f55589e41bab363f066d747b
2020-03-27 21:56:21 +00:00
smarcet 24890661b8 added www. cname on vhost file
Change-Id: I0c81a5a4efd40c8fe53b843dae4543b6c31813a0
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-26 15:49:11 -03:00
smarcet a4d88dc494 Added config variables to support emails
* support
* user spam processor results

Change-Id: I27d34b40c1bf04e64340bc245da0f27517a319f3
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-25 11:20:17 -03:00
smarcet 954b03a75f Fixing results from ZAP Scanning Report
added header Strict-Transport-Security Header Not Set

Change-Id: I22b14e30738254ebd3e847003f16a4ad3863ed8a
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-24 17:39:57 -03:00
smarcet 21c361bd96 Updated python dependencies install
added upgrade for setuptools

Change-Id: I7163eabfe56bd4067d33bd1f37286f614ab0c7e9
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-21 12:41:09 -03:00
smarcet bc2aa2a531 Fixed python packages installation
Change-Id: I85c199f92a2e1b04c27221b6a7de93baa0ad8a9a
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-16 10:14:54 -03:00
smarcet 8ddb3f8ce3 Added python packages install support
Change-Id: I5b6178ed2db510f8f708901d513f1512e5226a36
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-11 14:13:10 -03:00
Jeremy Stanley e83ceadfe4 Update tarball publication URLs
With the OpenDev transition for static site content, the official
location for OpenStackID tarballs is now in
https://tarballs.opendev.org/osf/openstackid/ so update our template
accordingly.

Change-Id: I4939b5fde244777126497f707e362d1c28643a4e
2020-02-24 21:13:45 +00:00
smarcet b1e5b59a0a Removed stale config variables
removed all config variables related to
ss integration

Change-Id: Id57bbf6329a0aac9904fd317ce0e1d8628993aa3
Signed-off-by: smarcet <smarcet@gmail.com>
Depends-on: https://review.opendev.org/#/c/709529
2020-02-24 15:31:34 -03:00
smarcet fb0da02f2c Updated deployment scripts
* setting the proper storage permissions
  at the end of deployment
* refactoring

Change-Id: I75aca729ebaa9b3bf6c367592b0c42dd9221a856
Signed-off-by: smarcet <smarcet@gmail.com>
2020-02-17 11:43:10 -03:00
smarcet d135337253 Fixed supervisor watchdog regex
corrected regex on watchdog script

Change-Id: Ifd7bbf23aaf4b858a88fe849188f95509de0eea8
2020-01-30 11:38:43 -03:00
Zuul ca82e527cf Merge "Refactored Deployment Script Functions" 2020-01-29 23:05:20 +00:00
smarcet 2cd724f1aa Refactored Deployment Script Functions
* Moved Redis clear cache routine to its own function.
* Moved ORM clear cache routine to its own function.
* Set proper execution permissions for artisan command.

Change-Id: Icdb4740621d6f9c7310d1b6bb52ce1db43652882
2020-01-29 19:03:00 -03:00
smarcet f1f6e58ef8 Fixed broken deployment
Refactored to support Doctrine ORM
and Laravel Queues

Change-Id: Iea078ee1e7d2541872b3b6966825eb6988fd266e
2020-01-27 23:15:31 -03:00
smarcet 1806356c52 Updated Build
* Fix on supervisor launch script
* Refactoring on docroot variable

Change-Id: I65099e2ee2a0b3b153d70cb9ba6b7e96ec9baced
2020-01-24 14:51:58 +00:00
smarcet 24076bd286 Updated build
Updated puppet build to support new migration
for user management from IDP side

Change-Id: I633add5af8d96223d331a129f39956b1af4f8867
2020-01-22 04:07:17 +00:00
Jeremy Stanley 7091e5ced9 Puppet-lint says "class included by absolute name"
Get rid of lots of leading :: prefixes because the puppet-lint
authors think that's prettier for some reason.

Change-Id: If1f0fcebe4305861ff6cabe596feb023548cf23a
2020-01-22 04:07:15 +00:00
smarcet 8341bbfd32 Added missing double quotes for some config
variables on .env file

Change-Id: I37446306a31764af14d1339c3f3f568eccd46d90
2019-05-13 20:54:22 -03:00
smarcet 0a45e9bfe4 Fixed missing path on service command
Change-Id: Ia07c0f6ca1d101f51e249dd91d42ab4972f655eb
2019-04-30 13:16:08 -03:00
smarcet 83c937e34a Fix on redirect urls regex
Change-Id: I705223d3b7c80cf482149b5eafa02a682cc8f5a6
2019-04-29 22:14:35 -03:00
Zuul 1a8fd41b3e Merge "Added rewriting rules" 2019-04-29 23:20:17 +00:00
smarcet d5b360bc02 Added rewriting rules
added rules to redirect registration/password lost
and resend verification to www site

Change-Id: I487a973826fb40675e5e9999be89d69481a7312e
Depends-On: https://review.opendev.org/#/c/656396/
2019-04-29 19:02:17 -03:00
smarcet f05f1b5a5f Added paranetrized urls
parametrized urls for registration
/reset password and verification

Change-Id: I2748957adc92776dddf32b15cb650d8446b8b8a6
Depends-On: https://review.opendev.org/#/c/656395/
2019-04-29 17:19:06 -03:00
OpenDev Sysadmins 24a7cb633f 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:35 +00:00
smarcet 18261412e5 Add sendgrid support
added api sendgrid key on .env file

Depends-On: https://review.openstack.org/#/c/651794
Change-Id: I084d5f66138f15cf5d9b215a1cb9a304e70e4957
2019-04-11 11:42:24 -03:00
Ian Wienand b0f0013551 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: I5a536fb5b163a1e2a92f10c0bcc0802c36f790db
2019-03-24 20:35:44 +00:00
Clark Boylan d53f72407e Disable legacy nodejs symlinks
We currently setup a symlink loop between /usr/bin/node and
/usr/bin/nodejs. This seems to happen due to a mismatch in expectations
between nodesource packaging and our nodejs puppet module. Thankfully
the puppet module allows us to disable the symlinking behavior [0].
We've successfully used this method on the etherpad servers so apply it
to openstackid as well.

[0] https://github.com/voxpupuli/puppet-nodejs/tree/v2.3.0#legacy_debian_symlinks

Debugging notes:

Symlink loop:

  clarkb@openstackid-dev01:~$ ls -al /usr/bin/node
  lrwxrwxrwx 1 root root 15 Mar 18 23:54 /usr/bin/node -> /usr/bin/nodejs
  clarkb@openstackid-dev01:~$ ls -al /usr/bin/nodejs
  lrwxrwxrwx 1 root root 24 Mar 18 23:32 /usr/bin/nodejs -> /etc/alternatives/nodejs
  clarkb@openstackid-dev01:~$ ls -al /etc/alternatives/nodejs
  lrwxrwxrwx 1 root root 13 Mar 18 23:32 /etc/alternatives/nodejs -> /usr/bin/node

Package contents:

  clarkb@openstackid-dev01:~$ dpkg -L nodejs | grep /usr/bin
  /usr/bin
  /usr/bin/node
  /usr/bin/npx
  /usr/bin/npm

Puppet logs:

  Mar 18 23:54:39 openstackid-dev01 puppet-user[19866]: (/Stage[main]/Nodejs::Install/File[/usr/bin/node]/ensure) ensure changed 'file' to 'link'
  Mar 18 23:54:39 openstackid-dev01 puppet-user[19866]: (/Stage[main]/Nodejs::Install/File[/usr/share/man/man1/node.1.gz]/ensure) ensure changed 'file' to 'link'

Change-Id: Ib77b851e12a4f94b5853b1b9e981f898c0ad36f1
2019-03-20 10:54:22 -07:00
Clark Boylan e38fbc10c0 Be more forgiving in module deps list
As time has moved on we've udpated versions of some puppet modules
making the deps list here inaccurate. Be more forgiving in the list to
avoid warnings as we update things.

Change-Id: I80c12ac6382eb324507307f443ede369ae20ca6e
2019-03-07 08:59:52 -08:00
Sebastian Marcet 6336b6cdc7 Fix on mysql ssl certs
* added code to ensure that directory /etc/mysql-client-ssl exists
  before to create the certs
* fixed typo on .env

Change-Id: I89640b2d25b274bcc7205b6665c9930d695a003d
2019-02-15 08:09:01 -03:00
Sebastian Marcet 7b6fd76dd1 Updated Permissions for deployment
set owner for laravel storage folder

Change-Id: Ic57111092aef9b806074e1740124fc6231af0659
2019-02-12 12:09:33 -03:00
Zuul e95f2ed56e Merge "Updated deploy functions" 2019-02-11 21:15:24 +00:00
Sebastian Marcet 89674a7145 Updated deploy functions
* removed installation of n package ( not needed any more
  due that we are installing latest nodejs version)
* added sudo to npm install due lack of permissions on
  local node_modules
* added code to ensure correct tree structure of storage
  folder

Change-Id: I66c8a3f52d05a74b4ed190710739c75ed05b6d05
2019-02-11 11:31:12 -03:00
Sebastian Marcet db89f2367c Update nodejs default version
default nodejs version installed on ubuntu xenial
is too old ( 4.x ) and wanst installing npm package
thus deployment was failing bc its relaying on that one
added repo_url_suffix attribute to class nodejs to force
to install version 9.x

Change-Id: I4f3fe711acaffdf7340c49dc9aca095bbbf10a68
2019-02-08 13:15:03 -03:00
Sebastian Marcet 6265d038e7 Fixed scope of deploy resource type usage
added scope openstackid for puppet 4

Change-Id: Ief67f2601f516bfa553e8f84a3228a9e2a487b10
2019-01-18 10:50:53 -03:00
Sebastian Marcet 5ad10537b4 Updated script to support PHP7
Added php 7.x support and xenial support using external
ppa from andrej

Depends-On: https://review.openstack.org/611936

Change-Id: Ic30cc62216be3035c363fa0203a757df662acf47
2019-01-15 15:01:21 -03:00
Sebastian Marcet 9a044f8e00 Added configuration for MYSQL SSL connection
added config params to set up client certs for
PDO SSL connections ( mysql )

Change-Id: Idb04a5a97e5e461bc91508567ad27c1ded60049a
2018-08-23 15:21:21 -03:00
Colleen Murphy 3a1fd8b9be 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: I121113f068b8c581bee477c5b77557e6ab155051
2018-07-12 09:57:45 +02:00
Sebastian Marcet 89890ae5ca Updated binary dependencies
added build-essential due its needed to build
node-sass npm package.

Change-Id: I21b240ee5a14a55f32f4a955da176b6dacbdd535
2018-04-30 11:56:39 -03:00
Paul Belanger 4f7c4934c8
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: I61e2b18f5b1214bcf00f0c682132a41c807806db
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-20 14:32:29 -04:00
Sebastian Marcet f76fd943fe Updated puppet scripts to use webpack
instead of bower ( deprecated)

Change-Id: Id4848e588da4874638976362f23b1cf195b04b54
2018-04-11 11:45:30 -03:00
Jenkins 33f81f0190 Merge "Install Laravel schedule" 2017-08-30 14:21:24 +00:00
Clark Boylan 4c99e995a8 Allow multiple places to install curl
Curl is an important package that we end up needing in a few places. To
avoid puppet unique name conflicts with the package "curl" only define
the curl package resource if it isn't already defined.

This allows us to define it in multiple places that may or may not
overlap depending on how hosts are constructed.

Change-Id: I17c119e81a035916550de44356b9f4badd505c81
2017-08-24 13:49:31 -07:00
Colleen Murphy d24b14fb0e 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: Ic12edafbb2e33df37c23e3527e961cc71bc67c8c
2017-08-18 10:41:44 +02:00