return undef;
}});
+my $supported_ceph_versions = ['octopus', 'pacific', 'quincy'];
+my $default_ceph_version = 'pacific';
+
__PACKAGE__->register_method ({
name => 'install',
path => 'install',
properties => {
version => {
type => 'string',
- enum => ['octopus', 'pacific', 'quincy'],
- default => 'pacific',
+ enum => $supported_ceph_versions,
+ default => $default_ceph_version,
description => "Ceph version to install.",
optional => 1,
},
code => sub {
my ($param) = @_;
- my $cephver = $param->{version} || 'pacific'; # NOTE: always change default here too!
+ my $cephver = $param->{version} || $default_ceph_version;
my $repo = $param->{'test-repository'} ? 'test' : 'main';