Seamless provisioning, install and configuration automation in Ansible

71 views
Skip to first unread message

Madhava Rao

unread,
Apr 13, 2017, 12:45:42 PM4/13/17
to Ansible Project, vick...@gmail.com
Hi,

I'm automating a QA environment which involves provisioning VM's on the cloud and installation of Kubernetes cluster. I'm able to install and configure Kubernetes on the VM's after provisioning thanks to the Kubernetes Contrib.

I would like to know how I can provision a VM, copy the public keys to the VM created, and proceed with the installation of Kubernetes without manual intervention. Currently I can't figure out a way in which I can copy the ssh keys to the provisioned VM without the password prompt. Any directions on how to achieve this would be very helpful.

Thanks,

Dick Davies

unread,
Apr 13, 2017, 2:05:37 PM4/13/17
to ansible list
Are you able to modify the VM templates? That would be simplest.
Depending on your virtualiser there is usually a way to run a 'first boot' step
on newly created VMs; that might be another way to get the initial pubkey
(that Ansible will use) installed.
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/8ac66980-9292-40ef-98a7-89d095e64ce4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Dick Davies

unread,
Apr 18, 2017, 2:48:06 AM4/18/17
to Madhava Rao, Ansible Project
I've never used Azure but this looks like what you want:

https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/



On 18 April 2017 at 03:42, Madhava Rao <mrao...@gmail.com> wrote:
> Could you please point to some links on how it can done through Azure?
>
> Thanks,

Madhava Rao

unread,
Apr 19, 2017, 3:25:57 PM4/19/17
to Ansible Project, di...@hellooperator.net
Could you please point to some links on how it can done through Azure?

Thanks,

On Thursday, April 13, 2017 at 2:05:37 PM UTC-4, Dick Davies wrote:
Reply all
Reply to author
Forward
0 new messages