]> git.proxmox.com Git - pve-container.git/blob - src/PVE/LXC/Setup/Unmanaged.pm
setup: add no-op plugin for unmanaged CTs
[pve-container.git] / src / PVE / LXC / Setup / Unmanaged.pm
1 package PVE::LXC::Setup::Unmanaged;
2
3 use strict;
4 use warnings;
5
6 use PVE::LXC::Setup::Plugin;
7 use base qw(PVE::LXC::Setup::Plugin);
8
9 sub new {
10 my ($class, $conf, $rootdir) = @_;
11
12 my $self = { conf => $conf, rootdir => $rootdir };
13
14 $conf->{ostype} = "unmanaged";
15
16 return bless $self, $class;
17 }
18
19 sub template_fixup {
20 my ($self, $conf) = @_;
21 }
22
23 sub setup_network {
24 my ($self, $conf) = @_;
25 }
26
27 sub set_hostname {
28 my ($self, $conf) = @_;
29 }
30
31 sub set_dns {
32 my ($self, $conf) = @_;
33 }
34
35 sub set_timezone {
36 my ($self, $conf) = @_;
37 }
38
39 sub setup_init {
40 my ($self, $conf) = @_;
41 }
42
43 sub set_user_password {
44 my ($self, $conf, $user, $opt_password) = @_;
45 }
46
47 sub unified_cgroupv2_support {
48 my ($self) = @_;
49 return 1; # faking it won't normally hurt ;-)
50 }
51
52 sub ssh_host_key_types_to_generate {
53 my ($self) = @_;
54 }
55
56 # hooks
57
58 sub pre_start_hook {
59 my ($self, $conf) = @_;
60 }
61
62 sub post_clone_hook {
63 my ($self, $conf) = @_;
64 }
65
66 sub post_create_hook {
67 my ($self, $conf, $root_password, $ssh_keys) = @_;
68 }
69
70 1;