Page 1 of 1

Use of secondary depots

Published: October 13, 2023 - 09:19
by gpoirot
Good morning,
I'm trying to set up a secondary repository, but clients aren't taking the rule.
Here is the repository configuration:

Code: Select all

[global]
repo_url=https://10.1.1.1/wapt
wapt_server=https://10.1.1.1
verify_cert=0
use_repo_rules=1
allow_remote_reboot=1
allow_remote_shutdown=1

[waptwua]
enabled=1
default_allow=1
install_delay=14
download_scheduling=7d
install_at_shutdown=1

[repo-sync]
enable_remote_repo=True
local_repo_path=C:\WAPT\
local_repo_time_for_sync_start=20:30
local_repo_time_for_sync_end=05:30
local_repo_sync_task_period=25
local_repo_limit_bandwidth=4
remote_repo_dirs=wapt,waptwua
From the client:

Code: Select all

[global]
use_hostpackages=1
max_gpo_script_wait=180
pre_shutdown_timeout=180
hiberboot_enabled=0
repo_url=https://10.1.1.1/wapt
wapt_server=https://10.1.1.1
verify_cert=0
use_repo_rules=1
allow_remote_reboot=1
allow_remote_shutdown=1

[waptwua]
enabled=1
default_allow=1
install_delay=14
download_scheduling=7d
install_at_shutdown=1
and the rule:
Name: repo
Condition: agent's IP address
value: 10.1.0.0/16
URL of the repository: https://cons/wapt
folder type: wapt/wua/wads
Other: no fallback

The repository synchronizes correctly with the server.

Do you see a configuration problem?

THANKS

Re: Use of secondary depots

Published: October 13, 2023 - 11:08 AM
by sfonteneau
I don't see any errors in your configuration; I just don't have the agent's IP address to verify that the rule matches

Re: Use of secondary depots

Published: October 13, 2023 - 4:02 PM
by gpoirot
Thank you for your reply.

Is there a way to see which repository an agent is using directly on their computer, or do we need to look at the 'repository' tab on their workstation?

Thank you.

Re: Use of secondary depots

Published: October 16, 2023 - 09:20
by gpoirot
Hello,
the agents have successfully synchronized with the secondary repositories.

Thank you.

Re: Use of secondary depots

Published: October 16, 2023 - 11:08 AM
by sfonteneau
gpoirot wrote: Oct 13, 2023 - 4:02 PM Is there a way to see which repository is being used by an agent directly on that agent, or do we have to take into account the 'repository' tab of the workstation?
The deposit tab should normally work

When you are directly on the machine you can do a:

wapt-get update -f

The command will display the repo that was contacted.

Re: Use of secondary depots

Published: October 16, 2023 - 11:12 AM
by gpoirot
One last quick question:
Can the operating system update itself using the data it hosts, or is it better to point it to the main server?

Thanks

Re: Use of secondary depots

Published: October 16, 2023 - 11:28 AM
by sfonteneau
gpoirot wrote: Oct 16, 2023 - 11:12 One last quick question:
Can the operating system update itself with the data it hosts, or is it better to point it to the main server?

Thanks
Could you clarify your question? I didn't understand

Re: Use of secondary depots

Published: October 17, 2023 - 2:40 PM
by dcardon
Hello
@Simon, I think @guillaume's question was about updating the OS and software on the machine where the secondary repository is installed.

I don't think there's any problem with pointing the secondary repository to itself for downloading its updates. The updates are done once all the packages are cached in the local agent, so it shouldn't be an issue.

Okay, I'm closing the topic.

Best regards,

Denis