RETIRED, Puppet module for Askbot
Go to file
Ian Wienand 1ddaaf168d Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I174b328472581c9811b19b2d3572d02307b6d88d
2019-03-24 20:35:36 +00:00
examples Refactor vcsrepo to git resource to resolve refresh trigger issues 2015-10-15 18:28:18 +02:00
manifests Merge "Use earlier six release" 2018-07-23 07:25:03 +00:00
spec/acceptance/nodesets Depend on helper gem for spec_helper_acceptance 2017-08-18 10:41:43 +02:00
templates Fix template variable 2018-07-24 11:51:52 +02:00
.gitignore Add Gemfile and puppet 4 checks 2015-07-09 17:37:05 -07:00
.gitreview Added missing files requires for Puppet module split-out 2015-01-26 15:02:08 +01:00
Gemfile Update Gemfile for Zuulv3 2018-07-12 09:57:43 +02:00
LICENSE Add missing LICENSE file 2015-01-29 22:56:24 +00:00
README.md Refactor vcsrepo to git resource to resolve refresh trigger issues 2015-10-15 18:28:18 +02:00
Rakefile Enable arrow alignment lint check 2015-07-14 19:17:00 -07:00
bindep.txt Add bindep.txt file 2017-05-01 21:04:59 -04:00
metadata.json Replace openstack.org git:// URLs with https:// 2019-03-24 20:35:36 +00:00

README.md

OpenStack Askbot

Marton Kiss marton.kiss@gmail.com

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. This class synchronize and install the database schema, configure the askbot-celeryd daemon required for scheduled tasks, and finally apply a proper log rotation.

The source of deployement is a git repository defined in askbot_repo and askbot_revision parameters.

class { 'askbot': dist_root => '/srv/dist', site_root => '/srv/askbot-site', askbot_branch => 'master', askbot_repo => 'https://github.com/ASKBOT/askbot-devel.git', www_user => 'www-data', www_group => 'www-data', site_name => undef, # 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::theme::compass { 'os': require => Git['askbot-theme'], before => Exec['askbot-static-generate'], }