step2.hbs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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"}}>
  24. <p>{{t installer.step2.targetHosts.info}}. Or use
  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. {{#if view.parentView.controller.hideBackButton}}
  32. {{#if content.hostNames }}
  33. <p class="alert alert-info">{{t hosts.add.step2.warning}}</p>
  34. {{/if}}
  35. {{/if}}
  36. <div class="controls">
  37. {{view Ember.TextArea class="span6" valueBinding="content.hostNames" rows="5" placeholder="host names"}}
  38. {{#if hostsError}}
  39. <p class="help-inline">{{hostsError}}</p>
  40. {{/if}}
  41. </div>
  42. </div>
  43. </div>
  44. <div id="hostConnectivity">
  45. <div class="ambari-agents">
  46. <h5>{{t installer.step2.sshKey}}</h5>
  47. <p>{{t installer.step2.sshKey.info}}</p>
  48. <div {{bindAttr class="sshKeyError:error :control-group"}}>
  49. {{#if view.isFileApi}}
  50. {{view App.SshKeyFileUploader}}
  51. <pre {{bindAttr class="view.sshKeyPreviewClass"}}>{{content.sshKey}}</pre>
  52. {{/if}}
  53. <div class="controls">
  54. {{view Ember.TextArea class="span6" rows="4" classBinding="view.sshKeyClass" id="sshKey" placeholder="ssh private key" disabledBinding="view.sshKeyState" valueBinding="content.sshKey"}}
  55. {{#if sshKeyError}}
  56. <span class="help-inline">{{sshKeyError}}</span>
  57. {{/if}}
  58. </div>
  59. </div>
  60. <div class="manual-install">
  61. <label class="checkbox">
  62. {{t installer.step2.manualInstall.label}}
  63. <a href="javascript:void(null)"
  64. rel="popover"
  65. {{translateAttr title="installer.step2.manualInstall.tooltip.title" data-content="installer.step2.manualInstall.tooltip.content"}}>
  66. Learn more</a>
  67. {{view Ember.Checkbox checkedBinding="content.manualInstall"}}
  68. </label>
  69. </div>
  70. {{#if "manualInstall"}}
  71. <div class="alert">
  72. {{t installer.step2.manualInstall.info}}
  73. </div>
  74. {{/if}}
  75. <!--
  76. {{view Ember.TextField type="text" placeholder="passphrase" valueBinding="content.passphrase"}}
  77. <div {{bindAttr class="passphraseMatchErr:error :control-group :ambari-agents"}}>
  78. <div class="controls">
  79. {{view Ember.TextField type="text" placeholder="confirm passphrase" valueBinding="content.confirmPassphrase"}}
  80. {{#if passphraseMatchErr}}
  81. <p class="help-inline">{{t installer.step2.passphrase.error.match}}</p>
  82. {{/if}}
  83. </div>
  84. </div>
  85. -->
  86. </div>
  87. </div>
  88. <div id="localRepo">
  89. <h5>{{t installer.step2.localRepo.header}}</h5>
  90. <label class="checkbox">
  91. {{t installer.step2.localRepo.label}}
  92. <a href="javascript:void(null)"
  93. rel="popover"
  94. {{translateAttr title="installer.step2.localRepo.tooltip.title" data-content="installer.step2.localRepo.tooltip.content"}}>
  95. Learn more</a>
  96. {{view Ember.Checkbox checkedBinding="content.localRepo"}}
  97. </label>
  98. {{#if "localRepo"}}
  99. <div {{bindAttr class="localRepoError:error :control-group"}}>
  100. <div class="alert alert-info">
  101. {{t installer.step2.localRepo.info}}
  102. </div>
  103. <div class="controls">
  104. {{view Ember.TextField type="text" class="span6" placeholder="Local repo file path (e.g., /etc/yum/repos.d/hdp)" valueBinding="content.localRepoPath"}}
  105. {{#if localRepoError}}
  106. <p class="help-inline">{{localRepoError}}</p>
  107. {{/if}}
  108. </div>
  109. </div>
  110. {{/if}}
  111. </div>
  112. <div class="btn-area">
  113. {{#unless view.parentView.controller.hideBackButton }}
  114. <a class="btn pull-left" {{action back}}>&larr; Back</a>
  115. {{/unless}}
  116. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action evaluateStep}}>
  117. Discover and Validate &rarr;</a>
  118. </div>
  119. </div>