step2.hbs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 class="span6" valueBinding="content.installOptions.hostNames" rows="5" placeholder="host names"}}
  33. {{#if hostsError}}
  34. <p class="help-inline">{{hostsError}}</p>
  35. {{/if}}
  36. </div>
  37. </div>
  38. </div>
  39. <div id="hostConnectivity">
  40. <div class="ambari-agents">
  41. <h5>{{t installer.step2.sshKey}}</h5>
  42. {{#if isSSHRegistrationEnabled}}
  43. <label class="radio">
  44. {{view view.providingSSHKeyRadioButton}}
  45. {{t installer.step2.useSsh.provide}}
  46. <a href="javascript:void(null)"
  47. rel="popover"
  48. {{translateAttr title="installer.step2.useSsh.tooltip.title" data-content="installer.step2.useSsh.tooltip.content"}}>
  49. {{t installer.step2.useSsh.tooltip.title}}</a>
  50. {{t installer.step2.useSsh.provide_id_rsa}}
  51. </label>
  52. <div class="ssh-key-input">
  53. {{#if view.isFileApi}}
  54. {{view App.SshKeyFileUploader disabledBinding="view.sshKeyState"}}
  55. {{/if}}
  56. <div {{bindAttr class="sshKeyError:error :controls :control-group"}}>
  57. {{view Ember.TextArea class="span6" rows="3" id="sshKey"
  58. placeholder="ssh private key" disabledBinding="view.sshKeyState" valueBinding="content.installOptions.sshKey"}}
  59. {{#if sshKeyError}}
  60. <span class="help-inline">{{sshKeyError}}</span>
  61. {{/if}}
  62. </div>
  63. <div class="row-fluid">
  64. <label rel="tooltip" {{translateAttr title="installer.step2.sshUser.toolTip"}} class="ssh-user pull-left span4">
  65. {{t installer.step2.sshUser}}
  66. </label>
  67. <div {{bindAttr class="sshUserError:error :control-group"}}>
  68. {{view view.textFieldView valueBinding="content.installOptions.sshUser" isEnabledBinding="content.installOptions.useSsh"}}
  69. {{#if sshUserError}}
  70. <span class="help-inline">{{sshUserError}}</span>
  71. {{/if}}
  72. </div>
  73. </div>
  74. {{#if App.supports.customizeAgentUserAccount}}
  75. <div class="row-fluid">
  76. <label rel="tooltip" {{translateAttr title="installer.step2.agentUser.toolTip"}} class="ssh-user pull-left span4">
  77. {{t installer.step2.agentUser}}
  78. </label>
  79. <div {{bindAttr class="agentUserError:error :control-group"}}>
  80. {{view view.textFieldView valueBinding="content.installOptions.agentUser" isEnabledBinding="content.installOptions.useSsh"}}
  81. {{#if agentUserError}}
  82. <span class="help-inline">{{agentUserError}}</span>
  83. {{/if}}
  84. </div>
  85. </div>
  86. {{/if}}
  87. </div>
  88. {{/if}}
  89. <label class="radio">
  90. {{view view.manualRegistrationRadioButton}}
  91. {{t installer.step2.manualInstall.perform}}
  92. <a href="javascript:void(null)"
  93. rel="popover"
  94. {{translateAttr title="installer.step2.manualInstall.tooltip.title" data-content="installer.step2.manualInstall.tooltip.content"}}>
  95. {{t installer.step2.manualInstall.tooltip.title}}</a>
  96. {{t installer.step2.manualInstall.perform_on_hosts}}
  97. </label>
  98. </div>
  99. </div>
  100. <div class="btn-area">
  101. {{#unless view.parentView.controller.hideBackButton}}
  102. <a class="btn pull-left" {{action back}}>&larr; {{t common.back}}</a>
  103. {{/unless}}
  104. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action evaluateStep target="controller"}}>
  105. {{t installer.step2.registerAndConfirm}} &rarr;</a>
  106. </div>
  107. </div>