These are chat archives for allegro/ralph

4th
May 2017
Tristan Le Toullec
@tristanlt
May 04 2017 10:22
Hi all, and first point, thanks for Ralph. I've a simple problem. I want to execute a custom python script in order to make our migration from GLPI. How to execute a custom script which manipulate models ?
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 10:40
And the you can type ralph shell, and use execfile("yourscript.py") in it
Jim Ntosas
@purplexss
May 04 2017 12:18
with clean install i get the following error when i try to add my first host
[04/May/2017 14:17:22] "GET /jsi18n/ HTTP/1.1" 200 2344
Forbidden (Permission denied): /data_center/dchost/add/
[04/May/2017 14:17:23] "GET /data_center/dchost/add/ HTTP/1.1" 403 22
like missing /favicon.ico
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:29
super user account ?
Jim Ntosas
@purplexss
May 04 2017 12:30
ofc
when running "ralph runserver"
where are the files that are being deployed ?
in which folder ?
maybe a problem with permissions on 1st thought
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:32
could you try ralph runserver_plus 0.0.0.0:8000 ?
if it comes with the same error
Jim Ntosas
@purplexss
May 04 2017 12:32
yeap
Unknown command: "runserver_plus"
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:34
what was your installation method, then?
Jim Ntosas
@purplexss
May 04 2017 12:34
debian 8 --> install dependencies --> export .profile --> add repo --> install from .deb package
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:36
also, do you have dev_ralph command ?
Jim Ntosas
@purplexss
May 04 2017 12:36
yeap
but it comes with this error: ImportError: No module named 'debug_toolbar'
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:37
oh, so don't bother with this dev_ command - it's only for development, not end users
Jim Ntosas
@purplexss
May 04 2017 12:37
okei
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:38
how did you add this user account?
Jim Ntosas
@purplexss
May 04 2017 12:39
ralph createsuperuser
alla comands run under root in debian
no sudo, just pure root
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:40
can you paste screen of this image (from the browser?)
Jim Ntosas
@purplexss
May 04 2017 12:40
ofc
Selection_013.png
Selection_012.png
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:53
what about other objects? can you add anything else?
or enter settings -> permissions ?
Jim Ntosas
@purplexss
May 04 2017 12:54
no permissions tab @ settings
hmmm
my user got no permissions at all as i can see from users tab
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:55
ok, so here's the story:
youre'trying to add something which is not exposed in the GUI, we don't offer adding dchost
so you want to add something more specific, such as Data center asset
just use Menu for it
and we should remove / fix this yellow box
so just use Menu -> Datacenter -> Hardware -> Add
Jim Ntosas
@purplexss
May 04 2017 12:58
hmm okei!
i ll try it out
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 12:58
ok!
what are you going to add to ralph? some servers / switches ?
Jim Ntosas
@purplexss
May 04 2017 12:59
i ll contribute systemd service conf and ansible role for ubuntu/debian as soon as i finish deployment :)
yes, servers, switches, back office
we found it cool and trying it out, after a week or two of testing maybe we deploy it as production asset and dc management
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 13:01
great news ! :clap:
Jim Ntosas
@purplexss
May 04 2017 13:02
now going to make and ldap sync try, as soon as i got news i can get you feedback as well as some donation (needs manager approve :P)
Jim Ntosas
@purplexss
May 04 2017 13:09
thanks a lot for your help !
✪ vi4m Marcin Kliks
@vi4m
May 04 2017 15:41
oh man, our bintray packages got stuck :-(
Zrzut ekranu 2017-05-04 o 17.41.03.png