*** KurtB has joined #ara | 02:36 | |
*** evrardjp has quit IRC | 05:33 | |
*** evrardjp has joined #ara | 05:33 | |
*** TKersten has joined #ara | 06:29 | |
*** TKersten has quit IRC | 07:12 | |
*** TKersten has joined #ara | 07:12 | |
*** eoli3n has joined #ara | 07:44 | |
eoli3n | Hi | 07:45 |
---|---|---|
eoli3n | i miss something, how to install classic web ui | 07:45 |
eoli3n | (not ara-web) | 07:46 |
eoli3n | https://github.com/ansible-community/ara#recording-playbooks-with-an-api-server | 07:46 |
eoli3n | oh ok, i think web is / and api is /api | 07:57 |
*** gvincent has joined #ara | 08:01 | |
eoli3n | https://x0.at/1Ph.txt | 08:13 |
eoli3n | when i run podman log i get "Listening at: http://0.0.0.0:8000 (1)" | 08:13 |
eoli3n | but then nc -vz on localhost 8000 gives connection refused | 08:14 |
*** tykling has quit IRC | 08:16 | |
*** gundalow has quit IRC | 08:16 | |
*** Bucciarati has quit IRC | 08:16 | |
eoli3n | ok, misconfigured ports in podman | 08:21 |
*** tykling has joined #ara | 08:22 | |
*** gundalow has joined #ara | 08:22 | |
*** Bucciarati has joined #ara | 08:22 | |
eoli3n | my ara container seems to no read ARA_ENV | 09:09 |
eoli3n | ARA_ENV is set to test in container | 09:09 |
eoli3n | problem is not here, logs says that it use the conf file /opt/ara/settings.yaml when i check that file inside container, i set for exemple SECRET_KEY | 09:14 |
eoli3n | but logs says that SECRET_KEY is not set | 09:14 |
eoli3n | https://x0.at/aRX.txt | 09:17 |
eoli3n | anybody ? | 09:18 |
eoli3n | you can see here that it reads the right file without finding SECRET_KEY but it is set ! | 09:18 |
eoli3n | https://github.com/ansible-community/ara/issues/197 | 09:28 |
eoli3n | How can i automate user creation ? | 09:50 |
eoli3n | https://x0.at/aHj.txt | 09:50 |
*** sshnaidm|off has quit IRC | 10:47 | |
*** sshnaidm has joined #ara | 11:17 | |
dmsimard | eoli3n: I'm in north america and not really awake yet, let me get back to you on that | 12:37 |
eoli3n | yep, know it when i asked it was 3am for you | 13:10 |
eoli3n | take your time | 13:10 |
eoli3n | i workaround this by user ARA_* env vars | 13:10 |
eoli3n | by using | 13:10 |
*** mgariepy has joined #ara | 13:18 | |
eoli3n | i created a specific user just for writing logs | 13:27 |
eoli3n | what perms should i set ? | 13:27 |
eoli3n | hm, i don't like how ara cli client needs to be setup | 13:48 |
eoli3n | if python upgrade, its done ? | 13:48 |
*** mgariepy has quit IRC | 14:06 | |
*** mgariepy has joined #ara | 14:06 | |
*** dbpiv has joined #ara | 14:27 | |
*** mgariepy has quit IRC | 14:39 | |
eoli3n | dmsimard i'm in holidays for more than 2 week in 1h and 20min :D | 14:40 |
eoli3n | i figure it out for perms, no automated user creation (but that's not a problem, just wondering if its possible) | 14:41 |
eoli3n | i did setup for 1 host, didn't test ansible-pull commit yet | 14:41 |
eoli3n | last thing i don't get is how to connect ara cli client to remote api serer | 14:42 |
eoli3n | server | 14:42 |
eoli3n | with authentication | 14:42 |
eoli3n | it does not seem to use [ara] in ansible.cfg | 14:43 |
dmsimard | eoli3n: for user creation you could try the django-manage ansible module: https://docs.ansible.com/ansible/latest/collections/community/general/django_manage_module.html however last I know there was this idempotency issue: https://github.com/ansible/ansible/issues/29786 | 14:53 |
dmsimard | ara cli client can be set up through env vars or in-line CLI args | 14:54 |
eoli3n | no conf file ? | 14:54 |
dmsimard | no conf file because it's neither an ansible plugin or a django thing | 14:54 |
dmsimard | personally I use a shell alias | 14:55 |
eoli3n | yes but i could embeed its own config file managment, don't you think ? | 14:55 |
eoli3n | maybe you could provide a way to tell to ara cli client to use what's in ansible.cfg | 14:56 |
*** mgariepy has joined #ara | 14:56 | |
dmsimard | 0.x actually relied on ansible.cfg to provide all the config but it also meant having an actual dependency on ansible which turned out to be problematic in a lot of cases | 14:57 |
dmsimard | i'm not against supporting a config file for the CLI, would just need to think about how to do it | 14:57 |
eoli3n | it could be great to just have the ability to enable this feature with a switch ? | 14:57 |
dmsimard | it'd be a third config file which I'm not super excited about | 14:57 |
eoli3n | "this feature" -> "read ansible.cfg" | 14:57 |
*** TKersten has quit IRC | 14:58 | |
dmsimard | maybe :) | 14:58 |
eoli3n | maybe you could mirror ansible.cfg [ara] section for the specific config file for cli client | 14:58 |
eoli3n | then you can provide a switch to let user give ansible.cfg to cli client, OR configure it the same way without ansible dep | 14:59 |
dmsimard | there are already keys in ansible.cfg for api_server/username/password so we would re-use that | 14:59 |
eoli3n | yes that's what i want to mean :) | 14:59 |
eoli3n | i open an issue for this | 14:59 |
dmsimard | sure thing | 15:01 |
dmsimard | reading through the backlog and your issue about the config file, did you end up figuring it out ? | 15:02 |
eoli3n | i didn't | 15:02 |
eoli3n | i open an issue | 15:02 |
eoli3n | opened | 15:02 |
dmsimard | I'd recommend writing your own settings.yaml instead of passing in every possible env var | 15:02 |
dmsimard | ah I see in the issue that's actually the intent | 15:03 |
dmsimard | eoli3n: in your issue the first thing that comes to mind is that ~/.ara/server is not necessarily /root/.ara/server | 15:06 |
eoli3n | yep i noticed that | 15:07 |
eoli3n | but check next commands | 15:07 |
dmsimard | the cat inside the container works yeah | 15:07 |
dmsimard | is that indentation accurate ? like is it nested under a "default" key ? | 15:07 |
eoli3n | i checked and here, ~ is /root | 15:07 |
eoli3n | i indent with 2 spaces | 15:07 |
eoli3n | but here no indent, because i use flat config | 15:08 |
eoli3n | lets paste the whole config | 15:08 |
dmsimard | can you nest it under a default key ? like this for example: https://dc5841f46de97dd25c4a-c28a3f38c638e12abf044d5a1e18f0d8.ssl.cf2.rackcdn.com/761034/10/check/ara-basic-ansible-2.8/a2ab7b9/server/settings.yaml | 15:08 |
eoli3n | actually, the first issue i get, was that i can't make ara container read test: key with ARA_ENV=test | 15:09 |
eoli3n | but lets try with default | 15:09 |
eoli3n | is that real yaml ? | 15:11 |
eoli3n | can i indent with 2 spaces ? | 15:11 |
eoli3n | i noticed that you used 4 | 15:11 |
dmsimard | it's real yaml and you should be able to use 2 spaces I guess | 15:11 |
eoli3n | like in your exemple that i just opened | 15:12 |
eoli3n | ok thanks | 15:12 |
eoli3n | it seems to work with default | 15:14 |
eoli3n | lets try to move to "test" ARA_ENV | 15:15 |
eoli3n | when i move to "test" key for ARA_ENV its broken | 15:16 |
eoli3n | [ara] No setting found for SECRET_KEY. Generating a random key... | 15:16 |
eoli3n | http://sprunge.us/LBRsGO | 15:17 |
*** TKersten has joined #ara | 15:17 | |
eoli3n | config file : http://sprunge.us/CnZrmx | 15:17 |
eoli3n | is "test" a special key ? | 15:17 |
dmsimard | not that I know of | 15:18 |
eoli3n | lets try another string | 15:18 |
eoli3n | same if i use "preprod" | 15:19 |
*** TKersten has left #ara | 15:48 | |
dmsimard | eoli3n: I don't use envs personally (just template default) but I remember it working so it's possible there was a regression that we didn't catch at some point | 16:01 |
dmsimard | the configuration backend (dynaconf) has moved a lot and has caused a few regressions so it wouldn't be the first time | 16:02 |
eoli3n | so, maybe you need to automate that test :) | 16:02 |
eoli3n | anyway, i will try with a specific conf file | 16:02 |
eoli3n | test.yml | 16:02 |
eoli3n | lets "sleep" on it for 15 days :P | 16:03 |
eoli3n | thanks for your help | 16:03 |
eoli3n | have a nice christmas | 16:03 |
dmsimard | we test a lot of things in unit/integration tests but I'm not gonna pretend we have 100% test coverage or anything | 16:03 |
dmsimard | eoli3n: bon temps des fêtes à toi :) | 16:03 |
eoli3n | (that's impossible) | 16:03 |
eoli3n | merci dmsimard ;) | 16:03 |
*** eoli3n has left #ara | 16:05 | |
*** mgariepy has quit IRC | 17:19 | |
*** ccamacho has quit IRC | 17:49 | |
*** mgariepy has joined #ara | 18:20 | |
*** dbpiv has quit IRC | 22:50 | |
*** KurtB has quit IRC | 23:38 | |
*** apollo13 has quit IRC | 23:41 | |
*** apollo13 has joined #ara | 23:41 | |
*** ccamacho has joined #ara | 23:51 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!