Page 1 of 1
creation of the agent and multi-repository package
Published: November 29, 2016 - 09:47
by cdeze
Hello,
when I create an agent via the console, the setup file does not include the "repositories" and "repo_url" parameters.
These parameters are indeed in the c:\wapt\wapt-get.ini file on the server:
repositories=local,central
[local]
repo_url=
http://server/wapt
[central]
repo_url=
http://wapt2......../wapt
Re: Creating the agent package and multi-repository
Published: November 29, 2016 - 1:12 PM
by sfonteneau
You have two options: create a package to apply it
Code: Select all
def install():
inifile_writestring(WAPT.config_filename,'global','repositories','repo1,repo2,repo3')
inifile_writestring(WAPT.config_filename,'repo1','repo_url','https://wapt1/wapt')
inifile_writestring(WAPT.config_filename,'repo2','repo_url','https://wapt2/wapt')
inifile_writestring(WAPT.config_filename,'repo3','repo_url','https://wapt3/wapt')
Alternatively, modify the c:\wapt\waptsetup\waptsetup.iss file and in the [INI] section, add the following:
Code: Select all
Filename: {app}\wapt-get.ini; Section: repo1; Key: repo_url; String: "https://wapt1/wapt";
Filename: {app}\wapt-get.ini; Section: repo2; Key: repo_url; String: "https://wapt2/wapt";
Filename: {app}\wapt-get.ini; Section: repo3; Key: repo_url; String: "https://wapt3/wapt";
Filename: {app}\wapt-get.ini; Section: global; Key: repositories; String: "repo1,repo2,repo3";
Then restart the agent creation process
It should work
Re: Creating the agent package and multi-repository
Published: November 29, 2016 - 1:48 PM
by cdeze
Great, thanks!