Internal ansible-galaxy

326 views
Skip to first unread message

Hani Suleiman

unread,
Nov 30, 2014, 7:54:26 PM11/30/14
to ansible...@googlegroups.com
Is it possible to get ansible-galaxy like functionality in a closed ecosystem? This would be particularly useful for enterprise environments where there's an internal git repo, with multiple teams trying to share roles.

Ideally, something like the public facing API server that can be run internally, but I'd settle for some interim solution like having roles on a shared filesystem.

Brian Coca

unread,
Dec 1, 2014, 10:35:23 AM12/1/14
to ansible...@googlegroups.com
galaxy supports passing a scm or tarball uri, which would allow you to
host the modules privately.




--
Brian Coca

Hani Suleiman

unread,
Dec 1, 2014, 1:10:25 PM12/1/14
to ansible...@googlegroups.com
Installation is fine. The problem I'm having is that I'm unable to run ansible-galaxy init mymodule --force, which does try to contact the api server. Are there any docs for doing what the init does manually?

Michael DeHaan

unread,
Dec 1, 2014, 1:23:52 PM12/1/14
to ansible...@googlegroups.com
Note: when Brian mentioned galaxy and URIs above, that means the ansible-galaxy requirements file, for the CLI -- the public site does require git.

As for the --init and so forth, we do need to make galaxy-init not contact the metadata server.  If this is something you'd like to work on, patches would be welcome, otherwise make sure we have a ticket and we can take care of that.





On Mon, Dec 1, 2014 at 1:10 PM, Hani Suleiman <ha...@formicary.net> wrote:
Installation is fine. The problem I'm having is that I'm unable to run ansible-galaxy init mymodule --force, which does try to contact the api server. Are there any docs for doing what the init does manually?

--
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/2a2e7517-f7ea-4bbe-80c8-76bbfc349290%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Coca

unread,
Dec 1, 2014, 1:53:08 PM12/1/14
to ansible...@googlegroups.com
init just creates a skeleton for the module, it contacts the server to
download the default files.

On Mon, Dec 1, 2014 at 1:10 PM, Hani Suleiman <ha...@formicary.net> wrote:
> Installation is fine. The problem I'm having is that I'm unable to run ansible-galaxy init mymodule --force, which does try to contact the api server. Are there any docs for doing what the init does manually?
>
> --
> 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/2a2e7517-f7ea-4bbe-80c8-76bbfc349290%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Michael DeHaan

unread,
Dec 1, 2014, 4:34:02 PM12/1/14
to ansible...@googlegroups.com
Right, I am suggesting we code the default templates in the program itself -- there's a design point that the existing method allows it easier to change the defaults, true... but there are tradeoffs.



Hani Suleiman

unread,
Dec 1, 2014, 6:30:56 PM12/1/14
to ansible...@googlegroups.com
So presumably I could just copy the defaults into the repo manually, where do these files live currently?

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/1nZUU8woKU8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

Michael DeHaan

unread,
Dec 1, 2014, 6:40:28 PM12/1/14
to ansible...@googlegroups.com
Here's all of the Ansible-galaxy CLI source:


Looks like you just need to pass --offline although it would be nice if the API config check didn't happen for the init task, and that's easily switchable.

It appears we are already using local templates.




Reply all
Reply to author
Forward
0 new messages