forked from blesta/module-proxmox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxmox.php
239 lines (181 loc) · 11.2 KB
/
proxmox.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?php
// Actions
$lang['Proxmox.!actions.boot'] = 'Boot';
$lang['Proxmox.!actions.shutdown'] = 'Shutdown';
$lang['Proxmox.!actions.mount_iso'] = 'Mount ISO';
$lang['Proxmox.!actions.unmount_iso'] = 'Unmount ISO';
$lang['Proxmox.!actions.reinstall'] = 'Reinstall';
$lang['Proxmox.!actions.hostname'] = 'Change Hostname';
$lang['Proxmox.!actions.password'] = 'Change Password';
// Errors
$lang['Proxmox.!error.server_name.empty'] = 'Please enter a server label.';
$lang['Proxmox.!error.user.empty'] = 'Please enter a user.';
$lang['Proxmox.!error.password.empty'] = 'Please enter a password.';
$lang['Proxmox.!error.host.format'] = 'The hostname appears to be invalid.';
$lang['Proxmox.!error.port.format'] = 'Please enter a valid port number.';
$lang['Proxmox.!error.vmid.format'] = 'Please enter a valid VMID.';
$lang['Proxmox.!error.ips.empty'] = 'Please enter IPs.';
$lang['Proxmox.!error.meta[type].valid'] = 'Please select a valid virtualization type.';
$lang['Proxmox.!error.meta[nodes].empty'] = 'Please select at least one node.';
$lang['Proxmox.!error.meta[memory].format'] = 'Please set RAM.';
$lang['Proxmox.!error.meta[cpu].format'] = 'Please set vCPU count.';
$lang['Proxmox.!error.meta[hdd].format'] = 'Please set HDD size.';
$lang['Proxmox.!error.meta[netspeed].format'] = 'Please set NetSpeed.';
$lang['Proxmox.!error.meta[default_template].empty'] = 'Please enter a valid template.';
$lang['Proxmox.!error.meta[storage].format'] = 'Please enter a valid storage.';
$lang['Proxmox.!error.meta[default_template].format'] = 'Please enter a valid default template.';
$lang['Proxmox.!error.meta[template_storage].format'] = 'Please enter a valid template storage.';
$lang['Proxmox.!error.api.unknown'] = 'An unknown error occurred, please try again later.';
$lang['Proxmox.!error.api.internal'] = 'An internal error occurred, or the server did not respond to the request.';
$lang['Proxmox.!error.proxmox_hostname.format'] = 'The hostname appears to be invalid.';
$lang['Proxmox.!error.proxmox_template.valid'] = 'Please select a valid template.';
$lang['Proxmox.!error.create_client.failed'] = 'An internal error occurred and the client account could not be created.';
$lang['Proxmox.!error.api.template.valid'] = 'The selected template is invalid.';
$lang['Proxmox.!error.api.confirm.valid'] = 'You must acknowledge that you understand the reinstall action in order to perform the template reinstallation.';
$lang['Proxmox.!error.proxmox_root_password.length'] = 'The root password must be at least 6 characters in length.';
$lang['Proxmox.!error.proxmox_root_password.matches'] = 'The root passwords do not match.';
$lang['Proxmox.!error.module_row.missing'] = 'An internal error occurred. The module row is unavailable.';
// Common
$lang['Proxmox.please_select'] = '-- Please Select --';
$lang['Proxmox.!bytes.value'] = '%1$s%2$s'; // %1$s is a number value, %2$s is the unit of that value (i.e., one of B, KB, MB, GB)
$lang['Proxmox.!uptime.value'] = '%3$s days, %2$s hours, %1$s minutes'; // %1$s is the number of uptime days, %2$s is the number of uptime hours, %3$s is the number of uptime minutes
$lang['Proxmox.!percent.used'] = '%1$s%'; // %1$s is a percentage value
// Basics
$lang['Proxmox.name'] = 'Proxmox';
$lang['Proxmox.description'] = 'Proxmox Virtual Environment is an open-source server virtualization environment. It is a Debian-based Linux distribution with a modified Ubuntu LTS kernel and allows deployment and management of virtual machines and containers.';
$lang['Proxmox.module_row'] = 'Proxmox Master Server';
$lang['Proxmox.module_row_plural'] = 'Servers';
$lang['Proxmox.module_group'] = 'Proxmox Master Group';
// Module management
$lang['Proxmox.add_module_row'] = 'Add Server';
$lang['Proxmox.add_module_group'] = 'Add Server Group';
$lang['Proxmox.manage.module_rows_title'] = 'Proxmox Master Servers';
$lang['Proxmox.manage.module_groups_title'] = 'Proxmox Master Server Groups';
$lang['Proxmox.manage.module_rows_heading.server_label'] = 'Server Label';
$lang['Proxmox.manage.module_rows_heading.host'] = 'Hostname';
$lang['Proxmox.manage.module_rows_heading.options'] = 'Options';
$lang['Proxmox.manage.module_groups_heading.name'] = 'Group Name';
$lang['Proxmox.manage.module_groups_heading.servers'] = 'Server Count';
$lang['Proxmox.manage.module_groups_heading.options'] = 'Options';
$lang['Proxmox.manage.module_rows.edit'] = 'Edit';
$lang['Proxmox.manage.module_groups.edit'] = 'Edit';
$lang['Proxmox.manage.module_rows.delete'] = 'Delete';
$lang['Proxmox.manage.module_groups.delete'] = 'Delete';
$lang['Proxmox.manage.module_rows.confirm_delete'] = 'Are you sure you want to delete this server?';
$lang['Proxmox.manage.module_groups.confirm_delete'] = 'Are you sure you want to delete this server group?';
$lang['Proxmox.manage.module_rows_no_results'] = 'There are no servers.';
$lang['Proxmox.manage.module_groups_no_results'] = 'There are no server groups.';
$lang['Proxmox.order_options.first'] = 'First non-full server';
// Module row meta data
$lang['Proxmox.row_meta.server_name'] = 'Server Label';
$lang['Proxmox.row_meta.user'] = 'User (with @pam or @pve after the username)';
$lang['Proxmox.row_meta.password'] = 'Password';
$lang['Proxmox.row_meta.host'] = 'Hostname';
$lang['Proxmox.row_meta.port'] = 'SSL Port Number';
$lang['Proxmox.row_meta.vmid'] = 'Next VMID (do not change unless necessary!)';
$lang['Proxmox.row_meta.default_vmid'] = '200';
$lang['Proxmox.row_meta.default_port'] = '8006';
$lang['Proxmox.row_meta.ips'] = 'IPs (one per line)';
// Server types
$lang['Proxmox.types.lxc'] = 'LXC';
$lang['Proxmox.types.kvm'] = 'KVM';
// Set Unprivileged
$lang['Proxmox.unprivileged.disabled'] = 'Disabled';
$lang['Proxmox.unprivileged.enabled'] = 'Enabled';
// Add module row
$lang['Proxmox.add_row.box_title'] = 'Add Proxmox Server';
$lang['Proxmox.add_row.basic_title'] = 'Basic Settings';
$lang['Proxmox.add_row.add_btn'] = 'Add Server';
// Edit module row
$lang['Proxmox.edit_row.box_title'] = 'Edit Proxmox Server';
$lang['Proxmox.edit_row.basic_title'] = 'Basic Settings';
$lang['Proxmox.edit_row.add_btn'] = 'Update Server';
// Package fields
$lang['Proxmox.package_fields.type'] = 'Type';
$lang['Proxmox.package_fields.storage'] = 'Storage Name';
$lang['Proxmox.package_fields.gateway'] = 'Network Gateway';
$lang['Proxmox.package_fields.template_storage'] = 'CT Template Storage Name';
$lang['Proxmox.package_fields.default_template'] = 'Default Template';
$lang['Proxmox.package_fields.hdd'] = 'Storage (GB)';
$lang['Proxmox.package_fields.memory'] = 'RAM (MB)';
$lang['Proxmox.package_fields.cpu'] = 'vCPU Count';
$lang['Proxmox.package_fields.netspeed'] = 'Network Speed Rate (MByte/s)';
$lang['Proxmox.package_fields.cpulimit'] = 'CPU Limit';
$lang['Proxmox.package_fields.cpuunits'] = 'CPU Units';
$lang['Proxmox.package_fields.swap'] = 'SWAP (MB)';
$lang['Proxmox.package_fields.unprivileged'] = 'Unprivileged';
$lang['Proxmox.package_fields.assigned_nodes'] = 'Assigned Nodes';
$lang['Proxmox.package_fields.available_nodes'] = 'Available Nodes';
$lang['Proxmox.package_fields.tooltip.storage'] = 'The name of the rootfs disk storage location where new VMs and CTs will be placed (should exist on all assigned nodes).';
$lang['Proxmox.package_fields.tooltip.template_storage'] = 'The name of the template storage location from which to fetch a list of templates.';
// Service fields
$lang['Proxmox.service_field.proxmox_hostname'] = 'Hostname';
$lang['Proxmox.service_field.proxmox_password'] = 'Password';
$lang['Proxmox.service_field.proxmox_template'] = 'Template';
$lang['Proxmox.service_field.tooltip.password'] = 'You may leave the password blank to automatically generate one.';
// Service Info fields
$lang['Proxmox.service_info.proxmox_ip'] = 'Primary IP Address';
$lang['Proxmox.service_info.proxmox_username'] = 'Username';
$lang['Proxmox.service_info.proxmox_password'] = 'Password';
$lang['Proxmox.service_info.vm_username'] = 'root / Administrator';
$lang['Proxmox.service_info.hostname'] = 'Hostname';
$lang['Proxmox.service_info.login'] = 'Login';
$lang['Proxmox.service_info.type'] = 'Type: ';
$lang['Proxmox.service_info.vm_memory'] = 'Memory';
$lang['Proxmox.service_info.cpu_usage'] = 'CPU Usage';
$lang['Proxmox.service_info.netspeed'] = 'MB/s';
$lang['Proxmox.service_info.uptime'] = 'Uptime';
$lang['Proxmox.service_info.informations'] = 'Informations';
$lang['Proxmox.service_info.vcpu'] = 'vCPU';
$lang['Proxmox.service_info.memory'] = 'MB RAM';
// Tabs
$lang['Proxmox.tab_actions'] = 'Server Actions';
$lang['Proxmox.tab_stats'] = 'Stats';
$lang['Proxmox.tab_console'] = 'Console';
// Actions Tab
$lang['Proxmox.tab_actions.heading_actions'] = 'Actions';
$lang['Proxmox.tab_actions.status_running'] = 'Online';
$lang['Proxmox.tab_actions.status_stopped'] = 'Offline';
$lang['Proxmox.tab_actions.status_disabled'] = 'Disabled';
$lang['Proxmox.tab_actions.server_status'] = 'Server Status';
$lang['Proxmox.tab_actions.heading_mount_iso'] = 'Mount ISO';
$lang['Proxmox.tab_actions.heading_reinstall'] = 'Reinstall';
$lang['Proxmox.tab_actions.field_iso'] = 'Image';
$lang['Proxmox.tab_actions.field_mount_submit'] = 'Mount';
$lang['Proxmox.tab_actions.field_template'] = 'Template';
$lang['Proxmox.tab_actions.field_password'] = 'Root Password';
$lang['Proxmox.tab_actions.field_reinstall_submit'] = 'Reinstall';
// Client Actions Tab
$lang['Proxmox.tab_client_actions.heading_actions'] = 'Server Actions';
$lang['Proxmox.tab_client_actions.heading_server_status'] = 'Server Status';
$lang['Proxmox.tab_client_actions.status_running'] = 'Online';
$lang['Proxmox.tab_client_actions.status_stopped'] = 'Offline';
$lang['Proxmox.tab_client_actions.status_disabled'] = 'Disabled';
$lang['Proxmox.tab_client_actions.heading_mount_iso'] = 'Mount ISO';
$lang['Proxmox.tab_client_actions.heading_reinstall'] = 'Reinstall';
$lang['Proxmox.tab_client_actions.field_iso'] = 'Image';
$lang['Proxmox.tab_client_actions.field_mount_submit'] = 'Mount';
$lang['Proxmox.tab_client_actions.field_template'] = 'Template';
$lang['Proxmox.tab_client_actions.field_password'] = 'Root password';
$lang['Proxmox.tab_client_actions.field_reinstall_submit'] = 'Reinstall';
// Stats Tab
$lang['Proxmox.tab_stats.heading_stats'] = 'Statistics';
$lang['Proxmox.tab_stats.memory'] = 'Memory:';
$lang['Proxmox.tab_stats.memory_stats'] = '%1$s / %2$s'; // %1$s is the memory used, %2$s is the total memory available
$lang['Proxmox.tab_stats.memory_percent_available'] = '(%1$s%%)'; // %1$s is the percentage of memory used. You MUST use two % signs to represent a single percent (i.e. %%)
$lang['Proxmox.tab_stats.heading_graphs'] = 'Graphs';
// Client Stats Tab
$lang['Proxmox.tab_client_stats.heading_stats'] = 'Statistics';
$lang['Proxmox.tab_client_stats.heading_graphs'] = 'Graphs';
// Console Tab
$lang['Proxmox.tab_console.heading_console'] = 'Console';
$lang['Proxmox.tab_console.vnc_ip'] = 'VNC Host:';
$lang['Proxmox.tab_console.vnc_port'] = 'VNC Port:';
$lang['Proxmox.tab_console.vnc_user'] = 'VNC Username:';
$lang['Proxmox.tab_console.vnc_password'] = 'VNC Password:';
// Client Console Tab
$lang['Proxmox.tab_client_console.heading_console'] = 'Console';
$lang['Proxmox.tab_client_console.vnc_ip'] = 'VNC Host';
$lang['Proxmox.tab_client_console.vnc_port'] = 'VNC Port';
$lang['Proxmox.tab_client_console.vnc_user'] = 'VNC Username';
$lang['Proxmox.tab_client_console.vnc_password'] = 'VNC Password';