Commit Graph

43 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 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
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
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 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 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
smarcet 0a45e9bfe4 Fixed missing path on service command
Change-Id: Ia07c0f6ca1d101f51e249dd91d42ab4972f655eb
2019-04-30 13:16:08 -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
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 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 f76fd943fe Updated puppet scripts to use webpack
instead of bower ( deprecated)

Change-Id: Id4848e588da4874638976362f23b1cf195b04b54
2018-04-11 11:45:30 -03:00
Sebastian Marcet 985100d9c5 Server params tweaking
* tweaked kernel params
* tweaked php params

Change-Id: I9e9a864182e22e7387a10535a57b822a5dfdb5c0
2017-04-10 16:44:41 -03:00
Sebastian Marcet b466ee31bc Fixed typo on PHP ini
opcache.fast_shutdown directive had a typo

Change-Id: I5ad00bc42c85b53cc7f20cb555fc57884520a1c5
2017-04-05 17:48:15 -03:00
Sebastian Marcet 49e222aa4a Apache/PHP configuration tweaks
In order to improvee IDP responsiveness
follwing actions were taken:

* updated apache connection settings
* removed access log settings from apache2
* updated php pool settings
* added php.ini settings
** added zend opcode cache
** set php max memory limmit to 32MB
* added php-fpm.conf settings
** set emergency_restart settings

Change-Id: I52aafd41267aa46d4f481b7c91a24732c615632b
2017-04-05 12:24:49 -03:00
Sebastian Marcet 8e08ec78b1 Update functions to force on production
LV needs flag --force on seed/migration commands
once its on production env.

Change-Id: I1ad92b0fb057a697a9cddce79a6df916506e08b7
2017-03-10 11:26:14 -03:00
Sebastian Marcet 7580a4ed3d Fix to replicate LV5.x storage folder structure
adding an extra checking on storage folder structure
when site is updated, to avoid breaking the site
on LV5.x migration.

Change-Id: Idcdd4ebb20b1cf9f5782cd4f75ffdedea1c64438
2016-12-01 10:17:19 -03:00
Sebastian Marcet 75c6ce708b Puppet script upgrade to LV 5.X
In order to allow IDP upgrade from
LV 4.x to LV 5.X
(https://review.openstack.org/#/c/305521/)
puppet and shell scripts
were update to support diferent versions
or laravel through config variable $laravel_version
( default value to version 4 so production would not
get affected ).

Change-Id: I76a7093f3c88c72256f638d5c56cc8799643b69d
2016-11-23 16:15:26 -03:00
Sebastian Marcet 274521cca5 Updated PHP settings to avoid 503 by timeouts
In order to avoid 503 by timeouts from
php-fpm service timeout values were increased
as also the max request nbr
per php child proccess.

Change-Id: I06d94b88716895987ea97cf86365b39caeafa385
2016-11-01 23:50:44 -03:00
Sebastian Marcet 6f938175e0 PHP www pool tunning ( http 503 )
In order to avoid http 503 errors and taking a look
at php fpm logs , its has been increased the
start_servers, min_spare_servers and max_spare_servers
values to avoid erros like WARNING: [pool www] seems busy
(you may need to increase pm.start_servers, or
pm.min/max_spare_servers).

Change-Id: I5d47625ac4702c1b6704c66967d76fac2a895907
2016-10-25 13:43:43 +00:00
Sebastian Marcet 658b17ac03 Fix on PHP 503 error
raised pm.max_children from 400 to 500
to avoid 503 http errors.

Change-Id: I1eaf1550bcb5ec8b3d5cbc3e5e79d6c926cf55b3
2016-10-23 14:21:11 -03:00
Sebastian Marcet ee676db635 Fix on PHP 503 error
updated pm.max_children from 300 to 400
 to avoid 503 http error.

Change-Id: Ibda4899ed4501c8185074271ddd5d658a859bdb0
2016-10-20 12:16:48 -03:00
Sebastian Marcet ed77e451ee Fix on PHP 503 error
updated pm.max_children from 200 to 300
to avoid 503 http error.

Change-Id: Iea0c5a596de96f294ace4e6ee7109825f6a6976a
2016-10-17 10:44:38 -03:00
Sebastian Marcet dac2029a73 php5-fpm 503 errors
formerly we were using settings for php5-fpm pool that
werent suitable for our server configuration.
Server has 14G of free ram and we were using
pm.max_children = 4096, having in consideration that php process
has an avg of 64 MB that give us large number of needed
RAM that exceeds our current configuration
i changed to pm.max_children = 200, a more suitable number
for our current config
rite now the avg php if given us 25 MB per process
so i guess that we should do a monitoring of this value, an
increase the max_children setting as we needeed on the fly.

Change-Id: Ibab02f7a88e08cb94d58168e545e6da0cf8d2e7f
2016-09-28 19:15:03 -03:00
Sebastian Marcet a9fab67330 Updated config for Precise
* removed php5enmod ( it does not exists on precise)
* updated config to use class apache::mod::event intead
  on custom config file

Change-Id: Ic7610a5f93c9d5eb3d1673ede3ad41227a6537db
2016-03-30 18:38:27 -03:00
Sebastian Marcet a1c7cc4ed7 Apache MPM events + php5 fpm
* Updated site config to change MPM from fork to event model
  and to start using php5-fpm (fast cgi) to get a better site
  performance and a better use or server resources.
* Updated mysql php driver to newer one (php5-mysqlnd).
* Added missing dependencies : php5-json (json functions) and
  php5-gmp( big number functions used by jose4php).
* Replaced puppet-httpd with puppetlabs-apache.
* added www.conf to tweak php5-fpm connection settings
* update vhost template to support proxy_fcgi.
* updated apache connections settings to improve performance on
  mpm events.
* updated dependency to puppetlabs/apache (1.8.1)
Change-Id: I66c6ad413a6b0c31a19cc663058a53edc3bec5cc
2016-03-30 11:18:59 -03:00
Sebastian Marcet 638c790997 Update prefork MPM apache settings
Tweeaked apache connection settings on prefork MPM to allow better
performance at larger client volumes and server sizes. Make this
safe for Trusty as well, for ease of upgrading in the near future.

Change-Id: I0f52eabc8218b12392a2ac75d3ce3a5a85e01df5
2016-03-23 20:21:26 +00:00
Sebastian Marcet 79e17cabef Added DB seeding support
added db seeding support configuration on install site command
by default is disabled to avoid overwriten existent db

Change-Id: Iba74a5f6f8a08f73d73bc0ca2d499ea215cf8c8a
2016-03-21 20:41:20 -03:00
Sebastian Marcet e7239d4746 Added mising link to config file
added missing link to email configuration file
added force modifier for seed/migrate command
Change-Id: I9f65e1ab4e60dd75c0a2b6bb58b101ef36416f29
2016-03-17 08:20:15 -03:00
Sebastian Marcet dbd2643937 Fix on nodejs default version
nodejs default version is too old
so now its install n node manager to install
latest one, also installing bower directly on update site/install site
command

Change-Id: I1a2c377db24f66a6138a07e4b2f284a02083f364
2016-01-23 19:27:26 -03:00
Sebastian Marcet 4d403d240f Fix on bower test file exist condition:
Former conditon to test if bower file exists was wrong

Change-Id: I52d78c6dfa2dc9404ed6436f679d520d8135cf3f
2015-12-18 17:23:41 -03:00
Sebastian Marcet 7012876bfc Sintax error fix on shell scripting functions
There was an syntax error on functions file when tried to install
bower

Change-Id: I234b3948f9b138af49c60e6019fd979c594eb2db
2015-12-18 10:54:33 -03:00
Sebastian Marcet 79746e577e Improved Bower support
improved bower support using nodejs native module
instead of custom logic used on former approachs.

Change-Id: Icf1cea6b78d385cf085432937b5373c6958f6fd0
2015-11-18 15:37:41 -03:00
Sebastian Marcet dfb6169d47 Added bower support
added bower installation procedure to remove bower hardcoded
dependencies on https://review.openstack.org/#/c/198458/

Change-Id: Ic0a9b3a2dcfd84df35490fcd20c8399b3e0fd3cc
2015-11-13 16:40:34 -03:00
Sebastian Marcet bd1f2efd39 Updated configuration for OIDC
added app.php as template, bc now we need the app key set by default
on hiera.

Change-Id: I2d4678f36af911df33d0c334a76eb759aa2f725b
2015-08-18 17:34:27 -03:00
Marton Kiss 65255adaf0 Enable oauth2 in openstackid configuration
Add oauth2_enable and ssl_enable options to openstackid's server.php
configuration file.

Change-Id: Ib613ffeb550b682940e67273fbeaa8a101796f57
2014-12-19 09:46:25 +01:00
K Jonathan Harker 71e764582d Clean up bashate failures
Fix all of the bashate failures.  Also, bashate will install its negative
tests in its virtualenv, so we need to generate a list of files to pass to
bashate that excludes .tox/

Change-Id: I55559bf6137f705aec9a7f277928ad8d4cadc2ca
2014-09-30 12:40:59 -07:00
Marton Kiss 83b188fda1 Openstackid site-update feature
Update openstackid site into a new slot when a new release available
on tarballs.openstackid/openstackid site.

Change-Id: I59580f5a9d7b4ef09daea4c981977327d29804ff
2014-03-27 17:24:50 +01:00
Marton Kiss 2893d81266 Openstackid track site version
Openstackid deploy tool now tracks the deployed site version
from tarballs.openstack.org and deploy.sh status command display
UPDATE AVAILABLE when a new release is available.

Change-Id: I8bbc3bfceca37d00c3bba78995e3aff01b671aa4
2014-03-17 16:30:32 +01:00
Marton Kiss 9a92ed84b6 Openstackid deployment symlink override fix
Override existing config files with symlinks, like
bootstrap/environment.php.

Change-Id: Ibd4c81ec3b03c5c6860e5d9e0931fae7eedd8a1d
2014-02-25 22:22:35 +01:00
smarcet 0c6631eeb7 Clean up puppet (deploy LAMP / setup app config)
Implements: blueprint openid-oauth2-infra-implementation-puppet-script

Prepares a raw server with all software stack needed to run
openstackid project:

* installs PHP
* installs Apache
* installs Redis Server
* creates a initial environment configuration for laravel application
  (using *.erb templates)

Change-Id: If6216da0d70a45609076e8111a67055dbc87c9e4
2014-02-21 11:33:40 -03:00