From 08c0187b591bb1bb4248382a8106a450c9b359e3 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 27 Mar 2017 11:17:12 -0400 Subject: Bug 1349752 - Add script for configuring c9 to run bmo --- scripts/c9-install | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 scripts/c9-install (limited to 'scripts/c9-install') diff --git a/scripts/c9-install b/scripts/c9-install new file mode 100644 index 000000000..d5bc537b4 --- /dev/null +++ b/scripts/c9-install @@ -0,0 +1,96 @@ +#!/bin/bash + +sudo apt update +wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb +SUDO="sudo env DEBIAN_FRONTEND=noninteractive" +$SUDO debconf-set-selections < ~/checksetup_answers.txt <<'ANSWERS' +$answer{'ADMIN_EMAIL'} = 'admin@mozilla.bugs'; +$answer{'ADMIN_OK'} = 'Y'; +$answer{'ADMIN_PASSWORD'} = 'bmo4c9rocks'; +$answer{'ADMIN_REALNAME'} = 'BMO Admin'; +$answer{'NO_PAUSE'} = 1; +$answer{'apache_size_limit'} = 700000; +$answer{'bugzilla_version'} = '1'; +$answer{'create_htaccess'} = ''; +$answer{'diffpath'} = '/usr/bin'; +$answer{'index_html'} = 0; +$answer{'interdiffbin'} = '/usr/bin/interdiff'; +$answer{'password_complexity'} = 'bmo'; +$answer{'user_info_class'} = 'GitHubAuth,CGI'; +$answer{'user_verify_class'} = 'GitHubAuth,DB'; +$answer{'memcached_namespace'} = 'bmo:'; +$answer{'memcached_servers'} = ''; +$answer{'use_mailer_queue'} = 1; +$answer{'useclassification'} = 1; +$answer{'usebugaliases'} = 1; +$answer{'upgrade_notification'} = 0; +$answer{'usestatuswhiteboard'} = 1; +$answer{'usetargetmilestone'} = 1; +$answer{'webdotbase'} = '/usr/bin/dot'; +$answer{'auth_delegation'} = 1; +$answer{'insidergroup'} = 'admin'; +$answer{'defaultpriority'} = '--'; +$answer{'defaultseverity'} = 'normal'; +$answer{'maxattachmentsize'} = 4095; +$answer{'skin'} = 'Mozilla'; +ANSWERS +sudo tee /etc/mysql/conf.d/max-packet.cnf < /dev/null <<'CODE' +PerlSwitches -wT +PerlConfigRequire /home/ubuntu/workspace/mod_perl.pl + + + DocumentRoot /home/ubuntu/workspace + ServerName https://${C9_HOSTNAME}:443 + KeepAlive off + + LogLevel info + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + Options Indexes FollowSymLinks ExecCGI + AllowOverride All + Require all granted + + + +ServerName https://${C9_HOSTNAME} +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet +CODE -- cgit v1.2.3-24-g4f1b