This is a multi-part message in MIME format.
--------------070400040605090801030307
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
On 03/12/2015 10:02 AM, Simone Tiraboschi wrote:
Hi all,
cloud-init is a powerful tool to configure from outside a cloud instance or an appliance
as in our scenario.
Deploying the engine as an appliance is indeed a good way to speed up and make easier the
hosted-engine deployment: you don't need to install an OS on the engine virtual
machine and than install the engine and so on but you could simply run a ready to use
oVirt engine appliance. But you still need to configure it and so cloud-init support
within hosted-engine is a reasonable way to complement it.
Then we could also integrate it with oVirt node to let the user input the required info
from node TUI in order to have an almost unattended hosted-engine setup on oVirt node
using an engine appliance with cloud-init.
The idea is to collect the required information interactively from hosted-engine setup or
from node TUI (passing them to hosted-engine setup via an answer file) and pass them to
the appliance via cloud-init using a no-cloud datasource.
So now the question is what do you really want to configure via cloud-init?
It's just to define what we want in order to be more focused on user needs:
for instance we could configure engine VM instance hostname, we could set the root
password, we could create other users, we could upload ssh private keys, we could run a
command on the first boot and so on.
So, if you have any ideas or requirement about that it's the right time for it.
Great suggestions, Simone!
The things you list cover most of what I do to the engine VM (I do all of those except for
"configure ssh private keys"). In addition, I:
* Add a couple of packages (e.g. zsh)
* Configure alternate shells for some initial users (this could be "run a command
on the first boot", as long as adding the necessary packages was done before that
somehow, perhaps simply as a prior command)
* Populate some specific files, e.g.:
o Add specific ssh *public* keys into the $HOME/.ssh/authorized_keys files for some
user and root accounts
o Replace /etc/hosts with a master copy that contains all hosts on my network
I'd like to see the "additional packages" abstracted out somehow and added
prior to the "run a command on the first boot" step, as opposed to using
"yum" explicitly for one of those commands, but that's somewhat of a
cosmetic "nice to have" since obviously it can be done explicitly. It's
separate conceptually, so would be nice to treat as such.
I'm learning Puppet at the moment, and it strikes me that what you want to do is
pretty much the same thing that Puppet manifests are designed to do.
Thanks,
Bob
thanks,
Simone
_______________________________________________
Devel mailing list
Devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel
--------------070400040605090801030307
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3Dwindows-1252"
http-equiv=3D"Content-Type">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
On 03/12/2015 10:02 AM, Simone Tiraboschi wrote:<br>
<blockquote
cite=3D"mid:1957349372.20499494.1426168924455.JavaMail.zimbra@redha=
t.com"
type=3D"cite">
<pre wrap=3D"">Hi all,
cloud-init is a powerful tool to configure from outside a cloud instance =
or an appliance as in our scenario.
Deploying the engine as an appliance is indeed a good way to speed up and=
make easier the hosted-engine deployment: you don't need to install an O=
S on the engine virtual machine and than install the engine and so on but=
you could simply run a ready to use oVirt engine appliance. But you stil=
l need to configure it and so cloud-init support within hosted-engine is =
a reasonable way to complement it.
Then we could also integrate it with oVirt node to let the user input the=
required info from node TUI in order to have an almost unattended hosted=
-engine setup on oVirt node using an engine appliance with cloud-init.
The idea is to collect the required information interactively from hosted=
-engine setup or from node TUI (passing them to hosted-engine setup via a=
n answer file) and pass them to the appliance via cloud-init using a no-c=
loud datasource.
So now the question is what do you really want to configure via cloud-ini=
t?
It's just to define what we want in order to be more focused on user need=
s:
for instance we could configure engine VM instance hostname, we could set=
the root password, we could create other users, we could upload ssh priv=
ate keys, we could run a command on the first boot and so on.
So, if you have any ideas or requirement about that it's the right time f=
or it.</pre>
</blockquote>
<br>
Great suggestions, Simone!<br>
<br>
The things you list cover most of what I do to the engine VM (I do
all of those except for "configure ssh private keys"). In addition,
I:<br>
<br>
<ul>
<li>Add a couple of packages (e.g. zsh)</li>
<li>Configure alternate shells for some initial users (this could
be "run a command on the first boot", as long as adding the
necessary packages was done before that somehow, perhaps simply
as a prior command)<br>
</li>
<li>Populate some specific files, e.g.:<br>
</li>
<ul>
<li>Add specific ssh *public* keys into the
$HOME/.ssh/authorized_keys files for some user and root
accounts</li>
<li>Replace /etc/hosts with a master copy that contains all
hosts on my network<br>
</li>
</ul>
</ul>
<br>
I'd like to see the "additional packages" abstracted out somehow and
added prior to the "run a command on the first boot" step, as
opposed to using "yum" explicitly for one of those commands, but
that's somewhat of a cosmetic "nice to have" since obviously it can
be done explicitly. It's separate conceptually, so would be nice to
treat as such.<br>
<br>
I'm learning Puppet at the moment, and it strikes me that what you
want to do is pretty much the same thing that Puppet manifests are
designed to do.<br>
<br>
Thanks,<br>
=A0=A0 Bob<br>
<br>
<blockquote
cite=3D"mid:1957349372.20499494.1426168924455.JavaMail.zimbra@redha=
t.com"
type=3D"cite">
<pre wrap=3D"">
thanks,
Simone
_______________________________________________
Devel mailing list
<a class=3D"moz-txt-link-abbreviated"
href=3D"mailto:Devel@ovirt.org">Dev=
el(a)ovirt.org</a>
<a class=3D"moz-txt-link-freetext"
href=3D"http://lists.ovirt.org/mailman=
/listinfo/devel">http://lists.ovirt.org/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</body>
</html>
--------------070400040605090801030307--