Browse code

Feat: dependency package for quick TICK install

Thomas Cataldo authored on 11/05/2018 09:41:58
Showing 9 changed files
... ...
@@ -30,6 +30,10 @@ pushd ${WORKSPACE}
30 30
 
31 31
 for file in */debian/control; do
32 32
     updateControlFile ${file} bm-nginx ${BMNGINX}
33
+    updateControlFile ${file} bm-telegraf ${TELEGRAF}
34
+    updateControlFile ${file} bm-chronograf ${CHRONOGRAF}
35
+    updateControlFile ${file} bm-kapacitor ${KAPACITOR}
36
+    updateControlFile ${file} bm-influxdb ${INFLUXDB}
33 37
     updateControlFile ${file} bm-cyrus-imapd ${BMCYRUS}
34 38
     updateControlFile ${file} bm-postgresql ${BMPOSTGRESQL}
35 39
     updateControlFile ${file} bm-jdk ${BMJDK}
... ...
@@ -39,6 +43,10 @@ done
39 39
 
40 40
 for file in */redhat/*.spec; do
41 41
     updateSpecFile ${file} bm-nginx ${BMNGINX}
42
+    updateSpecFile ${file} bm-telegraf ${TELEGRAF}
43
+    updateSpecFile ${file} bm-chronograf ${CHRONOGRAF}
44
+    updateSpecFile ${file} bm-kapacitor ${KAPACITOR}
45
+    updateSpecFile ${file} bm-influxdb ${INFLUXDB}
42 46
     updateSpecFile ${file} bm-cyrus-imapd 1:${BMCYRUS}
43 47
     updateSpecFile ${file} bm-postgresql ${BMPOSTGRESQL}
44 48
     updateSpecFile ${file} bm-jdk ${BMJDK}
45 49
new file mode 100644
... ...
@@ -0,0 +1,13 @@
0
+<?xml version="1.0"?>
1
+<projectDescription>
2
+	<name>bm-tick-full</name>
3
+	<comment/>
4
+	<projects>
5
+	</projects>
6
+	<buildSpec>
7
+		
8
+	</buildSpec>
9
+	<natures>
10
+		
11
+	</natures>
12
+</projectDescription>
0 13
new file mode 100644
1 14
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+Dependency package for the full bm tick stack
0 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+Source: bluemind
1
+Section: net
2
+Priority: optional
3
+Maintainer: BlueMind Team <team@blue-mind.net>
4
+Standards-Version: 3.9.1
5
+
6
+Package: bm-tick-full
7
+Architecture: amd64
8
+Depends: bm-node (= ${binary:Version}), bm-telegraf (= 1.6.2.bm1-1), bm-chronograf (= 1.4.4.2.bm1~751dc7b88), bm-kapacitor (= 1.4.1.bm1~a3d86bbb), bm-influxdb (= 1.5.2.bm1~7cb9f2921)
9
+Description: BlueMind TICK stack
10
+ Installs TICK monitoring stack for BlueMind
0 11
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+#!/usr/bin/make -f
1
+
2
+include /usr/share/cdbs/1/rules/debhelper.mk
3
+
4
+JAVA_HOME := /usr/lib/jvm/bm-jdk
5
+
6
+build:
7
+	echo "built."
8
+
9
+install/bm-tick-full::
10
+	cp -rf ${CURDIR}/ROOT/* ${CURDIR}/debian/bm-tick-full
0 11
new file mode 100644
... ...
@@ -0,0 +1,14 @@
0
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
+	<modelVersion>4.0.0</modelVersion>
3
+
4
+	<artifactId>bm-tick-full</artifactId>
5
+	<packaging>bm-package</packaging>
6
+	<parent>
7
+		<groupId>net.bluemind</groupId>
8
+		<artifactId>net.bluemind.packaging</artifactId>
9
+		<version>3.1.0-SNAPSHOT</version>
10
+	</parent>
11
+
12
+</project>
13
+
0 14
new file mode 100644
... ...
@@ -0,0 +1,20 @@
0
+Name:               bm-tick-full
1
+Version:            %{_bmrelease}
2
+Release:            0
3
+License:            GNU Affero General Public License v3
4
+Group:              Applications/messaging
5
+URL:                http://www.bluemind.net/
6
+ExcludeArch:        s390 s390x
7
+Summary:            BlueMind TICK stack
8
+Requires:           bm-node = %{version}-%{release}, bm-telegraf = 1.6.2.bm1-1, bm-chronograf = 1.4.4.2.bm1~751dc7b88, bm-kapacitor = 1.4.1.bm1~a3d86bbb, bm-influxdb = 1.5.2.bm1~7cb9f2921
9
+
10
+%description
11
+Installs TICK stack for BlueMind
12
+
13
+%global _curdir %_topdir/..
14
+%global _initrddir /etc/rc.d/init.d
15
+
16
+%prep
17
+rm -rf %{buildroot}/*
18
+
19
+%files
... ...
@@ -44,8 +44,8 @@
44 44
 	  <module>bm-ldap-role</module>
45 45
 	  <module>bm-mailbox-role</module>
46 46
 	  <module>bm-edge-role</module>
47
+	  <module>bm-tick-full</module>
47 48
 	  <module>bm-postfix</module>
48
-	  <!--module>bm-grafana</module-->
49 49
 	  <module>bm-admin-console</module>
50 50
 	  <module>bm-im</module>
51 51
 	  <module>bm-plugin-core-ldap-import</module>