holmanb | @blackboxsw: looks like it was added with caplog in pytest 3.3.0 (late 2017) | 00:10 |
---|---|---|
blackboxsw | well I've not caught up with 5 years ago... let's keep the good feelings coming :) | 01:31 |
slingamn | i'm having trouble finding a list of the python versions supported by cloud-init | 09:53 |
alocer | ls | 13:53 |
alocer | :D opps | 13:53 |
falcojr | slingamn: cloud-init supports python 3.6+. It is mentioned on the contributing page, but it should definitely be more prominent | 13:57 |
jw4 | is cloud-init appropriate for configuring user-specific things (configuring profile, installing user-local tools, etc)? It seems to run arbitrary commands as a user I have to use runcmd and sudo -u <username> <cmd> | 17:14 |
holmanb | jw4: it depends exactly what you are looking for, but besides runcmd and write_files/scripts_user and the distro-specific package modules, there are also the CI modules [salt/puppet/chef] which might provide the flexibility you are looking for | 18:19 |
holmanb | I've been considering a adding a potential ansible module at some point, since I have a bit of experience with that flavour of CI | 18:20 |
jw4 | thanks @holmanb - I didn't know about scripts_user - looking now; otherwise ansible might be nice | 18:20 |
jw4 | Is there an example of how to use script_users? Do the scripts run as user rather than root? | 18:24 |
jw4 | s/script_users/scripts_user/ | 18:24 |
holmanb | jw4: docs on the scripts_user docs are pretty sparse, and honestly I haven't used it so I would have to dig at it a bit, sorry | 18:33 |
jw4 | no worries... thanks for the suggestions! | 18:33 |
holmanb | of course | 18:34 |
slingamn | falcojr: so actually the only reference i could find in CONTRIBUTING.md that seemed relevant was this: "only function annotations or comment annotations are supported, as the variable annotations specified in PEP-526 were introduced in Python 3.6" | 18:57 |
slingamn | which suggested to me that a version earlier than 3.6 is still supported, hence it not being possible to use variable annotations | 18:57 |
falcojr | slingamn: thanks, you're right. I'll get that updated | 18:59 |
slingamn | <3 | 18:59 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!