aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bugzilla-dev
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2026-02-21 18:52:35 -0800
committerDan Fandrich <danf@mageia.org>2026-02-21 19:05:59 -0800
commit12299baacbdd26b32de99370508b1ae79974240d (patch)
tree8819ecaa6f0ebc1d91323922a1898c0057fea27d /modules/bugzilla-dev
parentdff3eec23a755ceb24e758d959f89047263c1039 (diff)
downloadpuppet-12299baacbdd26b32de99370508b1ae79974240d.tar
puppet-12299baacbdd26b32de99370508b1ae79974240d.tar.gz
puppet-12299baacbdd26b32de99370508b1ae79974240d.tar.bz2
puppet-12299baacbdd26b32de99370508b1ae79974240d.tar.xz
puppet-12299baacbdd26b32de99370508b1ae79974240d.zip
Rename module paths to match classes
The refactor in commit e39155d4d changed class names but Puppet 3 seems to require the module path name to match.
Diffstat (limited to 'modules/bugzilla-dev')
-rwxr-xr-xmodules/bugzilla-dev/manifests/init.pp81
-rwxr-xr-xmodules/bugzilla-dev/templates/localconfig121
-rw-r--r--modules/bugzilla-dev/templates/params.json104
-rwxr-xr-xmodules/bugzilla-dev/templates/robots.txt10
-rwxr-xr-xmodules/bugzilla-dev/templates/vhost.conf2
-rwxr-xr-xmodules/bugzilla-dev/templates/webapp_bugzilla.conf73
6 files changed, 0 insertions, 391 deletions
diff --git a/modules/bugzilla-dev/manifests/init.pp b/modules/bugzilla-dev/manifests/init.pp
deleted file mode 100755
index b59cbdb7..00000000
--- a/modules/bugzilla-dev/manifests/init.pp
+++ /dev/null
@@ -1,81 +0,0 @@
-class bugzilla_dev {
-
- $bugzilla_dev_location = '/usr/share/bugzilla/'
-
- package {['graphviz',
- 'perl-Template-GD', # needed for graphical_report support
- 'perl-Test-Taint',
- 'perl-JSON-RPC',
- 'perl-Email-MIME',
- 'perl-Email-Sender',
- 'Math-Random-ISAAC',
- 'perl-Chart',
- 'perl-PatchReader',
- 'perl-ldap',
- 'perl-SOAP-Lite',
- 'perl-XMLRPC-Lite',
- 'perl-CGI']: }
-
- $pgsql_password = extlookup('bugzilla_pgsql','x')
- $ldap_password = extlookup('bugzilla_ldap','x')
-
- postgresql::remote_db_and_user { 'bugs':
- description => 'Bugzilla database',
- password => $pgsql_password,
- }
-
- file { '/usr/share/bugzilla/localconfig':
- group => 'apache',
- mode => '0640',
- content => template('bugzilla-dev/localconfig')
- }
-
-
- file { '/usr/share/bugzilla/data/params.json':
- group => 'apache',
- mode => '0640',
- content => template('bugzilla-dev/params.json')
- }
-
- apache::webapp_other { 'bugzilla-dev':
- webapp_file => 'bugzilla-dev/webapp_bugzilla.conf',
- }
-
- $bugs_vhost = "bugs-dev.${::domain}"
- $vhost_root = '/usr/share/bugzilla'
-
- apache::vhost::redirect_ssl { $bugs_vhost: }
-
- apache::vhost::base { $bugs_vhost:
- content => template('bugzilla-dev/vhost.conf'),
- aliases => { '/bugzilla/' => $vhost_root },
- use_ssl => true,
- location => $vhost_root,
- vhost => $bugs_vhost,
- }
-
- git::snapshot { $bugzilla_dev_location:
- source => "git://git.${::domain}/web/bugs"
- }
-
- file { 'Mageia':
- ensure => directory,
- path => '/usr/share/bugzilla',
- group => 'apache',
- recurse => true,
- require => Git::Snapshot[$bugzilla_dev_location],
- }
-
- file { '/usr/share/bugzilla/robots.txt':
- group => 'apache',
- mode => '0640',
- content => template('bugzilla-dev/robots.txt')
- }
-
- cron { 'collectstats':
- command => '/usr/share/bugzilla/bin/collectstats.pl',
- user => 'apache',
- hour => 2,
- minute => 30,
- }
-}
diff --git a/modules/bugzilla-dev/templates/localconfig b/modules/bugzilla-dev/templates/localconfig
deleted file mode 100755
index 2b7d6035..00000000
--- a/modules/bugzilla-dev/templates/localconfig
+++ /dev/null
@@ -1,121 +0,0 @@
-# If you are using Apache as your web server, Bugzilla can create .htaccess
-# files for you, which will keep this file (localconfig) and other
-# confidential files from being read over the web.
-#
-# If this is set to 1, checksetup.pl will create .htaccess files if
-# they don't exist.
-#
-# If this is set to 0, checksetup.pl will not create .htaccess files.
-$create_htaccess = 0;
-
-# The name of the group that your web server runs as. On Red Hat
-# distributions, this is usually "apache". On Debian/Ubuntu, it is
-# usually "www-data".
-#
-# If you have use_suexec turned on below, then this is instead the name
-# of the group that your web server switches to to run cgi files.
-#
-# If this is a Windows machine, ignore this setting, as it does nothing.
-#
-# 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
-# as root or as a user who is a member of the specified group.
-$webservergroup = 'apache';
-
-# Set this to 1 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 this is a Windows box, ignore this setting, as it does nothing.
-#
-# If set to 0, checksetup.pl will set file permissions appropriately for
-# a normal webserver environment.
-#
-# If set to 1, checksetup.pl will set file permissions so that Bugzilla
-# works in a SuexecUserGroup environment.
-$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 of the module (before ".pm")
-# corresponds to a valid value for this variable.
-$db_driver = 'pg';
-
-# The DNS name or IP address of the host that the database server runs on.
-$db_host = 'pg.mageia.org';
-
-# The name of the database. For Oracle, this is the database's SID. For
-# SQLite, this is a name (or path) for the DB file.
-$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 (\)
-# (It is far simpler to just not use those characters.)
-$db_pass = '<%= pgsql_password %>';
-
-# 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, and so you can try setting this to 0 to make checksetup.pl
-# run.
-$db_check = 1;
-
-# Path to a PEM file with a list of trusted SSL CA certificates.
-# The file must be readable by web server user.
-$db_mysql_ssl_ca_file = '';
-
-# Path to a directory containing trusted SSL CA certificates in PEM format.
-# Directory and files inside must be readable by the web server user.
-$db_mysql_ssl_ca_path = '';
-
-# Full path to the client SSL certificate in PEM format we will present to the DB server.
-# The file must be readable by web server user.
-$db_mysql_ssl_client_cert = '';
-
-# Full path to the private key corresponding to the client SSL certificate.
-# The file must not be password-protected and must be readable by web server user.
-$db_mysql_ssl_client_key = '';
-
-# 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 an index.html 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;
-
-# If you want to use the "Difference Between Two Patches" feature of the
-# Patch Viewer, please specify the full path to the "interdiff" executable
-# here.
-$interdiffbin = '/usr/bin/interdiff';
-
-# For the "Difference Between Two Patches" feature to work, we need to know
-# what directory the "diff" bin is in. (You only need to set this if you
-# are using that feature of the Patch Viewer.)
-$diffpath = '/usr/bin';
-
diff --git a/modules/bugzilla-dev/templates/params.json b/modules/bugzilla-dev/templates/params.json
deleted file mode 100644
index b51b4c00..00000000
--- a/modules/bugzilla-dev/templates/params.json
+++ /dev/null
@@ -1,104 +0,0 @@
-{
- "LDAPBaseDN" : "ou=People,<%= dc_suffix %>",
- "LDAPbinddn" : "cn=bugzilla-alamut,ou=System Accounts,<%= dc_suffix %>:<%= ldap_password %>",
- "LDAPfilter" : "",
- "LDAPmailattribute" : "mail",
- "LDAPserver" : "ldap.<%= domain %>",
- "LDAPstarttls" : "1",
- "LDAPuidattribute" : "uid",
- "RADIUS_NAS_IP" : "",
- "RADIUS_email_suffix" : "",
- "RADIUS_secret" : "",
- "RADIUS_server" : "",
- "ajax_user_autocompletion" : "1",
- "allow_attachment_deletion" : "0",
- "allow_attachment_display" : "1",
- "allowbugdeletion" : "0",
- "allowemailchange" : "0",
- "allowuserdeletion" : "0",
- "announcehtml" : "",
- "attachment_base" : "",
- "auth_env_email" : "",
- "auth_env_id" : "",
- "auth_env_realname" : "",
- "chartgroup" : "editbugs",
- "collapsed_comment_tags" : "obsolete, spam",
- "comment_taggers_group" : "editbugs",
- "commentonchange_resolution" : "1",
- "commentonduplicate" : "0",
- "confirmuniqueusermatch" : "1",
- "cookiedomain" : "",
- "cookiepath" : "/",
- "createemailregexp" : ".*",
- "debug_group" : "editbugs",
- "default_search_limit" : "500",
- "defaultopsys" : "Linux",
- "defaultplatform" : "All",
- "defaultpriority" : "Normal",
- "defaultquery" : "bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailqa_contact2=1&order=Importance&long_desc_type=substring",
- "defaultseverity" : "normal",
- "duplicate_or_move_bug_status" : "RESOLVED",
- "emailregexp" : "^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$",
- "emailregexpdesc" : "A legal address must contain exactly one '@', and at least one '.' after the @.",
- "emailsuffix" : "",
- "font_file" : "",
- "globalwatchers" : "bugs-dev@ml.mageia.org",
- "inbound_proxies" : "",
- "insidergroup" : "secteam",
- "last_visit_keep_days" : "10",
- "letsubmitterchoosemilestone" : "1",
- "letsubmitterchoosepriority" : "1",
- "mail_delivery_method" : "SMTP",
- "mailfrom" : "bugzilla-daemon@<%= domain %>",
- "maintainer" : "sysadmin@group.<%= domain %>",
- "makeproductgroups" : "0",
- "max_search_results" : "10000",
- "maxattachmentsize" : "1000",
- "maxlocalattachment" : "0",
- "maxusermatches" : "1000",
- "memcached_namespace" : "bugzilla:",
- "memcached_servers" : "",
- "musthavemilestoneonaccept" : "0",
- "mybugstemplate" : "buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailassigned_to1=1&amp;emailreporter1=1&amp;emailtype1=exact&amp;email1=%userid%&amp;field0-0-0=bug_status&amp;type0-0-0=notequals&amp;value0-0-0=UNCONFIRMED&amp;field0-0-1=reporter&amp;type0-0-1=equals&amp;value0-0-1=%userid%",
- "noresolveonopenblockers" : "0",
- "or_groups" : "0",
- "password_check_on_login" : "1",
- "password_complexity" : "no_constraints",
- "proxy_url" : "",
- "querysharegroup" : "editbugs",
- "quip_list_entry_control" : "open",
- "rememberlogin" : "on",
- "requirelogin" : "0",
- "search_allow_no_criteria" : "0",
- "shadowdb" : "",
- "shadowdbhost" : "",
- "shadowdbport" : "3306",
- "shadowdbsock" : "",
- "shutdownhtml" : "",
- "smtp_debug" : "0",
- "smtp_password" : "",
- "smtp_ssl" : "0",
- "smtp_username" : "",
- "smtpserver" : "localhost",
- "ssl_redirect" : "1",
- "sslbase" : "https://bugs-dev.<%= domain %>/",
- "strict_isolation" : "0",
- "strict_transport_security" : "off",
- "timetrackinggroup" : "",
- "upgrade_notification" : "latest_stable_release",
- "urlbase" : "http://bugs-dev.<%= domain %>/",
- "use_mailer_queue" : "0",
- "use_see_also" : "1",
- "useclassification" : "0",
- "usemenuforusers" : "0",
- "useqacontact" : "1",
- "user_info_class" : "CGI",
- "user_verify_class" : "LDAP",
- "usestatuswhiteboard" : "1",
- "usetargetmilestone" : "1",
- "usevisibilitygroups" : "0",
- "utf8" : "1",
- "webdotbase" : "/usr/bin/dot",
- "webservice_email_filter" : "0",
- "whinedays" : "0"
-}
diff --git a/modules/bugzilla-dev/templates/robots.txt b/modules/bugzilla-dev/templates/robots.txt
deleted file mode 100755
index 63639f02..00000000
--- a/modules/bugzilla-dev/templates/robots.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-User-agent: *
-Disallow: /
-Allow: /*index.cgi
-Allow: /*page.cgi
-Allow: /*show_bug.cgi
-Allow: /*describecomponents.cgi
-Disallow: /*show_bug.cgi*ctype=*
-Disallow: /*show_bug.cgi*format=multiple*
-Disallow: /*page.cgi*id=voting*
-Sitemap: https://bugs.mageia.org/page.cgi?id=sitemap/sitemap.xml
diff --git a/modules/bugzilla-dev/templates/vhost.conf b/modules/bugzilla-dev/templates/vhost.conf
deleted file mode 100755
index 79eab9fb..00000000
--- a/modules/bugzilla-dev/templates/vhost.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-RewriteEngine On
-RewriteRule ^/([0-9]+)$ /show_bug.cgi?id=$1 [R=301,L]
diff --git a/modules/bugzilla-dev/templates/webapp_bugzilla.conf b/modules/bugzilla-dev/templates/webapp_bugzilla.conf
deleted file mode 100755
index a8f37a00..00000000
--- a/modules/bugzilla-dev/templates/webapp_bugzilla.conf
+++ /dev/null
@@ -1,73 +0,0 @@
-<%
-path_data_directory = "/var/lib/bugzilla"
-%>
-
-<Directory /usr/share/bugzilla/>
- AddHandler cgi-script .cgi
- Options +ExecCGI +FollowSymLinks
- DirectoryIndex index.cgi index.html
- AllowOverride All
-</Directory>
-
-# The duplicates.rdf must be accessible, as it is used by
-# duplicates.xul
-<Directory <%= path_data_directory %>>
- <Files duplicates.rdf>
- <IfModule mod_authz_core.c>
- # Apache 2.4
- Require all granted
- </IfModule>
- <IfModule !mod_authz_core.c>
- # Apache 2.2
- Order allow,deny
- Allow from all
- </IfModule>
- </Files>
-</Directory>
-
-# The png files locally created locally must be accessible
-<Directory <%= path_data_directory %>/webdot>
- <FilesMatch \.png$>
- <IfModule mod_authz_core.c>
- # Apache 2.4
- Require all granted
- </IfModule>
- <IfModule !mod_authz_core.c>
- # Apache 2.2
- Order allow,deny
- Allow from all
- </IfModule>
- </FilesMatch>
-</Directory>
-
-Alias /graphs/ <%= path_data_directory %>/graphs/
-<Directory <%= path_data_directory %>/graphs>
- <FilesMatch \.png$>
- <IfModule mod_authz_core.c>
- # Apache 2.4
- Require all granted
- </IfModule>
- <IfModule !mod_authz_core.c>
- # Apache 2.2
- Order allow,deny
- Allow from all
- </IfModule>
- </FilesMatch>
-</Directory>
-
-# This should work automatically, but perhaps something
-# in our Bugzilla packaging breaks this?
-Alias /extensions/Mageia/web/ <%= scope.lookupvar("bugzilla::extension_location") %>/web/
-<Directory <%= scope.lookupvar("bugzilla::extension_location") %>/web/>
- <FilesMatch \.png$>
- <IfModule mod_authz_core.c>
- # Apache 2.4
- Require all granted
- </IfModule>
- <IfModule !mod_authz_core.c>
- # Apache 2.2
- Order allow,deny
- Allow from all
- </IfModule>
- </FilesMatch>
-</Directory>