]> git.proxmox.com Git - pve-manager.git/commitdiff
pheceph: add -version argument to install
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 24 Mar 2014 05:21:44 +0000 (06:21 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 24 Mar 2014 05:21:44 +0000 (06:21 +0100)
bin/pveceph

index d83c0c0756bf2a000d1c026a62885e9d8702be60..0def860be9d91a5f4cd4fd8a35a50231fd68e592 100755 (executable)
@@ -80,13 +80,18 @@ __PACKAGE__->register_method ({
     parameters => {
        additionalProperties => 0,
        properties => {
+           version => {
+               type => 'string',
+               enum => ['dumpling', 'emperor', 'firefly'],
+               optional => 1,
+           }
        },
     },
     returns => { type => 'null' },
     code => sub {
        my ($param) = @_;
 
-       my $cephver = 'emperor';
+       my $cephver = $param->{version} || 'dumpling';
 
        local $ENV{DEBIAN_FRONTEND} = 'noninteractive';