Skip to content

Commit

Permalink
Merge pull request #105 from benbp/redhat-ssh-validation-1.2
Browse files Browse the repository at this point in the history
Add SSH validation to RHEL install graph
  • Loading branch information
Andrew Hou authored and Andrew Hou committed May 24, 2016
2 parents 3c14dfc + df2bf90 commit ce462c1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/graphs/install-rhel-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@ module.exports = {
injectableName: 'Graph.InstallRHEL',
options: {
defaults: {
// Make sure this matches for both the install-os task and the
// rackhd-callback-uri-wait task, so put it in "defaults"
completionUri: 'renasar-ansible.pub',
version: null,
repo: '{{api.server}}/rhel/{{options.version}}/os/x86_64'
},
'install-os': {
schedulerOverrides: {
timeout: 3600000 //1 hour
}
},
'rackhd-callback-uri-wait': {
schedulerOverrides: {
timeout: 1200000 // 20 minutes
}
},
'validate-ssh': {
retries: 10
}
},
tasks: [
Expand All @@ -35,6 +46,20 @@ module.exports = {
waitOn: {
'reboot': 'succeeded'
}
},
{
label: 'rackhd-callback-uri-wait',
taskName: 'Task.Wait.Completion.Uri',
waitOn: {
'install-os': 'succeeded'
}
},
{
label: 'validate-ssh',
taskName: 'Task.Ssh.Validation',
waitOn: {
'rackhd-callback-uri-wait': 'succeeded'
}
}
]
};

0 comments on commit ce462c1

Please sign in to comment.