configure.jelly 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!--
  2. The MIT License
  3. Copyright (c) 2004-2009, Sun Microsystems, Inc.
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE.
  19. -->
  20. <!--
  21. This is bit unusual, but so that we can override "name" with "Instance ID", override the config page entirely,
  22. instead of just supplying EC2Slave/configure-entries.jelly
  23. -->
  24. <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
  25. <l:layout norefresh="true" permission="${app.ADMINISTER}" title="${it.name} Configuration">
  26. <st:include page="sidepanel.jelly"/>
  27. <l:main-panel>
  28. <f:form method="post" action="configSubmit" name="config">
  29. <j:set var="instance" value="${it.node}" />
  30. <j:set var="descriptor" value="${instance.descriptor}" />
  31. <f:invisibleEntry>
  32. <input type="hidden" name="name" value="${it.name}" />
  33. </f:invisibleEntry>
  34. <f:entry title="${%Instance ID}" field="instanceId">
  35. <f:readOnlyTextbox />
  36. </f:entry>
  37. <f:entry title="${%Public DNS}" field="publicDNS">
  38. <f:readOnlyTextbox />
  39. </f:entry>
  40. <f:entry title="${%Private DNS}" field="privateDNS">
  41. <f:readOnlyTextbox />
  42. </f:entry>
  43. <f:entry title="${%Description}" help="/help/system-config/master-slave/description.html">
  44. <f:textbox field="nodeDescription" />
  45. </f:entry>
  46. <f:entry title="${%# of executors}" field="numExecutors">
  47. <f:textbox />
  48. </f:entry>
  49. <f:entry title="${%Labels}" field="labelString">
  50. <f:textbox />
  51. </f:entry>
  52. <f:entry title="${%Init Script}" field="initScript">
  53. <f:textarea />
  54. </f:entry>
  55. <f:entry title="${%Remote user}" field="remoteAdmin">
  56. <f:textbox />
  57. </f:entry>
  58. <f:entry title="${%Root command prefix}" field="rootCommandPrefix">
  59. <f:textbox />
  60. </f:entry>
  61. <f:entry title="${%Stop/Disconnect on Idle Timeout}" field="stopOnTerminate">
  62. <f:checkbox />
  63. </f:entry>
  64. <f:entry title="${%Idle termination time}" field="idleTerminationMinutes">
  65. <f:textbox />
  66. </f:entry>
  67. <f:entry title="${%Tags}" description="${%EC2 Tag/Value Pairs}">
  68. <f:repeatable field="tags">
  69. <st:include page="../EC2Tag/config.jelly" />
  70. </f:repeatable>
  71. </f:entry>
  72. <f:entry title="${%Use private DNS}" field="usePrivateDnsName">
  73. <f:checkbox />
  74. </f:entry>
  75. <f:descriptorList title="${%Node Properties}" descriptors="${h.getNodePropertyDescriptors(descriptor.clazz)}" field="nodeProperties" />
  76. <f:block>
  77. <f:submit value="${%Save}"/>
  78. </f:block>
  79. </f:form>
  80. </l:main-panel>
  81. </l:layout>
  82. </j:jelly>