-
Notifications
You must be signed in to change notification settings - Fork 77
refactor southbound templates api #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ module.exports = { | |
| osType: 'linux', //readonly options, should avoid change it | ||
| profile: 'install-centos.ipxe', | ||
| installScript: 'centos-ks', | ||
| installScriptUri: '{{api.templates}}/{{options.installScript}}', | ||
| installScriptUri: '{{ api.templates }}/{{ options.installScript }}?nodeId={{ task.nodeId }}', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| hostname: 'localhost', | ||
| comport: 'ttyS0', | ||
| rackhdCallbackScript: 'centos.rackhdcallback', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ module.exports = { | |
| osType: 'linux', | ||
| profile: 'install-coreos.ipxe', | ||
| installScript: 'install-coreos.sh', | ||
| installScriptUri: '{{api.templates}}/{{options.installScript}}', | ||
| installScriptUri: '{{ api.templates }}/{{ options.installScript }}?nodeId={{ task.nodeId }}', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| comport: 'ttyS0', | ||
| hostname: 'coreos-node', | ||
| installDisk: '/dev/sda', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,10 +11,10 @@ module.exports = { | |
| osType: 'esx', //readonly option, should avoid change it | ||
| profile: 'install-esx.ipxe', | ||
| installScript: 'esx-ks', | ||
| installScriptUri: '{{api.templates}}/{{options.installScript}}', | ||
| installScriptUri: '{{ api.templates }}/{{ options.installScript }}?nodeId={{ task.nodeId }}', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| rackhdCallbackScript: 'esx.rackhdcallback', | ||
| esxBootConfigTemplate: 'esx-boot-cfg', | ||
| esxBootConfigTemplateUri: '{{api.templates}}/{{options.esxBootConfigTemplate}}', | ||
| esxBootConfigTemplateUri: '{{ api.templates }}/{{ options.esxBootConfigTemplate }}?nodeId={{ task.nodeId }}', | ||
| comport: 'com1', | ||
| comportaddress: '0x3f8', //com1=0x3f8, com2=0x2f8, com3=0x3e8, com4=0x2e8 | ||
| repo: '{{file.server}}/esxi/{{options.version}}', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ module.exports = { | |
| osType: 'linux', //readonly options, should avoid change it | ||
| profile: 'install-photon-os.ipxe', | ||
| installScript: 'photon-os-ks', | ||
| installScriptUri: '{{api.templates}}/{{options.installScript}}', | ||
| installScriptUri: '{{ api.templates }}/{{ options.installScript }}?nodeId={{ task.nodeId }}', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| hostname: 'localhost', | ||
| comport: 'ttyS0', | ||
| rackhdCallbackScript: 'photon-os.rackhdcallback', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ module.exports = { | |
| osType: 'linux', //readonly options, should avoid change it | ||
| profile: 'install-suse.ipxe', | ||
| installScript: 'suse-autoinst.xml', | ||
| installScriptUri: '{{api.templates}}/{{options.installScript}}', | ||
| installScriptUri: '{{ api.templates }}/{{ options.installScript }}?nodeId={{ task.nodeId }}', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| hostname: 'localhost', | ||
| comport: 'ttyS0', | ||
| repo: '{{file.server}}/distribution/{{options.version}}/repo/oss/', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ module.exports = { | |
| osType: 'linux', //readonly options, should avoid change it | ||
| profile: 'install-ubuntu.ipxe', | ||
| installScript: 'ubuntu-preseed', | ||
| installScriptUri: '{{api.templates}}/{{options.installScript}}', | ||
| installScriptUri: '{{ api.templates }}/{{ options.installScript }}?nodeId={{ task.nodeId }}', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| rackhdCallbackScript: 'ubuntu.rackhdcallback', | ||
| hostname: 'localhost', | ||
| comport: 'ttyS0', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ module.exports = { | |
| commands: [ | ||
| { | ||
| command: 'sudo ./remove_bmc_credentials.sh', | ||
| downloadUrl: '/api/current/templates/remove_bmc_credentials.sh' | ||
| downloadUrl: '{{ api.templates }}/remove_bmc_credentials.sh?nodeId={{ task.nodeId }}' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
| } | ||
| ] | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to keep the
patternand checkdownloadurlagainst a valid http URL pattern. There are talks/PRs around changing relative URI to fullpath URL and this check will help people catch errors if a legacy relative URI is used.Ref: https://github.com/RackHD/RackHD/issues/489#issuecomment-262570418