Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
hello @zyraxe
✪ vi4m Marcin Kliks
@vi4m
Jan Bundesmann
@knoppi
Hi, the API returns an "employee_id" when asking for a user. But where can this be set?
Dopsterinho
@Dopsterinho
Hello @knoppi : It Comes from LDAP Sync. If you create a user in Ralph, it doesnt have and Employee ID
Jan Bundesmann
@knoppi
Ok, thanks for your answer. I was wondering why you didn't allow custom fields for users too. I understand, that your focus is inventory management but I thought about using Ralph as the central source of wisdom in my setup. So, also instead of setting up my own LDAP I considered simply using Ralph for user management (Puppet would do the actual commands).
So the Employee ID is not vital but all the other fields seem rather expecting an string and this is counterintuitive for other users than me.
BTW: Is the password has usable as a Linux password hash and is it accessible using the API?
Dopsterinho
@Dopsterinho
I am not a developer at Allegro, I just managed to untangle some stuff in Ralph. I also needed additional models and functionality, which I managed with some help from here. I think you can Update the Ralph User Model with additional Fields.
COLIN GHERGHE
@zyraxe
@vi4m Hello there! Sorry for not replying earlier, I was on the road for the last two days. I will check out that example (if that was for me), I now have to figure out how to log in that page. Got it, ralph/ralph, but this is kinda like an interface way to upload a file, how do I see the code behind it?
Jan Bundesmann
@knoppi
@Dopsterinho Oh sorry, I understand. Then let's just assume the questions were ment for Ralph developers. ;-)
✪ vi4m Marcin Kliks
@vi4m
@knoppi I don’t think we limit it on purpose. Probably we didn’t need writable custom fields for „User” model so far. I need to ask @mkurek @MarekBleschke if it’s something easy to add
@zyraxe what exactly you need to do? bulk uploading - importing some data to ralph? from csv / excel?
Dopsterinho
@Dopsterinho

Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:

mitarbeiter = models.ForeignKey(

        settings.AUTH_USER_MODEL,
        blank=True,
        null=True,
        verbose_name=_('Mitarbeiter'),
        unique=True,
  )

notebook = models.OneToOneField(

        BackOfficeAsset,
        blank=False,
        default=None,
        max_length=200,
        null=False,
  )

How can I make, that the User assigned to an Asset (in My Model) is visible in the RalphUser AdditionalInfo HTML Assets ?

image.png
Dopsterinho
@Dopsterinho
If I assign the user form the BackOfficeAsset directly, it will sho up, but not if I do it from my Model...Any Ideas/Suggestions ?
Thanx in Advance !
COLIN GHERGHE
@zyraxe
@vi4m Yes, I need to import some data into Ralph. Problem is with the link you sent that it does not work properly. Another group in my company tried that and they found it not to be properly functioning. We are now contemplating writing our own scripts (in Python?) and using API calls to get the job done. Problem is, I do not know where to start with this task -- I need some sort of hello_world program to guide me on how this is done in Ralph, or some documentation. Do you have anything like that handy?
✪ vi4m Marcin Kliks
@vi4m
@zyraxe decribe first, which fields / objects you need to import
COLIN GHERGHE
@zyraxe
@vi4m The job is to import a list of servers from another system, called Flexera. I have no specs at all yet, first task is to learn Flexera and mimic the data structure from that system into Ralph. The hard part (I was warned about) is to link those servers to lease contracts -- so I guess I have to bring over the contracts and the servers too. That is all I have so far.
Dopsterinho
@Dopsterinho
image.png

Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:

mitarbeiter = models.ForeignKey(

        settings.AUTH_USER_MODEL,
        blank=True,
        null=True,
        verbose_name=_('Mitarbeiter'),
        unique=True,
  )

notebook = models.OneToOneField(

        BackOfficeAsset,
        blank=False,
        default=None,
        max_length=200,
        null=False,
  )

How can I make, that the User assigned to an Asset (in My Model) is visible in the RalphUser AdditionalInfo HTML Assets ?

✪ vi4m Marcin Kliks
@vi4m
isn’t this working already?
@Dopsterinho screenshots attached showed you have „Mitarbeiter” field
which view is „RalphUser Additional Info” ?
Dopsterinho
@Dopsterinho

Hy @vi4m :

class UserInfoView(UserInfoMixin, RalphDetailView):

icon = 'user'
name = 'user_additional_info'
label = _('Additional info')
url_name = 'user_additional_info'

It is working if I assign the user directly on the BackOfficeAsset . If I do it from My model with the "Mitarbeiter" Field, it won't Show up in additional Info.
I am Pretty sure it has something to do with the Api, or the View of RalphUser or the my Model by itself ? There is something that I am missing...A class method Maybe ? My Model is Pretty Basic...

So if the User Field from the BackofficeAsset gets populated by my "Mitarbeiter" Field Value, then the Additional_USer_Info.html, will also get populated.

✪ vi4m Marcin Kliks
@vi4m
@MarekBleschke do you know how it’s done?
@mkurek ?
robbagithub
@robbagithub
Hello. Total Noob here, I've been looking for an app to manage our DCFM data for ages. Power IQ sucked... Just wondering if Ralph handles Cable labels yet?
✪ vi4m Marcin Kliks
@vi4m
did you try demo? @robbagithub
✪ vi4m Marcin Kliks
@vi4m
Dopsterinho
@Dopsterinho

@MarekBleschke do you know how it’s done?

I think the easiest way would be to bring the User Profile Field on to my model "Mitarbeiter" Field ?
or with a classmethod something like "self.user = self.mitarbeiter" ?

Dopsterinho
@Dopsterinho

@MarekBleschke do you know how it’s done?

I think the easiest way would be to bring the User Profile Field on to my model "Mitarbeiter" Field ?
or with a classmethod something like "self.user = self.mitarbeiter" ?

But I do not know how to do that :-/

ShadowPhrogg32642342
@ShadowPhrogg32642342
Hi guys, Is there a way to manage non-rackmount datacenter machines? I tried emulating our shelf structure using blades and slots, but cannot find the option to turn something into a blade unit or blade chassis, as referred in the quickstart guide.
✪ vi4m Marcin Kliks
@vi4m
it’s certainly doable
✪ vi4m Marcin Kliks
@vi4m
if you want to have some models „enclosed” in some „parent” enclosures, you can define asset models
for example, blade systems are marked with [x] has parent field
Zrzut ekranu 2018-10-19 o 09.44.43.png
Zrzut ekranu 2018-10-19 o 09.44.33.png
just see the difference between enclosure vs chassis blade
vobo70
@vobo70
I have upgraded ubuntu 14.04.5 (apt update && apt upgrade) and Ralph stoped to work . Acctualy ralph works by run command: /opt/ralph/ralph-core/bin/ralph runserver 0.0.0.0:8000 but nobody can log on. Our colleagues left company but he made some changes to AD logon scripts. How to reset local admin password to get to the settings?
✪ vi4m Marcin Kliks
@vi4m
You mean, permission denied error?
vobo70
@vobo70
No; when I put logon name and password i get in left top corner: Wprowadź poprawne dane w polach "użytkownik" i "hasło" dla konta należącego do zespołu. Uwaga: wielkość liter może mieć znaczenie. I'm sure I put correct login and password
I also tried to restore ralph folder from backup but It doesn't work either.
✪ vi4m Marcin Kliks
@vi4m
you can reset password with /opt/ralph/ralph-core/bin/ralph changepassword <user_name>
and always you can create new superuser account with /opt/ralph/ralph-core/bin/ralph createsuperuser
i’m not sure why your settings changed after upgrade, but keep in mind to keep settings outside of /opt/ralph directory since it might get overwritten by package upgrades
that’s why environment variables(RALPH_DB_NAME etc) hold configuration, as described in installation manual
vobo70
@vobo70
Thank you very much. Change password worked for me and now I can login to ralph. Are there any plans to support upgrade to ubuntu 18.04.1?
vobo70
@vobo70
And where are settings stored by default? Becouse login by domain account does not work (When I show group list, get group 'admin' there's '-' after LDAP mapping:
✪ vi4m Marcin Kliks
@vi4m
we have plans to add support for 18.04.1 in Novemeber
settings - it entirely depends on installation (admin which installed it). ralph settings are just configuration variables from startup script, but you can check if someone changed /opt/ralph/... settings.py or settings-local.py
Dopsterinho
@Dopsterinho
Hello
Is there a possibility to add an activity Log on the Index.HTML ? Like now "my recent Actions", but something like "All Recent Actions" with possibility to search the List .
✪ vi4m Marcin Kliks
@vi4m
sounds like nifty idea @Dopsterinho but we don’t have plans to implement this by ourselves for now
might be nice starter task for new contributors, though :)