ui: ceph install wizard: allow selecting repository

provide a second combo box that allows one to select which specific
repository out of enterprise, no-subscription or test one would like
to use.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-05 18:02:41 +02:00
parent 35ff09a46e
commit b686fd3774

View File

@ -146,6 +146,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
data: {
nodename: '',
cephRelease: 'quincy',
cephRepo: 'enterprise',
configuration: true,
isInstalled: false,
},
@ -205,7 +206,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
},
{
xtype: 'pveCephHighestVersionDisplay',
labelWidth: 180,
labelWidth: 150,
cbind: {
nodename: '{nodename}',
},
@ -218,8 +219,17 @@ Ext.define('PVE.ceph.CephInstallWizard', {
},
},
{
xtype: 'container',
layout: 'hbox',
defaults: {
border: false,
layout: 'anchor',
flex: 1,
},
items: [{
xtype: 'pveCephVersionSelector',
labelWidth: 180,
labelWidth: 150,
padding: '0 10 0 0',
submitValue: false,
bind: {
value: '{cephRelease}',
@ -233,6 +243,23 @@ Ext.define('PVE.ceph.CephInstallWizard', {
},
},
},
{
xtype: 'proxmoxKVComboBox',
fieldLabel: gettext('Repository'),
padding: '0 0 0 10',
comboItems: [
['enterprise', gettext('Enterprise (recommended)')],
['no-subscription', gettext('No-Subscription')],
['test', gettext('Test')],
],
labelWidth: 150,
submitValue: false,
value: 'enterprise',
bind: {
value: '{cephRepo}',
},
}],
},
],
listeners: {
activate: function() {
@ -323,7 +350,8 @@ Ext.define('PVE.ceph.CephInstallWizard', {
let me = this;
let wizard = me.up('pveCephInstallWizard');
let release = wizard.getViewModel().get('cephRelease');
me.cmdOpts = `--version\0${release}`;
let repo = wizard.getViewModel().get('cephRepo');
me.cmdOpts = `--version\0${release}\0--repository\0${repo}`;
},
cmd: 'ceph_install',
},