I am trying to use Puppet to handle our Linux Vserver based virtual servers,
including the actual installation of the virtual servers. (If you don't know
how Linux Vserver works, think of a BSD style jail)
The elegant way to configure this, would be to export the configuration
details from the virtual machine configuration, and then collect it on the
physical machine, which then installs/reconfigures the virtual server.
This results in some configuration similar to the following pseudo
configuration:
####
include my_vserver
node "virtual01.domain.tld" {
$ip = '192.168.0.37'
@@my_vserver { $host:
ensure => running,
ip => $ip,
physical_host => "physical01.domain.tld",
}
# Additional configuration
}
node "physical01.domain.tld" {
My_vserver <<| physical_host == $hostname |>>
# Additional configuration
}
####
I already have a preliminary module, which handles the actual installation
and configuration of the virtual servers. The problem is that it requires
the egg before the chicken, by needing to have the resource exported by the
Puppet instance inside the virtual server, before the virtual server can be
installed.
Does anyone have a good idea on how to solve this problem?
--
David Darville
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.