Use of secondary depots

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
gpoirot
Messages: 12
Registration: Oct 09, 2023 - 4:35 p.m.

October 13, 2023 - 09:19

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 13, 2023 - 11:08

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
gpoirot
Messages: 12
Registration: Oct 09, 2023 - 4:35 p.m.

October 13, 2023 - 4:02 PM

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.
gpoirot
Messages: 12
Registration: Oct 09, 2023 - 4:35 p.m.

October 16, 2023 - 09:20

Hello,
the agents have successfully synchronized with the secondary repositories.

Thank you.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 16, 2023 - 11:08

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.
gpoirot
Messages: 12
Registration: Oct 09, 2023 - 4:35 p.m.

October 16, 2023 - 11:12

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 16, 2023 - 11:28

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
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 17, 2023 - 2:40 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked