Skip to content

Commit

Permalink
Merge 78d6767 into 4c84665
Browse files Browse the repository at this point in the history
  • Loading branch information
tannoa2 committed Mar 11, 2016
2 parents 4c84665 + 78d6767 commit 2ce49e1
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphs/discovery-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ module.exports = {
}
}
]
};
};
68 changes: 68 additions & 0 deletions lib/graphs/set-bmc-graph.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// Copyright 2016, EMC, Inc.

'use strict';

module.exports = {
friendlyName: 'Set BMC Credentials',
injectableName: 'Graph.Set.Bmc',
options: {
'generate-pass': {
user: null,
password: null
}
},
tasks: [
{
label: 'generate-pass',
taskDefinition: {
friendlyName: 'Generate BMC Password',
injectableName: 'Task.Generate.BMC.Password',
implementsTask: 'Task.Base.Generate.Password',
properties: { },
options: {
user: null

}
}
},
{
label: 'set-bmc',
taskName: 'Task.Set.BMC.Credentials',
waitOn: {
'generate-pass': 'succeeded'
},
ignoreFailure: true
},

{
label: 'catalog-bmc',
taskName: 'Task.Catalog.bmc',
waitOn: {
'set-bmc': 'succeeded'
},
ignoreFailure: true
},
{
label: 'create-ipmi-obm-settings',
taskName: 'Task.Obm.Ipmi.CreateSettings',
waitOn: {
'catalog-bmc': 'succeeded'
}
},
{
label: 'shell-reboot',
taskName: 'Task.ProcShellReboot',
waitOn: {
'create-ipmi-obm-settings': 'finished'
}
},

{
label: 'finish-bootstrap-trigger',
taskName: 'Task.Trigger.Send.Finish',
waitOn: {
'create-ipmi-obm-settings': 'finished'
}
}
]
};
17 changes: 17 additions & 0 deletions spec/lib/graphs/set-bmc-graph-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2015, EMC, Inc.
/* jshint node:true */

'use strict';

describe(require('path').basename(__filename), function () {
var base = require('./base-graph-spec');

base.before(function (context) {
context.taskdefinition = helper.require('/lib/graphs/set-bmc-graph.js');
});

describe('graph', function () {
base.examples();
});

});

0 comments on commit 2ce49e1

Please sign in to comment.