paul matthews wrote:
> I''ve had a trawl through the archives and on the wiki and could
not see
> any reference to this but has any one done any work on provisioning of
> xenserver vm''s via puppet? If not, I''ll look to create
something and
> report back
You mean defining Xen guests (domU) on a Xen host (dom0)? Yes, I did
a couple of weeks ago actually. I have a module with a number of
definitions and some plugins, and among them is a "xen_domu"
definition.
One would use it like this:
xen_domu {
"webserver":
memory => 4096,
disk => [ "phy:vg01/webserver.img",
"file:/var/lib/xen/images/image2.img" ],
interfaces => [ "00:16:3E:01:02:03",
"00:16:3E:04:05:06" ];
}
There are a number of other parameters as well. Currently it only
supports CentOS, but at least real RHEL and Scientific Linux should
be trivial to add.
Do a git clone of http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git
to get my module. Look in manifests/xen.pp for xen_domu; there is a
comment there describing the parameters. (There are a number of other
definitions in the nsc-puppet-utils module that might be of interrest
as well. Note that the module does contain some custom resource types,
functions and facts that are essential to the definitions, so you need
to configure your Puppetmaster for that.)
The xen_domu definition is fairly low-level; it just mechanism, no
policy. So on top of this, I have also written another definition
which acts on a higher level defining Xen guests "our way". It will
install two config files for each guest, one for booting normally,
and one for booting a CentOS installer with kickstart installation,
and it will automatically fill in certain values for disks and other
things.
I don''t have that as a publicly available module at the moment, but
I''m attaching the current version of the two files needed for it (one
manifest file, and one template file). They are geared to how *I*
want things set up, so you probably want to modify them before using.
/Bellman
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---