19:07:35 #startmeeting ansible core irc meeting 19:07:35 Meeting started Tue Apr 3 19:07:35 2018 UTC. The chair is bcoca. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:07:35 Useful Commands: #action #agreed #halp #info #idea #link #topic. 19:07:35 The meeting name has been set to 'ansible_core_irc_meeting' 19:07:58 @Pilou ? 19:08:13 yes ? 19:08:40 #topic https://github.com/ansible/ansible/issues/38100 19:08:52 mostly you seem to have questions about exact formatting of the feature? 19:09:00 yes 19:09:12 fyi, i would use -t as we already use that for .. though im fine to add also the long form 19:09:35 plugin name will be optional ? 19:09:56 i would display the names 'as defined', the base config uses upper case constants but we also have a 'name/label' we are looking to use instead 19:10:10 i would say 'all plugins' if name is not defined 19:10:14 all plugins of that type 19:10:23 fine 19:10:47 * shertel waves 19:10:54 #chair Pilou shertel 19:10:54 Current chairs: Pilou bcoca shertel 19:11:03 * mattclay waves 19:11:05 Olá 19:11:06 should plugin type and name be added foreach parameter ? 19:11:12 .hello2 19:11:13 maxamillion: maxamillion 'Adam Miller' 19:11:17 #chair abadger1999 maxamillion 19:11:17 Current chairs: Pilou abadger1999 bcoca maxamillion shertel 19:11:25 mang 19:11:31 Pilou: unsure, i think a header/separator is better 19:11:37 #chair nitzmahone 19:11:37 Current chairs: Pilou abadger1999 bcoca maxamillion nitzmahone shertel 19:11:51 hi 19:12:17 something like a YAML comment ? 19:12:44 possibly, do we want the dump to always be 'yaml reusable'? 19:13:01 https://github.com/ansible/ansible/pull/37137 is somewhat related to 38100 19:13:01 current display was 'least effort', i had thought about prettying it up a bit 19:13:31 #chair snowjet alikins 19:13:31 Current chairs: Pilou abadger1999 alikins bcoca maxamillion nitzmahone shertel snowjet 19:13:50 anyone have any strong feelings about ansible-config output? 19:14:02 not really, no 19:14:37 I'm pretty impartial 19:14:48 * funzo waves 19:14:50 ansible-config output should be reusable and ansible-doc output could be not reusable ? 19:14:52 Pilou: then comments sound fine for now .. tempted to tie this into callbacks and just add new events to allow people to customize output 19:14:55 #chair funzo 19:14:55 Current chairs: Pilou abadger1999 alikins bcoca funzo maxamillion nitzmahone shertel snowjet 19:15:18 bcoca: that could be an interesting option 19:15:28 Pilou: unsure, both are done as information to user, not sure why you would need them to be reusable data formats 19:15:31 I do like the idea of enabling user modification in a maintainable way 19:16:10 both use yaml as source for the data, so 'dumping it' tends to produce yaml/yamllike output 19:17:00 i can see someone trying to create a automated front end wanting the format to be reusable, but they could also just tap the source directly to do same, i really dont have strong opinions on that, just that it be 'user readable' 19:17:03 It doesn't really seem like an event. 19:17:31 abadger1999: event in this case would work like xml's xlst parsing 19:17:55 'data atom encountered' 19:18:04 I think that would be mixing two different ideas together. 19:18:38 Look, a man fell off a building! And he was wearing red socks inside of tennis shoes ! 19:18:56 * bcoca steps back from ledge 19:19:11 #info related to https://github.com/ansible/ansible/pull/37137 19:19:11 I would like the ansible-config option we document in issue templates to produce output in a directly consumable fashion 19:19:36 alikins: ? 19:19:44 for example? 19:20:38 issue template suggests using 'ansible-config dump --only-changed' to cut and paste config 19:20:53 well, to show 'what is changed and where' 19:21:00 but that is a format you have to hand tweak to a usable format if you want to reproduce 19:21:09 ah, i see 19:21:47 you want to copy from issue and have 'reproducable env' 19:22:37 yup 19:23:15 i always meant to add a way for ansible-config to edit/update/generate configs 19:23:27 had not thought about env vars 19:23:43 that would be nice 19:24:18 +1 19:24:23 but that would probably be alternate output vs the informational one that we now have 19:24:38 cause it would not give us the 'where this was set' 19:24:43 just 'current value' 19:24:52 or use the current output as input? 19:25:01 * bcoca files under 'things to think about' 19:25:31 @alikins in any case the issue is adding plugin type to current dump/format, we can discuss config generation later 19:25:59 yep :) 19:26:00 ^ i do agree, it would be great feature for reproducing issues 19:26:35 `ansilbe-config dump ` currently shows all optoins, set or unset, what we ask people to paste in issues is --only-changed 19:26:46 yup, just answering 'anyone have any strong feelings about ansible-config output?' 19:27:28 understood, dump_config or dump_env would be good options for that .. or just callback that does 'ini/yaml config output' or k=v output for envvars? 19:28:52 to not stop Pilou with feature creap, should he just try to approximate current output for plugins ? then we can discuss and add other features output on top? 19:30:13 i'll assume silence == Yes 19:30:34 Pilou anything else you need from us before you proceed? btw, thanks for taking this off 'my list' 19:31:06 that's all 19:31:55 feel free to poke us at any point in #ansible-devel if you hit a wall or have more questions, you might just get several diff answers. .... 19:32:04 #topic https://github.com/ansible/ansible/pull/37390 19:32:07 snowjet ? 19:32:10 yep 19:32:25 did you try pinging the openstack maintainers? 19:32:37 No. 19:32:49 I figured to use this forum 19:33:01 but I can go via that route if that is the best way forward 19:33:02 well, you need 2 shipit post from them to get it approved, most of us here are no experts on openstack 19:33:24 rgr. No problem. I had them merge the shade part of the pull 19:33:30 normally it is, since there are plenty of mainainers on this category 19:33:51 if they are unresponsive, come back and we can look at it again 19:34:01 mordred: ^ 19:34:18 okay. 19:34:33 snowjet: fyi, you might want to add a 'version check' for the feature if it requires a specific version of a library 19:34:59 snowjet: mordred and shrews are present in #ansible-devel, you can try to ping them there as well. 19:35:07 I shall thanks 19:35:29 ^ mordred == emonty on github 19:35:47 shrews == Shrews ... no mistery there 19:36:15 #topic https://github.com/ansible/ansible/issues/38200 19:36:42 -1, i dont think we should adopt/merge with a specific framework, i think we should easily work with all/most of them 19:37:49 Hmm.. 19:38:04 i do like the project, i just don't think we should tie in at the Ansible level ... maybe as part of a bigger product that includes ansible 19:38:04 This does seem like a meeting topic but are any of the submitter/commenters here? 19:38:18 ^ yes, maxamillion 19:38:41 ah, from original ticket, no @resmo? 19:38:49 might be something useful to work towards in galaxy 19:38:59 ^ that i could see 19:39:52 I'm not really sure what they're asking for. 19:40:18 I think molecule and ansible work well together but that doesn't mean they should ship i nthe same tarball. 19:40:20 ticket proposes we 'include' molecule in ansible 19:40:34 agreed, that is my postiion as well 19:40:34 And if thta's not what they're asking for, then I'm not sure what it would be. 19:41:09 " I would like to propose we bring it under the Ansible umbrella," .... which could also mean, make it part of the ansible project... but I'm not sure what that is either... 19:41:27 I read that issue as a nice version of 'hey ansible, please stop pretending molecule doesnt exist' 19:41:39 that is how i read it, not sure what else they would want us to do 19:41:58 alikins: not sure what that means either, we dont do anything to 'ignore' kitchensync either .... 19:41:59 retr0h looks like the main author of molecule, though? 19:42:05 yep 19:42:21 yeah, I didn't really understand what the end goal there was but I figured I'd bring it up to the group 19:42:38 So he probably has some idea of what he wants to do and how both tools would benefit... but I'm not sure what is entailed. 19:42:42 I almost thought it would be a better topic for the testing WG to talk about but didn't want to punt without discussing here first 19:42:48 since he seems like main colaborator, i thought he was asking for us to merge the project into ansible 19:43:09 at least that is what the wording suggests to me 19:44:20 15:43] retr0h: hi, discussing your issue https://github.com/ansible/ansible/issues/38200 in ansible-meeting, can you pop in? <= in #molecule-users 19:44:46 +1 19:44:51 I probably should have done that 19:45:27 since we seem to read diff things, if he doesn't pop in next 5 mins we can table this to another day and get a better feel of what he is asking for 19:45:58 + 19:46:00 +1 even 19:46:58 just to get a preliminary count: vote in favor of option a) integrating molecule project into ansible b) moving our testing to molecule c) point at molecule in our docs as a 3rd party tool 19:47:18 a-1, b0, c+1 19:47:45 a/ -1, b/ -1, c/ +1 (hello, btw) 19:47:59 #chair jhawkesworth_ 19:47:59 Current chairs: Pilou abadger1999 alikins bcoca funzo jhawkesworth_ maxamillion nitzmahone shertel snowjet 19:48:01 * bcoca waves 19:48:08 +1 for c 19:48:09 a) -1 b) +0 c) +1 19:48:18 I don't know. 19:48:24 +1 for c, at least as a first step 19:48:38 I need to know what retr0h is thinking and why. 19:48:46 no reason not to point at some other third party testing tools, as well 19:48:48 abadger1999: agreed, this was just a 'taking the temp' 19:48:50 Also could be good to get someone like thaumos involved. 19:49:06 I could see myself supporting ansible becoming part of the ansible project. 19:49:06 also agreed 19:49:06 making some/more use of molecule seems like a reasonable goal in general. 19:49:18 I don't think putting them in the same tarball is necessary, though. 19:49:43 (c) I think I'm for but who does that work and who coordinates it? 19:49:45 can you rephrase that? cannot parse 'supporting ansible becoming part of the ansible project' 19:49:59 There's too many open questions for me to pass judgement. 19:50:08 fair 19:50:18 I wouldn't dive into any more details than that without some clarification 19:50:33 I can't rephrase really because I don't know what is being asked for. 19:50:37 was just making time to see if retr0h could join and clarify, taking temp of room on generic options 19:51:33 dont we have a 3rd party tools page already? if i can find it, i'll add molecule myself, i think that is something we can all agree on 19:51:48 definitely 19:52:02 +1 19:52:27 ok, closing topic for now, will try to reschedule once we get pong from retr0h 19:52:32 #topic open floor 19:52:53 i sneaky snuck this on the agenda https://github.com/ansible/ansible/pull/37291 if anyone has time 19:53:23 #topic https://github.com/ansible/ansible/pull/37291 19:53:47 windows line endings 19:53:54 purpose is to allow *custom* i.e. not core ansible windows modules to have windows line endings. 19:54:06 which happens when you start editing module code on a windows box 19:54:15 jhawkesworth_: its probably very infrequent, but we should not do that always, there MIGHt be a case for people using \r 19:54:25 er \r\n on purpose on unix side 19:54:49 should we check platform first? 19:55:05 jhawkesworth_: Hmm... I'm reading code... how do line endings get into the list of module names? 19:55:10 or we are assuming ps modules always run on windows side? 19:56:53 I have been assuming the psm1 (powershell module code) runs on the windows side. 19:57:30 jhawkesworth_: You probably should get nitzmahone or jborean93 to review, but for me, I'd move both the to_text() and the strip() up around https://github.com/ansible/ansible/pull/37291/files#diff-321e6923b14b571aad803d04b3308a35L808 19:57:33 abadger1999: the line endings are from the powershell modules themselves, this is 'requires' parsing 19:57:38 For now, there would be some work required to run powershell on linux, it would probably require a separate shell plugin due to the differences between powershell and pwsh 19:57:38 (So when adding to the set, rather than on use) 19:57:51 sorry jhawkesworth_ I was meant to get onto to this sooner 19:57:55 the powershell core stuff (that you can run on linux) is still pretty new and not I think something that ansible handles at all. 19:58:17 I'm also not sure why we make a new set on line 828 19:58:23 ok, so we are ok on hardcoding this for ps since we need to redo a lot of things to get it to work on 'non-windows' anyways 19:58:45 no worries I thought worth asking here as you can see from PR 1 line code change and then loads of other changes to let this exception through the code smell checks 19:58:52 jhawkesworth_: It might also make sense to build the stripping into the regex instead of a separate step but I'm not sure. 19:59:35 jhawkesworth_: also... from the looks of it, I think we could just call strip()/rstrip() on that without limiting it to \r\n. 19:59:37 thanks for the feedback abadger1999 19:59:52 I think any whitespace my cause issues elsewhere. 20:00:05 rstrip should be safe solution here 20:00:36 yes I think rstrip makes sense here 20:00:45 I'll change that 20:00:53 jborean93, abadger1999 you guys will follow up ? 20:01:26 yep 20:01:39 yeah, feel free to ping me with any questions... I just shouldn't be the final reviewer since I don't use the powershell stuff at all. 20:01:52 #topic Open Floor 20:01:53 if no fundamental objections to handling it then I'll pursue it further 20:01:55 thanks 20:02:18 alikins: do you have more details on how you would want the ansible-config usage to work ? 20:04:51 if nothing else, closing in 1min 20:05:45 bcoca: first thought is dump ini/yaml of result, possibly with comments added for clarification 20:06:59 instead of current format or in addition? 20:08:24 for whichever cmd we suggest in the issue template. could be new 20:08:40 https://github.com/ansible/ansible/pull/22461 was kind of in that vain 20:09:55 s/vain/vein 20:10:14 should not be hard to implement 20:10:37 but i would prefer env vars myself 20:11:40 mostly cause existing envvars would override your generated config 20:15:24 alikins: we can continue discussion in the config proposal, we are a bit over time right now and i need time to mull it over a bit 20:15:30 tis true existing env would override, but that seems ok to me. I'd prefer not to have to eval something from user in shell 20:16:02 good point 20:18:32 im going to close meeting, we can continue this in #ansible-devel or the proposal, just need to give it more thought 20:18:43 #endmeeting