Add standard puppet module files and .gitreview

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
This commit is contained in:
Marton Kiss 2015-01-28 18:43:45 +01:00
parent 3be00405e4
commit 2e19e6ec64
5 changed files with 80 additions and 2 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack-infra/puppet-openstackid.git

43
README.md Normal file
View File

@ -0,0 +1,43 @@
# 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',
}

8
Rakefile Normal file
View File

@ -0,0 +1,8 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_autoloader_layout')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
PuppetLint.configuration.send('disable_class_parameter_defaults')

View File

@ -49,8 +49,8 @@ class openstackid (
$id_recaptcha_private_key = '',
$id_recaptcha_template = '',
$openstackid_release = 'latest',
$ssl_enable = 'true',
$oauth2_enable = 'true',
$ssl_enable = true,
$oauth2_enable = true,
) {
# php packages needed for openid server

23
metadata.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "openstackci-openstackid",
"version": "0.0.1",
"author": "Openstack CI",
"summary": "Puppet module for openstackid",
"license": "Apache 2.0",
"source": "git://git.openstack.org/openstack-infra/puppet-openstackid.git",
"project_page": "http://ci.openstack.org/",
"issues_url": "https://storyboard.openstack.org/#!/project/761",
"operatingsystem_support": [
{ "operatingsystem": "Ubuntu", "operatingsystemrelease": ["12.04"] }
],
"requirements": [
{ "name": "pe", "version_requirement": ">= 3.2.0 < 3.4.0" },
{ "name": "puppet", "version_requirement": "3.x" }
],
"dependencies": [
{ "name": "puppetlabs/stdlib", "version_requirement": ">= 3.2.0" },
{ "name": "puppetlabs/mysql", "version_requirement": "= 0.6.1" },
{ "name": "puppetlabs/apache", "version_requirement": "= 0.0.4" },
{ "name": "openstackci/redis", "version_requirement": "= 0.0.1" }
]
}