-
Notifications
You must be signed in to change notification settings - Fork 9
Document Pantheon Import role. #14
Document Pantheon Import role. #14
Conversation
This looks great! 👍 |
Initial thoughts (apologies if a little brief - I'm juggling a fair bit at the mo): Currently, and going forward, we're prefixing any new variables added to Vlad with
Can we do something with Ansible Vault here to prevent having to store any passwords as plain text? Can more of your proposed functionality also live in the existing Pantheon CLI role? For example, the wrapper code that imports a database, and then we look at Vlad then implementing that in a more specific way (e.g. pass in existing Vlad vars such as db details)? I'm keen for more of these non-Vlad-specific features be just that, non-Vlad-specific, so that we can better abstract things and make more use of Galaxy and the community around it. It may not be practical but I think we need to aim for that first to find out for sure. |
Sorry - so as not to come across as just critical, this is a good idea for sure and something that Pantheon users will surely find useful. I'm only a minor Pantheon user at present but I'm already fighting the urge to automate a bunch of what their CLI has to offer - partly because I just can't remember all the extra commands :) |
@philipnorton42 Yep, exact plan is to drop the DB into @danbohea Thanks for the feedback! It wasn't too critical. This is what I need to get it done in a way that will work well with Vlad. Making specifically those variables part of https://github.com/hashbangcode/ansible-role-pantheon-cli is a good idea. Would I still document them here? I can look into Ansible Vault. At first glance, it seems like it's more for when you want to put passwords directly into your variable file. Since this would be user-level config, it might be a bit much to ask them to use Ansible Vault. I think, though, that they could use it without us having to make any changes. A simple explanation or example of that might be good to link to in the docs. Hmm...in terms of more commands living in |
The existing Pantheon CLI role was intended to initially just provide the tool but I always hoped that it could be fleshed out further - I just haven't had the chance to properly look into it (you beat me to it!). Providing that the additional functionality isn't Vlad-only, I see no reason why that repo can't accept PRs that extend it further, especially in terms of common use cases, time savers and just not having to remember the whole range of commands/options. Some of this conversation should probably take place over there once we've got a better handle on the what/how. |
Document them in the README of the Galaxy role. We've still got to figure out how best to connect/aggregate docs from separate Galaxy roles but it's absolutely the way to go in terms of maintaining docs for each role. |
Maybe we can link to the role docs from here. Perhaps a new top-level
|
Alright, so I am thinking more about this today. For the time being, I'm going to mostly continue how I was (and prefix those variables with If I don't do this, I'll get caught up in architecture thinking even longer and probably wind up doing nothing. I see some ways in which putting more stuff in Basically: I want to do the MVP first, to see if anyone even cares, and then refine as I get more comfortable with everything. |
Renamed variables in proposed docs. Leaving open until there is actual code written against these. |
Ah, btw, @philipnorton42, is it technically possible to set the value of |
Fair enough - I know where you're coming from in terms of "do it this way, at least it's a way, better than not happening at all". Like you say, we can always pull it apart and put it back together again in terms of architecture as a later task. Good luck! BTW, you can turn your code into threads if you sign up for Hacktoberfest before submitting any more PRs. |
@wizonesolutions Yes, I think it's possible to set the value via a condition during the ansible execution. If you get stuck then let me know and I'll try and post some code snippets :) |
Getting there! Sneak preview:
|
@wizonesolutions 👍 Awesome :) |
Also, not going to allow importing code in v1 of this. I doubt many people will use that. Even I won't; I generally have a mirror repo that I then push to Pantheon. If people ask for importing code (cloning the Pantheon repo) it wouldn't be super-hard to add, because we can find out that info via Pantheon CLI. But I just want to get something released, so I'm gonna cut that. Will finish this up tonight or Friday and submit a PR to the Vlad repo!!! (and remove the DISCUSSION tag on this one, for docs). |
Cool. Looking forward to the PR :) |
e8ba7c6
to
de132c2
Compare
This PR's ready now! Code: hashbangcode/vlad#292 |
@philipnorton42 don't forget this one :) |
@philipnorton42 @danbohea Pantheon's in — any reason you're holding off on this one? |
Sorry - been waaaay too busy. The only reasons I was holding off were:
Still very busy so can't go into to detail right now but will be sure to carve out some time this week. |
Makes sense.
|
OK, quick heads up to say that I've just renamed @wizonesolutions Would you mind updating your PR to reflect this? |
Replaced `vlad_pantheon_import_site` variables with `vlad_pantheon_import`.
@danbohea OK, how's that? On Sun, Dec 6, 2015 at 1:56 PM, Dan Bohea notifications@github.com wrote:
|
Does that make sense to you? |
Sorry, "that" meant my PR update :) I edited it.
|
LOL, yeah, that looks about right! Will merge now. |
Given that I haven't written this yet, this is obviously not merge ready. I wanted to open a PR early though and get your thoughts on the "API" for the role. Anything you see as a UX WTF that could be better? Keeping in mind it's a v1.
Checklist:
vlad_