Skip to content

Commit bcc2b62

Browse files
authored
Merge pull request #1729 from AdityaSrikanth/topic-performance
Removed sensu-client installation for CFT blueprint
2 parents ac261d0 + 20dcada commit bcc2b62

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

server/app/lib/utils/masterUtil.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2618,7 +2618,8 @@ var MasterUtil = function () {
26182618
};
26192619
this.getSensuCookbooks = function(){
26202620
//var cookbooks = ['recipe[sensu-client]','recipe[sensu_check_load]','recipe[sensu_check_disk]','recipe[sensu_check_cpu]','recipe[sensu_check_memory]','recipe[consul-client-demo]'];
2621-
var cookbooks = ['recipe[sensu-client]','recipe[consul-client-demo]','recipe[cft-rlc-demo]'];
2621+
// var cookbooks = ['recipe[sensu-client]','recipe[consul-client-demo]','recipe[cft-rlc-demo]'];
2622+
var cookbooks = ['recipe[consul-client-demo]','recipe[cft-rlc-demo]'];
26222623
return cookbooks;
26232624
};
26242625

server/app/model/blueprint/blueprint-types/cloud-formation-blueprint/cloud-formation-blueprint.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,9 @@ CloudFormationBlueprintSchema.methods.launch = function (launchParams, callback)
782782
if(launchParams.stackName)
783783
{
784784
launchParams.monitor.parameters.stackName = launchParams.stackName;
785-
jsonAttributes['sensu-client'] = {
786-
"service-name": launchParams.stackName
787-
}
785+
// jsonAttributes['sensu-client'] = {
786+
// "service-name": launchParams.stackName
787+
// }
788788
}
789789
if(launchParams.orgName)
790790
{
@@ -793,7 +793,7 @@ CloudFormationBlueprintSchema.methods.launch = function (launchParams, callback)
793793
orgNameString = orgNameString[0];
794794
launchParams.monitor.parameters.orgName = orgNameString;
795795
//Adding to sensu-client cookbook attribute.
796-
jsonAttributes['sensu-client']['check-tenant-id'] = orgNameString
796+
// jsonAttributes['sensu-client']['check-tenant-id'] = orgNameString
797797

798798
}
799799
//jsonAttributes['sensu-client'] = masterUtil.getSensuCookbookAttributes(launchParams.monitor, instance.id);

server/app/model/blueprint/blueprint-types/instance-blueprint/aws-blueprint/aws-blueprint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ AWSInstanceBlueprintSchema.methods.launch = function (launchParams, callback) {
690690
var sensuCookBook = sensuCookBooks[0];
691691
if (runlist.indexOf(sensuCookBook) === -1 && launchParams.monitor && launchParams.monitor.parameters.transportProtocol === 'rabbitmq') {
692692
runlist = sensuCookBooks.concat(runlist);
693-
jsonAttributes['sensu-client'] = masterUtil.getSensuCookbookAttributes(launchParams.monitor, instance.id);
693+
//jsonAttributes['sensu-client'] = masterUtil.getSensuCookbookAttributes(launchParams.monitor, instance.id);
694694
}
695695

696696
//logger.debug("runlist: ", JSON.stringify(runlist));

server/app/routes/v1.0/routes_chef.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ module.exports.setRoutes = function (app, verificationFunc) {
357357
var sensuCookBooks = MasterUtils.getSensuCookbooks();
358358
var runlist = sensuCookBooks;
359359
var jsonAttributes = {};
360-
jsonAttributes['sensu-client'] = MasterUtils.getSensuCookbookAttributes(instance.monitor, instance.id);
360+
//jsonAttributes['sensu-client'] = MasterUtils.getSensuCookbookAttributes(instance.monitor, instance.id);
361361

362362
runOptions = {
363363
username: decryptedCredentials.username,

server/app/routes/v1.0/routes_organizations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ module.exports.setRoutes = function (app, sessionVerification) {
14951495
var runlist = sensuCookBooks;
14961496
var jsonAttributes = {};
14971497

1498-
jsonAttributes['sensu-client'] = masterUtil.getSensuCookbookAttributes(instance.monitor, instance.id);
1498+
//jsonAttributes['sensu-client'] = masterUtil.getSensuCookbookAttributes(instance.monitor, instance.id);
14991499

15001500
bootstarpOption['runlist'] = runlist;
15011501
bootstarpOption['jsonAttributes'] = jsonAttributes;

server/app/routes/v1.0/routes_providercommon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ module.exports.setRoutes = function (app, sessionVerificationFunc) {
574574
var sensuCookBooks = MasterUtils.getSensuCookbooks();
575575
var runlist = sensuCookBooks;
576576
var jsonAttributes = {};
577-
jsonAttributes['sensu-client'] = MasterUtils.getSensuCookbookAttributes(instance.monitor, instance.id);
577+
//jsonAttributes['sensu-client'] = MasterUtils.getSensuCookbookAttributes(instance.monitor, instance.id);
578578
;
579579

580580
bootstarpOption['runlist'] = runlist;

0 commit comments

Comments
 (0)