Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / datastores-tab / form-panels / create / wizard.hbs @ 3e0440e2

History | View | Annotate | Download (11.3 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16

    
17
<form data-abide novalidate id="{{formPanelId}}Wizard" class="custom creation">
18
  <div class="row">
19
    <div class="medium-6 columns">
20
      <label for="name" >{{tr "Name"}}</label>
21
      <input required type="text" name="name" id="name"/>
22
    </div>
23
  </div>
24
  <div class="row">
25
    <div class="medium-6 columns">
26
      <label for="presets">{{tr "Storage backend"}}</label>
27
      <select id="presets" name="presets">
28
        <option ds="fs" tm="shared" value="fs_shared">{{tr "Filesystem - shared mode"}}</option>
29
        <option ds="fs" tm="ssh"    value="fs_ssh">{{tr "Filesystem - ssh mode"}}</option>
30
        <option ds="fs" tm="qcow2"  value="fs_qcow2">{{tr "Filesystem - qcow2 mode"}}</option>
31
        <option ds="ceph" tm="ceph" value="ceph">{{tr "Ceph"}}</option>
32
        <option ds="vcenter" tm="vcenter" value="vcenter">{{tr "vCenter"}}</option>
33
        <option ds="fs" tm="lvm" value="lvm">{{tr "LVM"}}</option>
34
        <option ds="dev" tm="dev" value="raw">{{tr "Raw Device Mapping"}}</option>
35
        <option ds="iscsi" tm="iscsi" value="iscsi_libvirt">{{tr "iSCSI - Libvirt initiator "}}</option>
36
        <option value="custom">{{tr "Custom"}}</option>
37
      </select>
38
    </div>
39
    <div class="medium-6 columns">
40
      <label for="cluster">{{tr "Cluster"}}</label>
41
      <div id="cluster_id" name="cluster_id"></div>
42
    </div>
43
  </div>
44
  <div class="row drivers">
45
    <div class="large-12 columns">
46
      <fieldset>
47
        <legend>{{tr "Drivers"}}</legend>
48
        <div class="medium-6 columns">
49
          <label for="ds_mad">{{tr "Datastore"}}</label>
50
          <select id="ds_mad" name="ds_mad">
51
            <option value="fs">{{tr "Filesystem"}}</option>
52
            <option value="ceph">{{tr "Ceph"}}</option>
53
            <option value="dev">{{tr "Devices"}}</option>
54
            <option value="iscsi_libvirt">{{tr "iSCSI/Libvirt"}}</option>
55
            <option value="vcenter">{{tr "vCenter"}}</option>
56
            <option value="custom">{{tr "Custom"}}</option>
57
          </select>
58
          <div>
59
            <label>{{tr "Custom DS_MAD"}}</label>
60
            <input type="text" name="ds_tab_custom_ds_mad" />
61
          </div>
62
        </div>
63
        <div class="medium-6 columns">
64
          <label for="tm_mad">{{tr "Transfer"}}</label>
65
          <select id="tm_mad" name="tm_mad">
66
            <option value="shared">{{tr "Shared"}}</option>
67
            <option value="ssh">{{tr "SSH"}}</option>
68
            <option value="qcow2">{{tr "qcow2"}}</option>
69
            <option value="fs_lvm">{{tr "FS LVM"}}</option>
70
            <option value="ceph">{{tr "Ceph"}}</option>
71
            <option value="dev">{{tr "Devices"}}</option>
72
            <option value="iscsi_libvirt">{{tr "iSCSI/Libvirt"}}</option>
73
            <option value="vcenter">{{tr "vCenter"}}</option>
74
            <option value="custom">{{tr "Custom"}}</option>
75
          </select>
76
          <div>
77
            <label>{{tr "Custom TM_MAD"}}</label>
78
            <input type="text" name="ds_tab_custom_tm_mad" />
79
          </div>
80
        </div>
81
      </fieldset>
82
    </div>
83
  </div>
84
  <div class="row">
85
    <div class="large-12 columns">
86
      <fieldset>
87
        <legend>{{tr "Datastore Type"}}</legend>
88
        <div class="large-12 columns text-center">
89
          <input id="image_ds_type" type="radio" name="ds_type" value="IMAGE_DS" checked/>
90
          <label for="image_ds_type">{{tr "Images"}}</label>
91
          <input id="system_ds_type" type="radio" name="ds_type" value="SYSTEM_DS" />
92
          <label for="system_ds_type">{{tr "System"}}</label>
93
          <input id="file_ds_type" type="radio" name="ds_type" value="FILE_DS" />
94
          <label for="file_ds_type">{{tr "Files"}}</label>
95
        </div>
96
      </fieldset>
97
    </div>
98
  </div>
99
  <div class="row disk_type_wrapper">
100
    <div class="medium-6 columns">
101
      <label for="disk_type">{{tr "Disk type"}}</label>
102
      <select id="disk_type" name="disk_type">
103
        <option value="file">{{tr "File"}}</option>
104
        <option value="block">{{tr "Block"}}</option>
105
        <option value="RBD">{{tr "RBD"}}</option>
106
        <option value="gluster">{{tr "Gluster"}}</option>
107
        <option value="iscsi">{{tr "iSCSI/Libvirt"}}</option>
108
      </select>
109
    </div>
110
  </div>
111
  <div class="row">
112
    <div class="large-12 columns">
113
      <label>
114
        {{tr "Restricted directories for registering Images"}}
115
        <input type="text" name="restricted_dirs" id="restricted_dirs" placeholder="/path/to/dir /path/to/other/dir"/>
116
      </label>
117
    </div>
118
    <div class="large-12 columns">
119
      <label>
120
        {{tr "Safe directories for registering Images"}}
121
        <input type="text" name="safe_dirs" id="safe_dirs" placeholder="/path/to/dir /path/to/other/dir"/>
122
      </label>
123
    </div>
124
    <div class="medium-6 columns">
125
      <label>
126
        {{tr "Storage usage limit (MB)"}}
127
        <input type="number" min="0" name="limit_mb" id="limit_mb" />
128
      </label>
129
    </div>
130
    <div class="medium-6 columns">
131
      <label for="limit_transfer_bw">
132
        {{tr "Transfer bandwidth limit (B/s)"}}
133
        <span class="tip">
134
          {{tr "Specify the maximum transfer rate in bytes/second when downloading images from a http/https URL. Suffixes K, M or G can be used."}}
135
        </span>
136
        <input type="text" name="limit_transfer_bw" id="limit_transfer_bw" />
137
      </label>
138
    </div>
139
    <div class="large-12 columns">
140
      <input id="no_decompress" type="checkbox" name="no_decompress" value="YES" />
141
      <label for="no_decompress">{{tr "Do not try to untar or decompress"}}</label>
142
    </div>
143
    <div class="large-12 columns">
144
      <input id="datastore_capacity_check" type="checkbox" name="datastore_capacity_check" value="YES" />
145
      <label for="datastore_capacity_check">
146
        {{tr "Check available capacity of the Datastore before creating a new Image"}}
147
      </label>
148
    </div>
149
    <div class="large-12 columns">
150
      <label for="bridge_list">
151
        {{tr "Host bridge list"}}
152
        <span class="tip">
153
          {{tr "Space separated list of servers to add new Images to the Datastore storage"}}
154
        </span>
155
      </label>
156
      <input type="text" name="bridge_list" id="bridge_list" />
157
    </div>
158
    <div class="medium-6 columns">
159
      <label for="vg_name">{{tr "Volume Group Name"}}</label>
160
      <input type="text" name="vg_name" id="vg_name" />
161
    </div>
162
    <div class="medium-6 columns">
163
      <label for="gluster_host">
164
        {{tr "Gluster Host"}}
165
        <span class="tip">
166
          {{tr "Host and port of one (and only one) Gluster server (host:port)"}}
167
        </span>
168
      </label>
169
      <input type="text" name="gluster_host" id="gluster_host" />
170
    </div>
171
    <div class="medium-6 columns">
172
      <label for="gluster_volume">
173
        {{tr "Gluster Volume"}}
174
        <span class="tip">{{tr "Gluster volume to use for the datastore"}}</span>
175
      </label>
176
      <input type="text" name="gluster_volume" id="gluster_volume" />
177
    </div>
178
    <div class="medium-6 columns">
179
      <label for="pool_name">
180
        {{tr "Ceph pool to store Images"}}
181
      </label>
182
      <input type="text" name="pool_name" id="pool_name" />
183
    </div>
184
    <div class="medium-6 columns">
185
      <label for="ceph_host">
186
        {{tr "Ceph host"}}
187
        <span class="tip">
188
          {{tr "Space-separated list of Ceph monitors"}}
189
        </span>
190
      </label>
191
      <input type="text" name="ceph_host" id="ceph_host" placeholder="host1 host2:port2"/>
192
    </div>
193
    <div class="medium-6 columns">
194
      <label for="ceph_user">
195
        {{tr "Ceph user"}}
196
        <span class="tip">
197
          {{tr "The username to interact with the Ceph cluster"}}
198
        </span>
199
      </label>
200
      <input type="text" name="ceph_user" id="ceph_user" />
201
    </div>
202
    <div class="medium-6 columns">
203
      <label for="ceph_secret">
204
        {{tr "Ceph secret"}}
205
        <span class="tip">
206
          {{tr "A generated UUID for a LibVirt secret"}}
207
        </span>
208
      </label>
209
      <input type="text" name="ceph_secret" id="ceph_secret" />
210
    </div>
211
    <div class="medium-6 columns">
212
      <label for="iscsi_host">
213
        {{tr "iSCSI host"}}
214
        <span class="tip">
215
          {{tr "Example: 'host' or 'host:port'"}}
216
        </span>
217
      </label>
218
      <input type="text" name="iscsi_host" id="iscsi_host" />
219
    </div>
220
    <div class="medium-6 columns">
221
      <label for="iscsi_user">
222
        {{tr "iSCSI user for CHAP authentication"}}
223
      </label>
224
      <input type="text" name="iscsi_user" id="iscsi_user" />
225
    </div>
226
    <div class="medium-6 columns">
227
      <label for="iscsi_usage">
228
        {{tr "iSCSI usage for CHAP authentication"}}
229
        <span class="tip">
230
          {{tr "'Usage' of the registered secret with the authentication string."}}
231
        </span>
232
      </label>
233
      <input type="text" name="iscsi_usage" id="iscsi_usage" />
234
    </div>
235
    <div class="medium-6 columns">
236
      <label for="vceter_cluster">
237
        {{tr "vCenter cluster"}}
238
        <span class="tip">
239
          {{tr "The vCenter Cluster that has access to this datastore."}}
240
        </span>
241
        <div id="vcenter_cluster_wrapper"></div>
242
      </label>
243
    </div>
244
  </div>
245
  <div class="ceph_advanced">
246
    {{#advancedSection (tr "Advanced options") }}
247
    <div class="medium-6 columns">
248
      <label class="fs" for="staging_dir">
249
        {{tr "Staging directory for Image registration"}}
250
      </label>
251
      <input type="text" name="staging_dir" id="staging_dir" />
252
    </div>
253
    <div class="medium-6 columns">
254
      <label for="rbd_format">
255
        {{tr "RBD format"}}
256
      </label>
257
      <input type="text" name="rbd_format" id="rbd_format" />
258
    </div>
259
    <div class="medium-6 columns">
260
      <label class="fs" for="ceph_conf">
261
        {{tr "Ceph configuration file path"}}
262
        <span class="tip">
263
          {{tr "Needed if using a non-default path for the ceph configuration file."}}
264
        </span>
265
      </label>
266
      <input type="text" name="ceph_conf" id="ceph_conf" />
267
    </div>
268
    <div class="medium-6 columns">
269
      <label class="fs" for="ceph_key">
270
        {{tr "Ceph keyfile"}}
271
        <span class="tip">
272
          {{tr "File containing the secret key of user."}}
273
        </span>
274
      </label>
275
      <input type="text" name="ceph_key" id="ceph_key" />
276
    </div>
277
    {{/advancedSection}}
278
  </div>
279
</form>