$sshkey = '',
$sshkey_type = 'ssh-rsa',
$sshkey_options = [],
+ $initial_user = 'user',
+ $guest_domain = $::domain,
) {
# Instance id
if $context <= 9 {
if $implementation == 'kvmx' {
virtual::kvm::kvmx::instance { $name:
- vg => $vg,
- size => $size,
- ram => $ram,
- udev => $udev,
- iface => $iface,
- shell => $shell,
- supervise => $supervise,
+ vg => $vg,
+ size => $size,
+ ram => $ram,
+ udev => $udev,
+ iface => $iface,
+ shell => $shell,
+ supervise => $supervise,
+ initial_user => $initial_user,
+ ip => "${subnet}.${context}",
+ gateway => "${subnet}.1",
+ guest_domain => $guest_domain,
+ ssh_custom_pubkey => "/home/${name}/.ssh/authorized_keys",
+ #require => Ssh_authorized_key["virtual-instance-${name}"],
}
}