RETIRED, Puppet module to deploy openstackid
Go to file
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
files Updated Permissions for deployment 2019-02-12 12:09:33 -03:00
manifests Disable legacy nodejs symlinks 2019-03-20 10:54:22 -07:00
spec/acceptance/nodesets Depend on helper gem for spec_helper_acceptance 2017-08-18 10:41:44 +02:00
templates Fix on mysql ssl certs 2019-02-15 08:09:01 -03:00
.gitignore Updated script to support PHP7 2019-01-15 15:01:21 -03:00
.gitreview Add standard puppet module files and .gitreview 2015-01-28 19:52:24 +01:00
Gemfile Update Gemfile for Zuulv3 2018-07-12 09:57:45 +02:00
LICENSE Add missing LICENSE file 2015-01-29 22:59:08 +00:00
README.md Add standard puppet module files and .gitreview 2015-01-28 19:52:24 +01:00
Rakefile Add standard puppet module files and .gitreview 2015-01-28 19:52:24 +01:00
bindep.txt Add bindep.txt file 2018-04-20 14:32:29 -04:00
metadata.json Be more forgiving in module deps list 2019-03-07 08:59:52 -08:00

README.md

OpenStack OpenStackId

OpenStackId is a single-sign-on service integrated with openstack.org profile database. Provides openid and oauth2 authentication for third party applications.

Quick Start

class { 'openstackid':
  site_admin_password      => 'adminpass',
  # openstackid application database
  id_mysql_host            => 'localhost',
  id_mysql_user            => 'openstackid',
  id_mysql_password        => 'password',
  id_db_name               => 'openstackid',
  # membership database
  ss_mysql_host            => 'localhost',
  ss_mysql_user            => 'openstackid',
  ss_mysql_password        => 'password',
  ss_db_name               => '$ss_db_name',
  # redis settings
  redis_port               => '6378',
  redis_host               => '127.0.0.1',
  redis_password           => 'password',
  # recaptcha service keys
  id_recaptcha_public_key  => $id_recaptcha_public_key,
  id_recaptcha_private_key => $id_recaptcha_private_key,
  id_recaptcha_template    => $id_recaptcha_template,
  # logging
  id_log_error_to_email    => $id_log_error_to_email,
  id_log_error_from_email  => $id_log_error_from_email,
  # laravel environment settings
  id_environment           => 'dev',
  # ssl configuration
  ssl_cert_file            => "/etc/ssl/certs/${::fqdn}.pem",
  ssl_key_file             => "/etc/ssl/private/${::fqdn}.key",
  ssl_chain_file           => '/etc/ssl/certs/intermediate.pem',
  ssl_cert_file_contents   => $ssl_cert_file_contents,
  ssl_key_file_contents    => $ssl_key_file_contents,
  ssl_chain_file_contents  => $ssl_chain_file_contents,
  # release to deploy
  openstackid_release      => '1.0.2',
}