step2.hbs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. <label class="radio">
  43. {{view view.providingSSHKeyRadioButton}}
  44. {{t installer.step2.useSsh.provide}}
  45. <a href="javascript:void(null)"
  46. rel="popover"
  47. {{translateAttr title="installer.step2.useSsh.tooltip.title" data-content="installer.step2.useSsh.tooltip.content"}}>
  48. {{t installer.step2.useSsh.tooltip.title}}</a>
  49. {{t installer.step2.useSsh.provide_id_rsa}}
  50. </label>
  51. <div {{bindAttr class="sshKeyError:error :control-group :ssh-key-input"}}>
  52. {{#if view.isFileApi}}
  53. {{view App.SshKeyFileUploader disabledBinding="view.sshKeyState"}}
  54. {{/if}}
  55. <div class="controls">
  56. {{view Ember.TextArea class="span6" rows="3" id="sshKey"
  57. placeholder="ssh private key" disabledBinding="view.sshKeyState" valueBinding="content.installOptions.sshKey"}}
  58. {{#if sshKeyError}}
  59. <span class="help-inline">{{sshKeyError}}</span>
  60. {{/if}}
  61. </div>
  62. </div>
  63. <label class="radio">
  64. {{view view.manualRegistrationRadioButton}}
  65. {{t installer.step2.manualInstall.perform}}
  66. <a href="javascript:void(null)"
  67. rel="popover"
  68. {{translateAttr title="installer.step2.manualInstall.tooltip.title" data-content="installer.step2.manualInstall.tooltip.content"}}>
  69. {{t installer.step2.manualInstall.tooltip.title}}</a>
  70. {{t installer.step2.manualInstall.perform_on_hosts}}
  71. </label>
  72. </div>
  73. </div>
  74. <div class="advancedOptions">
  75. <h5>{{t installer.step2.advancedOptions.header}}</h5>
  76. <label {{bindAttr class=":checkbox"}}>
  77. {{view Ember.Checkbox checkedBinding="content.installOptions.localRepo"}}
  78. {{t installer.step2.localRepo.label_use}}
  79. <a href="javascript:void(null)"
  80. rel="popover"
  81. {{translateAttr title="installer.step2.localRepo.tooltip.title" data-content="installer.step2.localRepo.tooltip.content"}}>
  82. {{t installer.step2.localRepo.tooltip.title}}</a>
  83. {{t installer.step2.localRepo.label_instead}}
  84. </label>
  85. {{#if isInstaller}}
  86. <label {{bindAttr class=":checkbox"}}>
  87. <div class="java-home">
  88. {{view Ember.Checkbox checkedBinding="content.installOptions.isJavaHome"}}
  89. {{t installer.step2.javaHome.label}}
  90. <a href="javascript:void(null)"
  91. rel="popover"
  92. {{translateAttr title="installer.step2.javaHome.tooltip.title" data-content="installer.step2.javaHome.tooltip.content"}}>
  93. {{t installer.step2.javaHome.tooltip.title}}</a>
  94. </div>
  95. {{view App.WizardTextField valueBinding="content.installOptions.javaHome" placeholder="/usr/jdk/jdk1.6.0_31"}}
  96. </label>
  97. {{/if}}
  98. </div>
  99. <div class="btn-area">
  100. {{#unless view.parentView.controller.hideBackButton}}
  101. <a class="btn pull-left" {{action back}}>&larr; {{t common.back}}</a>
  102. {{/unless}}
  103. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action evaluateStep target="controller"}}>
  104. {{t installer.step2.registerAndConfirm}} &rarr;</a>
  105. </div>
  106. </div>