diff options
| author | Dan Fandrich <danf@mageia.org> | 2026-02-21 18:52:35 -0800 |
|---|---|---|
| committer | Dan Fandrich <danf@mageia.org> | 2026-02-21 19:05:59 -0800 |
| commit | 12299baacbdd26b32de99370508b1ae79974240d (patch) | |
| tree | 8819ecaa6f0ebc1d91323922a1898c0057fea27d /modules/bugzilla_dev/manifests/init.pp | |
| parent | dff3eec23a755ceb24e758d959f89047263c1039 (diff) | |
| download | puppet-12299baa.tar puppet-12299baa.tar.gz puppet-12299baa.tar.bz2 puppet-12299baa.tar.xz puppet-12299baa.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/manifests/init.pp')
| -rwxr-xr-x | modules/bugzilla_dev/manifests/init.pp | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/modules/bugzilla_dev/manifests/init.pp b/modules/bugzilla_dev/manifests/init.pp new file mode 100755 index 00000000..530f9a65 --- /dev/null +++ b/modules/bugzilla_dev/manifests/init.pp @@ -0,0 +1,81 @@ +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, + } +} |
