From 9927467fbb34422ea8bf84cce865b2cc8240e835 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Mon, 16 Mar 2015 15:04:45 +0000 Subject: Remove Gerrit system A new version of a Baserock Gerrit system definition now lives in infrastructure.git. Change-Id: I6aeed4c5381edf5e7736f1816f9d58832c0ac781 --- clusters/gerrit-openstack.morph | 16 ------- gerrit.configure | 50 ---------------------- strata/patch-manager-gerrit.morph | 10 ----- .../gerrit-installation-binaries.morph | 28 ------------ systems/gerrit-x86_64.morph | 32 -------------- 5 files changed, 136 deletions(-) delete mode 100644 clusters/gerrit-openstack.morph delete mode 100755 gerrit.configure delete mode 100644 strata/patch-manager-gerrit.morph delete mode 100644 strata/patch-manager-gerrit/gerrit-installation-binaries.morph delete mode 100644 systems/gerrit-x86_64.morph diff --git a/clusters/gerrit-openstack.morph b/clusters/gerrit-openstack.morph deleted file mode 100644 index bdfb128c..00000000 --- a/clusters/gerrit-openstack.morph +++ /dev/null @@ -1,16 +0,0 @@ -name: open-stack-gerrit -kind: cluster -description: | - Deploy gerrit morphology into openstack -systems: -- morph: systems/gerrit-x86_64.morph - deploy: - openstack-image: - type: openstack - location: http://openstack-host:5000/v2.0/ - DISK_SIZE: 4G - OPENSTACK_USER: openstack-user - OPENSTACK_TENANT: openstack-tenant - OPENSTACK_IMAGENAME: Gerrit - CLOUD_INIT: yes - KERNEL_ARGS: console=ttyS0 console=tty0 diff --git a/gerrit.configure b/gerrit.configure deleted file mode 100755 index b691ea95..00000000 --- a/gerrit.configure +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2014 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# -# This is a "morph deploy" configuration extension to enable bash -# as default shell in gerrit systems. -set -e - -ROOT="$1" - -############################################################################### - -# Set bash as default shell -ln -sfn bash "$ROOT/bin/sh" - -############################################################################### -echo "Creating gerrit-daemon unit file" - -cat << EOF > "$ROOT"/etc/systemd/system/gerrit-daemon.service -[Unit] -Description=Gerrit Code Review Server Service - -ConditionPathExists=/home/gerrit2/gerrit/.gerrit_controller - -[Service] -User=gerrit2 -Group=gerrit2 -Environment="PATH=/usr/bin:/bin" -Type=forking -ExecStart=/home/gerrit2/gerrit/.gerrit_controller/bin/gerrit.sh start - -[Install] -WantedBy=multi-user.target -EOF -ln -sfn "../gerrit-daemon.service" \ - "$ROOT/etc/systemd/system/multi-user.target.wants/gerrit-daemon.service" diff --git a/strata/patch-manager-gerrit.morph b/strata/patch-manager-gerrit.morph deleted file mode 100644 index 60e6d6cd..00000000 --- a/strata/patch-manager-gerrit.morph +++ /dev/null @@ -1,10 +0,0 @@ -name: patch-manager-gerrit -kind: stratum -build-depends: -- morph: strata/tools.morph -chunks: -- name: gerrit-installation-binaries - morph: strata/patch-manager-gerrit/gerrit-installation-binaries.morph - repo: github:franred/gerrit-installation-binaries - ref: ef262c635890f19eaff8ef6bbd831ee9b0d8693e - unpetrify-ref: master diff --git a/strata/patch-manager-gerrit/gerrit-installation-binaries.morph b/strata/patch-manager-gerrit/gerrit-installation-binaries.morph deleted file mode 100644 index b0d1a393..00000000 --- a/strata/patch-manager-gerrit/gerrit-installation-binaries.morph +++ /dev/null @@ -1,28 +0,0 @@ -name: gerrit-installation-binaries -kind: chunk -configure-commands: [] -build-commands: -- cat jdk-8u20-linux-x64.tar.gz_* > jdk-8u20-linux-x64.tar.gz -install-commands: -- mkdir -p "$DESTDIR$PREFIX"/bin -- mkdir -p "$DESTDIR$PREFIX"/lib -- mkdir -p "$DESTDIR$PREFIX"/share/gerrit -- cp gerrit-2.9.war "$DESTDIR$PREFIX"/share/gerrit -- tar zxf jdk-8u20-linux-x64.tar.gz -C "$DESTDIR$PREFIX"/lib -- unzip jce_policy-8.zip -d "$DESTDIR$PREFIX"/lib/jdk1.8.0_20/jre/lib/security -- ln -sfn "$PREFIX"/lib/jdk1.8.0_20/jre/bin/java "$DESTDIR$PREFIX"/bin/ -system-integration: - gerrit-installation-binaries-misc: - 01-adduser: - - adduser -D -h /home/gerrit2 -g 'Gerrit Administrator' -s /bin/sh gerrit2 - 02-install-gerrit: - - | - install -D /usr/share/gerrit/gerrit-2.9.war /home/gerrit2/gerrit/gerrit-2.9.war \ - -o gerrit2 -g gerrit2 -m 644 - chown gerrit2 /home/gerrit2/gerrit - sudo LD_LIBRARY_PATH=/usr/jdk1.8.0_20/jre/lib/amd64/jli \ - -u gerrit2 java -jar /home/gerrit2/gerrit/gerrit-2.9.war \ - init --batch -d /home/gerrit2/gerrit/.gerrit_controller \ - --no-auto-start - sed -i "s|canonicalWebUrl =.*|canonicalWebUrl = http://localhost:8080|g" \ - /home/gerrit2/gerrit/.gerrit_controller/etc/gerrit.config diff --git a/systems/gerrit-x86_64.morph b/systems/gerrit-x86_64.morph deleted file mode 100644 index 91d4c701..00000000 --- a/systems/gerrit-x86_64.morph +++ /dev/null @@ -1,32 +0,0 @@ -name: gerrit-x86_64 -kind: system -description: system to install gerrit on it -arch: x86_64 -strata: -- name: build-essential - morph: strata/build-essential.morph -- name: bsp-x86_64-generic - morph: strata/bsp-x86_64-generic.morph -- name: foundation - morph: strata/foundation.morph -- name: core - morph: strata/core.morph -- name: tools - morph: strata/tools.morph -- name: nfs - morph: strata/nfs.morph -- name: databases - morph: strata/databases.morph -- name: network-security - morph: strata/network-security.morph -- name: cloudinit-support - morph: strata/cloudinit-support.morph -- name: patch-manager-gerrit - morph: strata/patch-manager-gerrit.morph -configuration-extensions: -- set-hostname -- add-config-files -- nfsboot -- install-files -- cloud-init -- gerrit -- cgit v1.2.1