Hi,

looks like you are having an application  deployment problem and not a ssh
key problem.

Have you thought about creating for example an operating system package
like rpm or deb out of your application instead of doing a got checkout
deployment?

If you are using a ci server by chance like Jenkins already why not create
a pipeline and the last step is to create a deployment artefact and promote
it to some sort of repository server?

You will gain lots of benefits from this. Security will love you, as your
application servers do not need to dial out on ssh any longer.

regards,
/mf

Phill Pafford <[email protected]> schrieb am Di., 23. Juni 2015 16:42:

> I've read a couple posts like this one
>
> -
> http://vicendominguez.blogspot.com/2014/05/ansible-generating-pub-key-file-and.html#comment-form
>
> But still no luck, but I wanted to know if I'm going about this the right
> or wrong way.
>
> The problem:
>
> I've created a Vagrant and I'm using Ansible to provision it, this is
> working great! The problem comes into play when I need to checkout my
> project which is in a Private Repository (Atlassian Stash aka Bitbucket aka
> git). I'd like to use my SSH key that I have configured on Atlassian Stash
> to pull down the project onto the Vagrant I have running but in order to do
> this I would need to copy my existing private SSH key onto my Vagrant.
> Which I do not want to do. I thought about generating a new key on the
> Vagrant box itself and then pushing the new public ket to Atlassian Stash
> via the API but this still needs me to authenticate with Atlassian Stash.
>
> Also I'd like to use the same Ansible playbook to provision my Production
> Server in the future so I'm trying to keep the process the same.
>
> I've looked a little into Ansible Vault but have not played with it..
>
> Am I going about this the right way? what have others done?
>
> Thanks,
> --Pafford
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6d7c4737-3636-44e7-bb10-67340caa358a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6d7c4737-3636-44e7-bb10-67340caa358a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFRuYVdKaJfcgHe_x08%3DnzH1niKApOiaOt66nTSSgWgd3DVhTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to