Skip to content

Commit

Permalink
Merge pull request #1 from johren/artichoke
Browse files Browse the repository at this point in the history
SLES install baseline
  • Loading branch information
heckj committed Feb 10, 2016
2 parents 97d2d42 + d1fe3cf commit 5c9a15c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
43 changes: 43 additions & 0 deletions lib/graphs/install-suse-graph.js
@@ -0,0 +1,43 @@
// Copyright 2015, EMC, Inc.

'use strict';

// FIXME: Not debugged

module.exports = {
friendlyName: 'Install SuSE',
injectableName: 'Graph.InstallSuSE',
options: {
defaults: {
version: null,
// FIXME: Is this correct?
repo: '{{api.server}}/suse/distribution/{{options.version}}/repo/oss/suse/x86_64'
},
'install-os': {
schedulerOverrides: {
timeout: 3600000 //1 hour
}
}
},
tasks: [
{
label: 'set-boot-pxe',
taskName: 'Task.Obm.Node.PxeBoot',
ignoreFailure: true
},
{
label: 'reboot',
taskName: 'Task.Obm.Node.Reboot',
waitOn: {
'set-boot-pxe': 'finished'
}
},
{
label: 'install-os',
taskName: 'Task.Os.Install.SuSE',
waitOn: {
'reboot': 'succeeded'
}
}
]
};
19 changes: 19 additions & 0 deletions spec/lib/graphs/install-suse-graph-spec.js
@@ -0,0 +1,19 @@
// Copyright 2015, EMC, Inc.
/* jshint node:true */

// FIXME: Not debugged

'use strict';

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

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

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

});

0 comments on commit 5c9a15c

Please sign in to comment.