step2.hbs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div id="installOptions">
  19. <h2>{{t installer.step2.header}}</h2>
  20. <p class="alert alert-info">{{t installer.step2.body}}</p>
  21. <div id="targetHosts">
  22. <h5>{{t installer.step2.targetHosts}}</h5>
  23. <div {{bindAttr class="hostsError:error :control-group :target-hosts-input"}}>
  24. <p>{{t installer.step2.targetHosts.info}}. {{t installer.step2.orUse}}
  25. <a href="javascript:void(null)"
  26. rel="popover"
  27. {{translateAttr title="installer.step2.hostPattern.tooltip.title" data-content="installer.step2.hostPattern.tooltip.content"}}>
  28. {{t installer.step2.hostPattern.tooltip.title}}
  29. </a>
  30. </p>
  31. <div class="controls">
  32. {{view Ember.TextArea id="host-names" class="span6" valueBinding="content.installOptions.hostNames" rows="5"
  33. placeholder="host names"}}
  34. {{#if hostsError}}
  35. <p class="help-inline">{{hostsError}}</p>
  36. {{/if}}
  37. </div>
  38. </div>
  39. </div>
  40. <div id="hostConnectivity">
  41. <div class="ambari-agents">
  42. <h5>{{t installer.step2.sshKey}}</h5>
  43. <label class="radio">
  44. {{view view.providingSSHKeyRadioButton}}
  45. {{#if useSSH}}
  46. {{t installer.step2.useSsh.provide}}
  47. <a href="javascript:void(null)"
  48. rel="popover"
  49. {{translateAttr title="installer.step2.useSsh.tooltip.title" data-content="installer.step2.useSsh.tooltip.content"}}>
  50. {{t installer.step2.useSsh.tooltip.title}}</a>
  51. {{t installer.step2.useSsh.provide_id_rsa}}
  52. {{else}}
  53. {{t installer.step2.install.perform}}
  54. <a href="javascript:void(null)"
  55. rel="popover"
  56. {{translateAttr title="installer.step2.automaticInstall.tooltip.title" data-content="installer.step2.automaticInstall.tooltip.content"}}>
  57. {{t installer.step2.automaticInstall.tooltip.title}}</a>
  58. {{t installer.step2.install.perform_on_hosts}}
  59. {{/if}}
  60. </label>
  61. {{#if useSSH}}
  62. <div class="ssh-key-input">
  63. {{#if view.isFileApi}}
  64. {{view App.SshKeyFileUploader disabledBinding="view.sshKeyState"}}
  65. {{/if}}
  66. <div {{bindAttr class="sshKeyError:error :controls :control-group"}}>
  67. {{view Ember.TextArea class="span6" rows="3" id="sshKey"
  68. placeholder="ssh private key" disabledBinding="view.sshKeyState" valueBinding="content.installOptions.sshKey"}}
  69. {{#if sshKeyError}}
  70. <span class="help-inline">{{sshKeyError}}</span>
  71. {{/if}}
  72. </div>
  73. <div class="row-fluid">
  74. <label rel="tooltip" {{translateAttr title="installer.step2.sshUser.toolTip"}} class="ssh-user pull-left span4">
  75. {{t installer.step2.sshUser}}
  76. </label>
  77. <div {{bindAttr class="sshUserError:error :control-group"}}>
  78. {{view view.textFieldView valueBinding="content.installOptions.sshUser" isEnabledBinding="content.installOptions.useSsh"}}
  79. {{#if sshUserError}}
  80. <span class="help-inline">{{sshUserError}}</span>
  81. {{/if}}
  82. </div>
  83. </div>
  84. {{#if App.supports.customizeAgentUserAccount}}
  85. <div class="row-fluid">
  86. <label rel="tooltip" {{translateAttr title="installer.step2.agentUser.toolTip"}} class="ssh-user pull-left span4">
  87. {{t installer.step2.agentUser}}
  88. </label>
  89. <div {{bindAttr class="agentUserError:error :control-group"}}>
  90. {{view view.textFieldView valueBinding="content.installOptions.agentUser" isEnabledBinding="content.installOptions.useSsh"}}
  91. {{#if agentUserError}}
  92. <span class="help-inline">{{agentUserError}}</span>
  93. {{/if}}
  94. </div>
  95. </div>
  96. {{/if}}
  97. </div>
  98. {{/if}}
  99. <label class="radio">
  100. {{view view.manualRegistrationRadioButton}}
  101. {{t installer.step2.install.perform}}
  102. {{#if useSSH}}
  103. <a href="javascript:void(null)"
  104. rel="popover"
  105. {{translateAttr title="installer.step2.manualInstall.tooltip.title" data-content="installer.step2.manualInstall.tooltip.content"}}>
  106. {{t installer.step2.manualInstall.tooltip.title}}</a>
  107. {{else}}
  108. <a href="javascript:void(null)"
  109. rel="popover"
  110. {{translateAttr title="installer.step2.manualInstall.tooltip.title" data-content="installer.step2.manualInstall.tooltip.content_no_ssh"}}>
  111. {{t installer.step2.manualInstall.tooltip.title}}</a>
  112. {{/if}}
  113. {{t installer.step2.install.perform_on_hosts}}
  114. {{#if useSSH}}
  115. {{t installer.step2.install.without_ssh}}
  116. {{/if}}
  117. </label>
  118. </div>
  119. </div>
  120. <div class="btn-area">
  121. {{#unless view.parentView.controller.hideBackButton}}
  122. <a class="btn pull-left installer-back-btn" {{action back}}>&larr; {{t common.back}}</a>
  123. {{/unless}}
  124. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action evaluateStep target="controller"}}>
  125. {{t installer.step2.registerAndConfirm}} &rarr;</a>
  126. </div>
  127. </div>