[Music]
hi my name is Freddy Montero and I'm an
architect with the container and past
practice of a hat
hi my name is John Wescott and I'm a
senior consultant in the Northeast
region for Red Hat on today's video
we're gonna talk about how to provision
very metal machines to applications
utilizing ansible John tell us how we
can utilize sensible to start this
journey sure so we all know that ansible
can automate on an existing machine but
ansible can also be used to provision a
machine as part of an automation process
using supported existing modules ansible
can talk to cloud providers such as
OpenStack and GCP AWS in Azure in
addition there are modules for ansible
to talk to virtualization solutions such
as VMware vSphere or Rev in addition
there's numerous modules for connecting
and working with data center management
tools to complete the provisioning
process you know there's a lot of
passible modules to provision not only
cloud providers but also virtualization
providers but what if there's something
I want to do something that is not
covered by an ansible module great
question
if you encounter a device that doesn't
have an existing module for it ansible
has built-in modules for shelling out
and executing a command line interface a
CLI it also has modules for utilizing a
REST API or if one of those doesn't work
for you you can extend an support by
writing your own custom module to make
ansible do virtually anything well you
know since you're on in the field can
you explain to me a little bit how we
can put all of this together
sure thing at a client we created a
provisioning process to go all the way
from a metadata
database to bare metal to application
and middleware and everything else in
between
we started by extracting data out of the
metadata database and then talking to
providers to get information such as IPS
and host names required to build the
machine once we had all that information
completed we put it into the customer
CMDB from there we talked with our
providers to provision us a virtual
machine once the virtual machine was
started weak
acted to the virtual machine with
ansible to install the middleware the
application and perform any other tasks
required to complete the provisioning
process for that environment oh that's
good to know but how do I know once I
create or I a VM that I know that my VM
is fully provisioned another good
question
ansible has built-in modules for waiting
for a connection to be established
between ansible engine and the VMware
that was recently provisioned well how
do I really know that my VM is really
fully provisioned to complete the
provisioning process you can do a couple
different methods one is you can have
baked in information inside of your VM
once the VM is up and ansible can
connect to it with that baked in
information and so what can go modify
that information as required by security
another option would be to have a post
provisioning callback script on your
machine which once the machine was
provisioned would modify the machine in
such a way that ansible was able to
connect in a third option which you can
leverage if you're using ansible Tower
is called a provisioning callback that
allows the virtual machine to call back
directly into ansible tower and request
that ansible tower completes the
provisioning process on the machine that
called it okay so once the the end is
fully provisioned and all the
information goes back to to a stable
tower now that house can be managed just
like any other hosts in the cluster
that's right given this process do you
think this could be used to install an
open chef cluster oh yes of course by
creating VMs you utilizing the same
process that you explained before and
then utilizing one of the mechanisms we
can bootstrap the ansible openshift
playbooks to fully create install and
open chef cluster cool so we've talked
about a lot of concepts in here
including ansible tower open shift
provisioning from bare metal and even
writing custom modules if anybody needs
help with this what should they do to
learn more about this topic or any other
topic please contact your Red Hat
Account Executive to schedule a
discovery session or visit us at Red Hat
that come forward slash services to find
out more what Red Hat consulting or
training can do for you thank you
you