19:00:35 #startmeeting Public Core Meeting 19:00:35 Meeting started Tue Jan 3 19:00:35 2017 UTC. The chair is gundalow. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:00:35 Useful Commands: #action #agreed #halp #info #idea #link #topic. 19:00:35 The meeting name has been set to 'public_core_meeting' 19:00:54 #chair abadger1999 allanice001 bcoca jimi|ansible jtanner mattclay nitzmahone Shrews 19:00:54 Current chairs: Shrews abadger1999 allanice001 bcoca gundalow jimi|ansible jtanner mattclay nitzmahone 19:01:04 * jimi|ansible lurks 19:01:10 * allanice001 waves 19:01:15 Happy New Year everyone! 19:01:18 * mattclay waves 19:01:27 #Jan 2017 Agenda https://github.com/ansible/community/issues/148 19:01:37 welcome back all 19:01:39 yawn 19:01:52 bloop 19:01:57 mang 19:02:46 hi 19:03:47 * gundalow is just looking through the issues in https://github.com/ansible/community/issues/148 to see if any are back with us 19:04:15 #topic Ansible Automates Paris and DC 19:04:37 Ansible Automates Paris 2nd Feb 2017 19:04:53 Ansible Automates Washington, DC, 8th March 2017 19:05:19 More information and sign up at https://www.ansible.com/events 19:06:51 #topic Open Floor 19:07:01 allanice001: You got anything? 19:07:08 nothing yet 19:07:24 still need to fix my pr from last year 19:07:51 i recall bcoca and i started talking around ansible-doc bot 19:08:00 #topic 19664 Support Jinja2 in dict keys 19:08:06 #info https://github.com/ansible/ansible/pull/19664 19:08:12 bcoca: I see you added this to the agenda 19:08:48 the bot marked it needs_revision for no logical reason 19:08:58 i think it just needs to look at it again 19:09:39 oh, OK 19:09:58 ugh 19:10:01 #topic 19800 Consistent path attribute for file-related modules 19:10:01 github sucks 19:10:07 #link https://github.com/ansible/ansible/pull/19800 19:10:28 dag- dag_ You around? 19:10:42 I am 19:10:48 Just looking at https://github.com/ansible/ansible/pull/19800 19:10:58 dag-: Also see https://www.ansible.com/events :) 19:11:24 "bcoca: wrote: I've been meaning to do this for a long time, just could not get everyone to agree on which 'name' should be the default ...." 19:11:27 Hmm, Paris, I think we can do that ! :) 19:11:29 What do people think? 19:11:51 i prefer name, but fine with path 19:13:31 path makes more sense to me 19:13:34 I don't mind, as I said, the more important part is that name/path/dest would all work for the path-related item (so people don't have to remember which module supports what option) 19:13:46 * gundalow agrees that it should be consistent, and it will make it easier 19:13:53 toss-up IMO. Whichever is the default in the most existing modules is fine w/ me 19:14:11 but supporting 'dest' is something we would keep as well (to be compatible with the src/dest modules) 19:14:47 Does this include supporting `name` with src/dest modules? 19:14:49 in some cases also destfile exists (I presume to make it more clear if dest is a file) 19:15:09 ryansb: no, I didn't touch src/dest modules, I think there it is fine 19:15:19 ok, sounds good 19:15:44 does "name" or "dest" imply a file vs directory 19:15:54 name is too ambiguous 19:16:01 yes, all this conditioned to 'previous/other being aliases' 19:16:18 jtanner: do you prefer we do not add 'name' if it was not already there ? 19:16:20 I don't think it does, but that might imply one might be a better fit 19:16:26 dag-: keep it as an alias 19:16:36 jtanner: sure, but if it wasn't there to begin with ? 19:16:52 don't add it 19:16:53 now I add all three always (even if it wasn't the default) 19:16:58 ok 19:17:01 I'll fix that 19:17:07 some modules have "name" for other purposes 19:17:15 so seems a) 'path' is default namign for a module that deasl with a file/dir (except when they always haver src/dest) 19:17:32 b) modify exisiting modules to use path and make current options aliases for backwardscopmat 19:19:46 dag-: not sure we always need the 3 19:19:57 im fine with just a and b from above 19:20:19 bcoca: sure, am fixing it right now 19:25:28 bcoca: so you don't want to have me add 'dest' if it wasn't there already either ? (to be compatible with src/dst modules) 19:27:10 most of them have 'dest', only stat has always had 'path' only 19:27:10 yeah, just make it backwards compat, no need to force dest on all 19:27:25 and xattr only had 'name' 19:27:27 ok 19:31:55 https://github.com/ansible/ansible/pull/19800 19:32:00 ready_for_review 19:33:49 if tests pass, shipit 19:33:59 + version_added: 'historical'???? 19:34:20 description should point out the change 19:35:47 i see it in notes, but no one reads those 19:36:12 bcoca: A few modules have historical, such as ping, setup, file, copy, etc 19:36:25 is that going to render as "(added in historical)" in the docsite? 19:36:27 that is just wrong 19:36:49 not sure, but plenty of our doc stuff does number comparissons, must be failing silently 19:36:55 or worse ... using alpha ordering 19:37:04 going to remove those 19:38:07 http://docs.ansible.com/ansible/copy_module.html 19:38:43 version_added: historical ---> Don't print the version added under the module short_description 19:39:10 well, when used at the top level 19:39:15 erm, module level 19:39:31 we already have a threshold in sphynx config 19:39:49 No idea what it does at the option level, we don't seem to have used that 19:39:50 either dont specify version or keep original 19:39:57 yeah. lets not do this 19:40:10 i think the linter is probably balking if he doesn't add something 19:40:13 And currently we are not validating version_added in validate-modules (post repo merge it needs work) 19:40:20 ah 19:40:32 it's on my list to fix 19:40:42 maybe dag- was properly trained =) 19:41:19 going to ignore the modules, but lets really not add it to options (or any new modules) 19:48:17 * gundalow -> afk, added something else to the agenda 19:48:27 Can someone else #topic and chair, thanks 19:54:40 #topic Ansible 2.0 no longer finds modules in library subdirectories https://github.com/ansible/ansible/issues/15432 19:55:18 dag-: i know its redundant, but i can bet even with the change mentioned in 3 places ...we'll still get people/tickets complainign about it not working in 1.9 19:56:07 So this one has been around for a while... from the comments it looks like an undocumented behaviour in 1.9. 19:56:38 Do we want to reinstitute it, document that it doesn't work (and the workaround of multiple paths in ANSIBLE_LIBRARY_PATH) or something else? 19:56:44 bcoca, jimi|ansible ^ 19:57:04 is there a reason not to have it? 19:57:16 i remember MPD not wanting that to work, i really dont think we shoudl encourage the packing of roles/plays with soo many custom plugins that they need this 19:57:49 I was told to use "version_added: historical" so the tests would not fail, but I removed it by request from bcoca 19:58:19 yeah, tests are wrong if they look for that 19:58:31 ^ mattclay was this your req? 19:58:55 abadger1999: i'm fine with fixing it to look in subdirs, however possibly only with modules 19:59:05 i don't think that historically worked with other plugin dirs 19:59:21 i'm okay with it for modules 19:59:23 he, 1.9 had issues with most plugins not working at all 19:59:43 No, I didn't request using that. 19:59:45 the issue is that you are mofidfying the plugin loader ... people will also want it for other plugins 19:59:56 dag-: so yeah, remove 20:00:05 side question, are we going to flatten the modules dir? 20:00:22 and rely on meta for topic/subtopic/tags/etc 20:02:43 I personally never had a reason to have sub-directories in filter plugins, but have for library 20:03:03 I realize that is just personal experience 20:03:03 jtanner: I don't think so... we have talked about reorganizing it (pure alpha was the suggestion) after/if we add categories to metadata. 20:03:21 The last update on the module dir structure was here: https://github.com/ansible/proposals/issues/46#issuecomment-268340325 20:07:44 Okay, so it sounds like we are okay with making this a feature for modules. 20:08:08 However implementation could be a bit tricky as it goes through PluginLoader 20:08:24 so doing just modules would require more invasive changes. 20:08:58 options: special case modules, split ModuleLoader from PluginLoader, allow all plugins to have subdirs. 20:09:08 are there pros and cons to each of those? 20:10:21 there is proposal to flatten the dirs 20:10:40 abadger1999: -1 to this feature, specially if our own modules will stop using it 20:12:20 bcoca: -1 to what? I'm still talking about #topic (library subdirs) 20:12:24 yep 20:12:27 k 20:12:37 bcoca: so what's the rationale against? 20:12:53 99.99% of users dont use that, it adds complexity and hides isssues from matcing names 20:13:09 library/c1/myplugin libarary/c2/myplugin 20:13:29 not a feature we need, nor think we should support 20:13:44 if you have that many custom modules, you should set standard location and library path 20:13:56 Although ANSIBLE_LIBRARY_PATH=library/c1:library/c2 has the same issue. 20:14:17 agreed, but at least there you clarify priority 20:14:23 20:14:30 next will be .. plugin_loader sorting controls 20:15:27 So from alpha -> 1.9, did anyone ask for sorting controls or filter_plugin functionality? 20:16:19 If the answer is no, and the response is many to that PR. I think that answers the question 20:16:24 but I'm a bit biased ) 20:16:27 :) 20:22:42 Okay.. so proposals: (1) Add subdirectory support to all Plugins (2) add subdirectory support to just modules (have to work out how to code this) (3) Do not add subdirectory support, document multiple ANSIBLE_LIBRARY_PATH paths with rationale that hten the user can control conflicts and sorting. 20:23:41 How do we want to proceed? 20:23:52 Discuss and vote next week? 20:24:19 i vote #2 20:24:23 #3 20:25:02 #2 might allow for tricks like a library dir with git submodules for a scaled out organization 20:25:17 you are proving my point 20:25:31 one mans trash? 20:25:42 is other ones herpes 20:26:19 i'll alert the cdc 20:26:56 they know, congress just does not allow them to do anything about it 20:30:27 k. I'll summarize this discussion and we can talk more about it next week :-) 20:30:39 #topic Open Floor 20:30:46 Anyone have anything they want to bring up? 20:30:54 Otherwise I'll close the meeting out 20:41:32 #endmeeting