Skip to content

Commit fe72ece

Browse files
author
Bener
committedApr 18, 2018
Make Cherwell Integration Bidirectional

8 files changed

+602
-77
lines changed
 

‎build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ apply from: 'librenms/librenms.gradle'
489489
apply from: 'prtg/prtg.gradle'
490490
apply from: 'bmcFootPrintsV12/bmcFootPrintsV12.gradle'
491491
apply from: 'bmcFootPrintsV11/bmcFootPrintsV11.gradle'
492+
apply from: 'cherwell/cherwell.gradle'
492493

493494

494495
task packageIntegrations(dependsOn: [
@@ -519,7 +520,8 @@ task packageIntegrations(dependsOn: [
519520
'packageLibreNMS',
520521
'packagePrtg',
521522
'packageBMCFootPrintsV12',
522-
'packageBMCFootPrintsV11'
523+
'packageBMCFootPrintsV11',
524+
'packageCherwell'
523525
])
524526

525527
task packageAll(dependsOn: ['packageIntegrations', 'packageLamp'])

‎cherwell/cherwell.gradle

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
configurations {
2+
cherwell
3+
}
4+
task prepareCherwell(dependsOn: 'generateIntegration') << {
5+
def destination = "${project.buildDir}/cherwell"
6+
copy {
7+
from "${project.buildDir}/opsgenie-integration"
8+
into "${destination}/OpsGenie/CherwellIntegration/opsgenie-integration"
9+
}
10+
11+
copy {
12+
from "${project.projectDir}/cherwell/marid"
13+
into "${destination}/OpsGenie/CherwellIntegration/opsgenie-integration/marid"
14+
}
15+
copy {
16+
from "${project.projectDir}/cherwell/cherwell"
17+
into "${destination}/OpsGenie/CherwellIntegration/"
18+
}
19+
20+
mergeConfFile("${project.buildDir}/opsgenie-integration/conf/opsgenie-integration.conf",
21+
"${project.projectDir}/cherwell/common/conf/opsgenie-integration.conf.part",
22+
"${destination}/OpsGenie/CherwellIntegration/opsgenie-integration/conf/opsgenie-integration.conf")
23+
}
24+
25+
task packageCherwellZip(dependsOn: 'prepareCherwell', type: Zip) {
26+
from "${project.buildDir}/cherwell"
27+
baseName = 'opsgenie-cherwell'
28+
version = project.ext.versions.getProperty('cherwell') + project.ext.versionSuffix
29+
}
30+
31+
task packageCherwellOS(dependsOn: ['generateIntegrationForNative', 'prepareCherwell']) << {
32+
copyNativeFiles('cherwell')
33+
}
34+
35+
task packageCherwell(dependsOn: ['packageCherwellZip', 'packageCherwellOS'])

‎cherwell/opsgenie.bp ‎cherwell/cherwell/opsgenie.bp

+75-75
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
####################################### CHERWELL CONFIGURATION #######################################
2+
cherwell.apiUrl=
3+
cherwell.username=
4+
cherwell.password=
5+
cherwell.clientId=
6+
7+
######################################## CHERWELL INTEGRATION - ALERT ACTION CONFIGURATION ######################
8+
mappedActions.addJournal.script=cherwellActionExecutor.groovy
9+
mappedActions.createIncident.script=cherwellActionExecutor.groovy
10+
mappedActions.resolveIncident.script=cherwellActionExecutor.groovy
11+
mappedActions.inProgressIncident.script=cherwellActionExecutor.groovy
12+
##############################################################################################################

‎cherwell/marid/scripts/cherwellActionExecutor.groovy

+472
Large diffs are not rendered by default.

‎downloads.template.properties

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ bmcfootprintsv12zip.url=https://s3-us-west-2.amazonaws.com/opsgeniedownloads/rep
6969
bmcfootprintsv11rpm.url=https://s3-us-west-2.amazonaws.com/opsgeniedownloads/repo/opsgenie-bmcFootPrints-v11-[[bmcFootPrintsV11]]-1.all.noarch.rpm
7070
bmcfootprintsv11deb.url=https://s3-us-west-2.amazonaws.com/opsgeniedownloads/repo/opsgenie-bmcFootPrints-v11_[[bmcFootPrintsV11]]_all.deb
7171
bmcfootprintsv11zip.url=https://s3-us-west-2.amazonaws.com/opsgeniedownloads/repo/opsgenie-bmcFootPrints-v11-[[bmcFootPrintsV11]].zip
72+
cherwellzip.url=https://s3-us-west-2.amazonaws.com/opsgeniedownloads/repo/opsgenie-cherwell-[[cherwell]].zip
7273

7374
graylog.url=https://github.com/opsgenie/opsgenie-graylog-plugin/releases
7475
androidapp.url=https://s3-us-west-2.amazonaws.com/opsgeniedownloads/mobile/OpsGenieAndroid-2.1.16.apk

‎release.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def getMaridBasedPackageNames() {
5151
"librenms",
5252
"prtg",
5353
"bmcFootPrintsV12",
54-
"bmcFootPrintsV11"
54+
"bmcFootPrintsV11",
55+
"cherwell"
5556
]
5657
}
5758

@@ -89,6 +90,7 @@ def generateDownloadsProperties() {
8990
.replace('[[opsview]]', project.ext.versions.getProperty('opsview'))
9091
.replace('[[bmcFootPrintsV12]]', project.ext.versions.getProperty('bmcFootPrintsV12'))
9192
.replace('[[bmcFootPrintsV11]]', project.ext.versions.getProperty('bmcFootPrintsV11'))
93+
.replace('[[cherwell]]', project.ext.versions.getProperty('cherwell'))
9294
}
9395
into "${buildDir}/distributions"
9496
rename "downloads.template.properties", "downloads.properties"

‎version.properties

+1
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ icinga2=2.15.0
2929
netcool=2.17.0
3030
bmcRemedy=1.2.0
3131
zendesk=3.5.1
32+
cherwell=1.0.0

0 commit comments

Comments
 (0)
Please sign in to comment.