Page 1 of 1
Many questions regarding multi-deposit.
Published: Dec 9, 2015 - 4:48 PM
by Mael
Hello!
I'm currently doing an internship at a company, and I've been given the project of setting up WAPT.
I have the server and the main repository running on Ubuntu.
However, I'm encountering some issues and have some questions.
Is it possible to set up several different repositories on the same server? And if so, how?
Can I display only the contents of one repository on the localhost:8088/list page in the case of multiple repositories?
Is it possible to hide package groups from the localhost:8088/list page?
Sincerely, Maël.
Re: Numerous questions regarding multi-deposit.
Published: Dec 10, 2015 - 09:29
by sfonteneau
Good morning
Mael wrote:
Hello!
I'm currently doing an internship at a company, and I've been given the project of setting up WAPT.
I have the server and the main repository running on Ubuntu.
However, I'm encountering some problems and have some questions.
Is it possible to set up several different repositories on the same server? And if so, how?
Yes, it's possible; I've already done it for a rather specific case. It all depends on what you want to do.
You can create a new folder in /var/www/wapt2/
You can store the packages in /var/www/wapt2/
And regenerate the package file with:
/usr/bin/python /opt/wapt/wapt-scanpackages.py /var/www/wapt2/
Your second repository on the same server will therefore be:
http://wapt/wapt2/
But can you explain what you want to do?
mael wrote:
Can we display only the contents of one repository on the localhost:8088/list page in the case of a multi-repository?
Not to my knowledge, to be verified
mael wrote:
Is it possible to hide the package groups on the localhost:8088/list page?
Not to my knowledge, to be verified
Re: Numerous questions regarding multi-deposit.
Published: Dec 10, 2015 - 09:58
by Mael
Thank you for your response.
My goal is this: when non-administrator users on localhost:8088/list view the list of packages available for installation, they don't see the "common" section available to all users, but only package groups specific to each department. For example, the accounting department would have access to a different package list than the human resources department. And these two departments wouldn't see the common package list.
Currently, I've only found one solution: to create a shortcut (via GPO) to the URL of a separate package group for each department. The user then has access to the relevant package list without seeing "too many" packages. However, the interface currently doesn't indicate whether the packages are installed or not.
Re: Numerous questions regarding multi-deposit.
Published: Dec 10, 2015 - 5:58 PM
by sfonteneau
I don't think that's possible.
So, in my opinion (and it's just my opinion), with a little tinkering:
You would need to create a custom intranet with
http://soft.mycompany.fr/accounting and
http://soft.mycompany.fr/administrative . You could display the desired page depending on the user.
You could retrieve the status of already installed software with:
http://127.0.0.1:8088/status
. You could then create a page with the different software you want, and the installed link would point to:
http://127.0.0.1:8088/install?package=smp-google-chrome
. Note that even with this solution, all users who are members of the "waptselfservice" group could install any software with a little searching. There's no user distinction for a given software.
If this option really interests you, you would need to contact the company tranquil.it and fund the development of this feature.
Or, you can develop this missing function using the WAPT source code available here:
https://github.com/tranquilit/WAPT