From 9004ea91eb9483938e5a2509ff10e19de760be7f Mon Sep 17 00:00:00 2001 From: Marton Kiss Date: Mon, 26 Jan 2015 15:02:08 +0100 Subject: [PATCH] Added missing files requires for Puppet module split-out Include .gitreview, the Modulefile specification, a short readme and a Rakefile for puppet-lint. --- .gitreview | 4 +++ Modulefile | 14 +++++++++ README.md | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Rakefile | 8 +++++ 4 files changed, 114 insertions(+) create mode 100644 .gitreview create mode 100644 Modulefile create mode 100644 README.md create mode 100644 Rakefile diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..bfc85e7 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=openstack-infra/puppet-askbot.git diff --git a/Modulefile b/Modulefile new file mode 100644 index 0000000..e1dd2da --- /dev/null +++ b/Modulefile @@ -0,0 +1,14 @@ +name 'openstack-askbot' +version '0.0.1' +source 'git://git.openstack.org/openstack-infra/puppet-askbot.git' +author 'openstackci' +license 'Apache 2.0' +summary 'Puppet module for Askbot' +description 'This module deployes and configures Askbot application.' +project_page 'https://github.com/openstack-ci/puppet-askbot' + +## Add dependencies, if any: +dependency 'puppetlabs/stdlib', '= 3.2.0' +dependency 'puppetlabs/mysql', '= 0.6.1' +dependency 'puppetlabs/apache', '= 0.0.4' +# TODO: add dependency to openstack-redis \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..467239e --- /dev/null +++ b/README.md @@ -0,0 +1,88 @@ +# OpenStack Askbot + +Marton Kiss + +This module manages and installs Askbot with an optional custom Sass based +theme. + +# Quick Start + + class { 'askbot': + db_provider => 'pgsql', + require => Postgresql::Server::Db[$db_name], + } + + askbot::site { 'ask.example.com': + db_name => 'askbotdb', + db_user => 'askbot', + db_password => 'changeme', + require => [ Class['redis'], Class['askbot'] ], + } + } + +# Configuration + +The Askbot puppet module is separated into individual components which Askbot +needs to run. + +## ::askbot + +A module that installs a standalone Askbot application with dependencies based +on configuration settings. + + class { 'askbot': + db_provider => 'mysql', + askbot_version => '0.7.50', + redis_enabled => false, + } + +## ::askbot::site + +This module installs an Askbot site, synchronize and install the database +schema, configure the askbot-celeryd daemon required for scheduled tasks, and +finally apply a proper log rotation. + + askbot::site { 'ask.example.com': + www_user => 'www-data', + www_group => 'www-data', + slot_name => 'slot0', + # custom theme + custom_theme_enabled => false, + custom_theme_name => undef, + # debug settings + askbot_debug => false, + # redis cache configuration + redis_enabled => false, + redis_prefix => 'askbot', + redis_port => undef, + redis_max_memory => undef, + redis_bind => undef, + redis_password => undef, + # site ssl configuration + site_ssl_enabled => false, + site_ssl_cert_file_contents => undef, + site_ssl_key_file_contents => undef, + site_ssl_chain_file_contents => undef, + site_ssl_cert_file => '', + site_ssl_key_file => '', + site_ssl_chain_file => '', + # smtp settings + smtp_host => 'localhost', + smtp_port => '25', + # database connection parameters + db_provider => 'mysql', + db_name => undef, + db_user => undef, + db_password => undef, + db_host => 'localhost', + } + +## ::askbot::compass + +A helper module to compile the Sass style sheets for a custom theme. As +OpenStack Askbot theme contains pure Sass files in the repository, for a +production deployment those files must be compiled into css. + + askbot::compass { 'slot0': + } + 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