aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2010-11-07 00:46:55 +0000
committerDexter Morgan <dmorgan@mageia.org>2010-11-07 00:46:55 +0000
commit7e76a7a51492d4ffffdd87034e02418abf59966f (patch)
tree72d9e1fe7954f6d3bc1fd2cd4017dc6fc5ae9468
parent14c86779788e7080b3ffa803de631b34374089e1 (diff)
downloadpuppet-7e76a7a51492d4ffffdd87034e02418abf59966f.tar
puppet-7e76a7a51492d4ffffdd87034e02418abf59966f.tar.gz
puppet-7e76a7a51492d4ffffdd87034e02418abf59966f.tar.bz2
puppet-7e76a7a51492d4ffffdd87034e02418abf59966f.tar.xz
puppet-7e76a7a51492d4ffffdd87034e02418abf59966f.zip
First commit for the puppet bugzilla module
-rw-r--r--modules/bugzilla/manifests/init.pp16
-rw-r--r--modules/bugzilla/templates/localconfig110
2 files changed, 126 insertions, 0 deletions
diff --git a/modules/bugzilla/manifests/init.pp b/modules/bugzilla/manifests/init.pp
new file mode 100644
index 00000000..2649c217
--- /dev/null
+++ b/modules/bugzilla/manifests/init.pp
@@ -0,0 +1,16 @@
+class bugzilla {
+
+ package { bugzilla
+ ensure => installed;
+ }
+
+ file { '/etc/bugzilla/localconfig':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("bugzilla/localconfig")
+ }
+
+}
+
diff --git a/modules/bugzilla/templates/localconfig b/modules/bugzilla/templates/localconfig
new file mode 100644
index 00000000..0371bf3b
--- /dev/null
+++ b/modules/bugzilla/templates/localconfig
@@ -0,0 +1,110 @@
+
+# If you are using Apache as your web server, Bugzilla can create .htaccess
+# files for you that will instruct Apache not to serve files that shouldn't
+# be accessed from the web browser (like your local configuration data and non-cgi
+# executable files). For this to work, the directory your Bugzilla
+# installation is in must be within the jurisdiction of a <Directory> block
+# in the httpd.conf file that has 'AllowOverride Limit' in it. If it has
+# 'AllowOverride All' or other options with Limit, that's fine.
+# (Older Apache installations may use an access.conf file to store these
+# <Directory> blocks.)
+# If this is set to 1, Bugzilla will create these files if they don't exist.
+# If this is set to 0, Bugzilla will not create these files.
+$create_htaccess = 0;
+
+# Usually, this is the group your web server runs as.
+# If you have a Windows box, ignore this setting.
+# If you have use_suexec switched on below, this is the group Apache switches
+# to in order to run Bugzilla scripts.
+# If you do not have access to the group your scripts will run under,
+# set this to "". If you do set this to "", then your Bugzilla installation
+# will be _VERY_ insecure, because some files will be world readable/writable,
+# and so anyone who can get local access to your machine can do whatever they
+# want. You should only have this set to "" if this is a testing installation
+# and you cannot set this up any other way. YOU HAVE BEEN WARNED!
+# If you set this to anything other than "", you will need to run checksetup.pl
+# asroot, or as a user who is a member of the specified group.
+$webservergroup = 'apache';
+
+# Set this if Bugzilla runs in an Apache SuexecUserGroup environment.
+# (If your web server runs control panel software (cPanel, Plesk or similar),
+# or if your Bugzilla is to run in a shared hosting environment, then you are
+# almost certainly in an Apache SuexecUserGroup environment.)
+# If you have a Windows box, ignore this setting.
+# If set to 0, Bugzilla will set file permissions as tightly as possible.
+# If set to 1, Bugzilla will set file permissions so that it may work in an
+# SuexecUserGroup environment. The difference is that static files (CSS,
+# JavaScript and so on) will receive world read permissions.
+$use_suexec = 0;
+
+# What SQL database to use. Default is mysql. List of supported databases
+# can be obtained by listing Bugzilla/DB directory - every module corresponds
+# to one supported database and the name corresponds to a driver name.
+$db_driver = 'pg';
+
+# The DNS name of the host that the database server runs on.
+$db_host = 'pgsql.mageia.org';
+
+# The name of the database
+$db_name = 'bugs';
+
+# Who we connect to the database as.
+$db_user = 'bugs';
+
+# Enter your database password here. It's normally advisable to specify
+# a password for your bugzilla database user.
+# If you use apostrophe (') or a backslash (\) in your password, you'll
+# need to escape it by preceding it with a '\' character. (\') or (\)
+# (Far simpler just not to use those characters.)
+$db_pass = 'bugs';
+
+# Sometimes the database server is running on a non-standard port. If that's
+# the case for your database server, set this to the port number that your
+# database server is running on. Setting this to 0 means "use the default
+# port for my database server."
+$db_port = 0;
+
+# MySQL Only: Enter a path to the unix socket for MySQL. If this is
+# blank, then MySQL's compiled-in default will be used. You probably
+# want that.
+$db_sock = '';
+
+# Should checksetup.pl try to verify that your database setup is correct?
+# (with some combinations of database servers/Perl modules/moonphase this
+# doesn't work)
+$db_check = 1;
+
+# With the introduction of a configurable index page using the
+# template toolkit, Bugzilla's main index page is now index.cgi.
+# Most web servers will allow you to use index.cgi as a directory
+# index, and many come preconfigured that way, but if yours doesn't
+# then you'll need an index.html file that provides redirection
+# to index.cgi. Setting $index_html to 1 below will allow
+# checksetup.pl to create one for you if it doesn't exist.
+# NOTE: checksetup.pl will not replace an existing file, so if you
+# wish to have checksetup.pl create one for you, you must
+# make sure that index.html doesn't already exist
+$index_html = 0;
+
+# For some optional functions of Bugzilla (such as the pretty-print patch
+# viewer), we need the cvs binary to access files and revisions.
+# Because it's possible that this program is not in your path, you can specify
+# its location here. Please specify the full path to the executable.
+$cvsbin = '/usr/bin/cvs';
+
+# For some optional functions of Bugzilla (such as the pretty-print patch
+# viewer), we need the interdiff binary to make diffs between two patches.
+# Because it's possible that this program is not in your path, you can specify
+# its location here. Please specify the full path to the executable.
+$interdiffbin = '/usr/bin/interdiff';
+
+# The interdiff feature needs diff, so we have to have that path.
+# Please specify the directory name only; do not use trailing slash.
+$diffpath = '/usr/bin';
+
+# This secret key is used by your installation for the creation and
+# validation of encrypted tokens to prevent unsolicited changes,
+# such as bug changes. A random string is generated by default.
+# It's very important that this key is kept secret. It also must be
+# very long.
+$site_wide_secret = 'FLDtMWoTaBMifoR5CXo8yAFkeHNzCDra8BwWv6HDgGIvRLVMahTgl6wmD43RaY2pwrrY2xcTUkEX0sGOw7ZPnjwbqx56DtNqHMNDnkS43wywBMfhw0w798zFqAOMYySyPPdEIGg9ZJ1KOtHPk4jW6WVvaHpLjZQEmJYqygVmUaxsSwxdWCQcRPKmQtZqGjvWCwuiTtGOKUhEBbpCIIX20Yw5N50tNq95VzYC08Qw4FGp0stDsx82wNNxdnK1m9KZ';