]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Subscription.pm
website: update external links to www.proxmox.com
[pve-manager.git] / PVE / API2 / Subscription.pm
index 5f599e15833c49f21c060feb0f4784b4f45bc61b..c9db8d986338dcada3f91161e813071347bea246 100644 (file)
@@ -83,6 +83,14 @@ sub write_etc_subscription {
     my $server_id = PVE::API2Tools::get_hwaddress();
     mkdir "/etc/apt/auth.conf.d";
     Proxmox::RS::Subscription::write_subscription($filename, "/etc/apt/auth.conf.d/pve.conf", "enterprise.proxmox.com/debian/pve", $info);
+
+    # NOTE: preparation for easier upgrade to Proxmox VE 8, which introduced the ceph enterprise repo
+    my $ceph_auth = '';
+    for my $ceph_release ('quincy', 'reef') {
+       $ceph_auth .= "machine enterprise.proxmox.com/debian/ceph-${ceph_release}"
+           ." login $info->{key} password $info->{serverid}\n"
+    }
+    PVE::Tools::file_set_contents("/etc/apt/auth.conf.d/ceph.conf", $ceph_auth);
 }
 
 __PACKAGE__->register_method ({
@@ -109,7 +117,7 @@ __PACKAGE__->register_method ({
        my $has_permission = $rpcenv->check($authuser, "/nodes/$node", ['Sys.Audit'], 1);
 
        my $server_id = PVE::API2Tools::get_hwaddress();
-       my $url = "https://www.proxmox.com/proxmox-ve/pricing";
+       my $url = "https://www.proxmox.com/en/proxmox-virtual-environment/pricing";
 
        my $info = read_etc_subscription();
        if (!$info) {