Class: PVE::CTTemplate::Default

Inherits:
Base
  • Object
show all
Defined in:
lib/pve/templates.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Class Method Summary collapse

Methods inherited from Base

#_ipv4, #_ipv6, #arch, #cmode, #cores, #description, #hostname, #initialize, #memory, #name, #net0, #net1, #net2, #net3, #node, #ostype, #ssh_public_keys, #swap, #unprivileged, #vmid

Constructor Details

This class inherits a constructor from PVE::CTTemplate::Base

Class Method Details

.helpObject



60
61
62
# File 'lib/pve/templates.rb', line 60

def self.help
  nil
end

.requirementsObject



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/pve/templates.rb', line 64

def self.requirements
  {
    node:                      [:string,  false, "Create CT on this node."],
    name:                      [:string,  true,  "Set (uniq) name"],
    arch:                      [:enum,    false, "Architecture", %w[amd64 i386 arm64 armhf]],
    vmid:                      [:numeric, true,  "VM-ID.  Proxmox internal number (100...)"],
    ostype:                    [:string,  true,  "OS-Type (OS or distribution)"],
    cmode:                     [:enum,    false, "Console-mode", %w[shell console tty]],
    cores:                     [:numeric, false, "Count of cores"],
    description:               [:string,  false, "Description.  Eg. What should this CT do?"],
    hostname:                  [:string,  false, "Hostname"],
    memory:                    [:numeric, false, "How much memory CT could use?"],
    swap:                      [:numeric, false, "How much CT can swap?"],
    unprivileged:              [:boolean, false, "Unprivileged are restricted to own UID/GID-space."],
    :'ssh-public-keys' =>      [:string,  false, "SSH-Public-Keys, which should be added to root-user in CT."],
    :'ssh-public-keys-file' => [:string,  false, "Read SSH-Public-Keys from file."],
    ipv4:                      [:string,  false, "IPv4-Address with net-size."],
    gateway4:                  [:string,  false, "IPv4-Address of gateway."],
    ipv6:                      [:string,  false, "IPv6-Address with net-size or auto."],
    gateway6:                  [:string,  false, "IPv6-Address of gateway."],
    storage:                   [:string,  false, "Device will be create on this Storage (default: local"],
  }
end