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
fixed permission due generating the pickle
file was not allowed.
Change-Id: I18f5a832753c393ba01cec6e3318191a1e639c1f
Signed-off-by: smarcet <smarcet@gmail.com>
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
Get rid of lots of leading :: prefixes because the puppet-lint
authors think that's prettier for some reason.
Change-Id: If1f0fcebe4305861ff6cabe596feb023548cf23a
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
* added code to ensure that directory /etc/mysql-client-ssl exists
before to create the certs
* fixed typo on .env
Change-Id: I89640b2d25b274bcc7205b6665c9930d695a003d
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
Added php 7.x support and xenial support using external
ppa from andrej
Depends-On: https://review.openstack.org/611936
Change-Id: Ic30cc62216be3035c363fa0203a757df662acf47
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
addeed more configuration params for
IDP cookie session. also set default value
for lifetime from 120 to 1440 minutes as
requested by Jimmy McArthur.
Change-Id: Iddca85712c98f88e11b2c872aaf1911bd6263c39
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
* removed php5enmod ( it does not exists on precise)
* updated config to use class apache::mod::event intead
on custom config file
Change-Id: Ic7610a5f93c9d5eb3d1673ede3ad41227a6537db
* 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
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
Laravel expects the short hostname for its environment identifier,
but we didn't notice this before because production openstackid.org
and openstackid-dev.openstack.org had incorrect /etc/hostname files
containing their fully qualified hostnames rather than their short
hostnames. Now that we correctly set the contents of the hostname
file in new deployments, this will break without correcting the
Puppet module.
The plan is to merge this with Puppet disabled for openstackid.org,
confirm that correcting the hostname on openstackid-dev revives it,
then manually apply the same correction and this patch on production
openstackid.org before reenabling Puppet there.
Change-Id: I41ddb3cd12fa564d19cedc18ca5585d2ca7481da
Depends-On: If67783a2cbaf77e89a3d2aae80a9206b547dbac6
Added notification to service apache2 when some of the ssl
cert files changes, to be able to reload them.
Change-Id: Iab89ce159d7874587fd006c765f042a41a20505f
added db seeding support configuration on install site command
by default is disabled to avoid overwriten existent db
Change-Id: Iba74a5f6f8a08f73d73bc0ca2d499ea215cf8c8a
Reorder the exec paths so that /usr/local/bin is checked before
/usr/bin and /bin. The newer NPM-installed node.js is at
/usr/local/bin/node while the older distro-packaged node.js is at
/usr/bin/node.
Change-Id: I3e13ea1e9c5efed6e1a3ab489e70918f6b6a1768
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
improved bower support using nodejs native module
instead of custom logic used on former approachs.
Change-Id: Icf1cea6b78d385cf085432937b5373c6958f6fd0
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. Also fix lint
errors caught by the puppet-lint-absolute_classname-check gem and arrow
alignment errors now caught by the modern puppet-lint gem.
We disable the puppet-lint-empty_string-check check for now, to be
fixed later, because this module makes heavy use of empty string
defaults and updating this needs to be done with care.
Change-Id: I90e74f25a1aa176d336afc591ac1da9c03c77aa7
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: Id03b3895a5676b8d81cdd79a9536b4084dc8c3e3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This module has been split out from system-config, and additional
files are required to create a proper puppet module. Fix a puppetlint
issue in init.pp.
Some of the files are described in the spec:
http://specs.openstack.org/openstack-infra/infra-specs/specs/puppet-modules.html
Change-Id: I9135e0e9c8cd880c56a7630098c5175bc40846d8