diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..97cd3eb --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=openstack-infra/puppet-openstackid.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..b95d7ce --- /dev/null +++ b/README.md @@ -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', + } \ No newline at end of file diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..7f22329 --- /dev/null +++ b/Rakefile @@ -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') \ No newline at end of file diff --git a/manifests/init.pp b/manifests/init.pp index 7d7987a..06f0427 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..ba2a1f9 --- /dev/null +++ b/metadata.json @@ -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" } + ] +}