Hello,
what is your strategy for updating WAPT packages across your network?
I'm aiming for a monthly update with a pre-deployment in a small environment with a few workstations (maturity STAGING) followed by a large-scale deployment a few days later (maturity PROD).
Each month, I have to check each package to see if an update exists and, if so, deploy it. Over time, the number of packages increases, and the time required increases accordingly. Fortunately, most packages have an `update_package` function that allows for quick repackaging. However, finding the packages to update is a manual operation (consulting the developers'/distributors' websites).
After that, all the packages have to be modified again to rebuild them in the PROD environment.
Do you have any tips for speeding up the deployment of updates to your workstations?
Personally, I've thought of two things that could help, but they require changes to WAPT.
The first improvement would be to add an `update_check` function to packages, which would return `true` if updates are available upstream. This function could query a website, much like the `update_package` function. A way to display this information in the WAPT console would need to be found. This would automate the search for packages to update.
The second improvement would be the ability to rebuild a package with a single click in the console to transfer it to the production environment. Ideally, I could select multiple packages at once and let them rebuild automatically.
Thank you!
Package update strategy
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
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Hello,
we already have an internal method for this (managed outside of WAPT).
This script retrieves the latest software versions from the publishers' official websites.
If the software version has changed since the last check, the script also triggers a Jenkins build of the associated package, executes the update_package for that package, and then uploads it to a temporary server (sending us a notification in the process).
From this point on, human intervention begins; the user must verify and test the package. If everything is correct, then the package can be deployed to production.
As a bonus, the script sends a notification to a Twitter account
: https://twitter.com/patchmanagement
we already have an internal method for this (managed outside of WAPT).
This script retrieves the latest software versions from the publishers' official websites.
If the software version has changed since the last check, the script also triggers a Jenkins build of the associated package, executes the update_package for that package, and then uploads it to a temporary server (sending us a notification in the process).
From this point on, human intervention begins; the user must verify and test the package. If everything is correct, then the package can be deployed to production.
As a bonus, the script sends a notification to a Twitter account
: https://twitter.com/patchmanagement
Interesting. Build automation is something I'd also like to implement someday. We usually use GitLab CI here, but I suppose I could do something similar. Is your build server on Windows or Linux?
I'll probably start with a notification script and then, when time allows, move on to build automation.
I'll probably start with a notification script and then, when time allows, move on to build automation.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
We have a Gitea that manages package recipes.
The Gitea has one repository per package (the repository does not host binaries).
Each repository has a Jenkinsfile that defines what Jenkins should do. (The Jenkinsfile is still present in our public packages.)
When we run a build on Jenkins, Jenkins clones the repository and executes the Jenkinsfile on a Windows Jenkins slave.
So our Jenkins server is on Linux, but its slave is on Windows.
The Gitea has one repository per package (the repository does not host binaries).
Each repository has a Jenkinsfile that defines what Jenkins should do. (The Jenkinsfile is still present in our public packages.)
When we run a build on Jenkins, Jenkins clones the repository and executes the Jenkinsfile on a Windows Jenkins slave.
So our Jenkins server is on Linux, but its slave is on Windows.
Hello,
is it possible to add this function to WAPT?
I'm subscribed to the Ants' Twitter and newsletter (I'm no longer receiving emails, by the way). Implementing a tool like this in WAPT would really save time, as going through each package to update and then upload it takes a long time.
is it possible to add this function to WAPT?
I'm subscribed to the Ants' Twitter and newsletter (I'm no longer receiving emails, by the way). Implementing a tool like this in WAPT would really save time, as going through each package to update and then upload it takes a long time.
- WAPT 2.2.3.12463 Enterprise
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
We are entering a phase of continuous integration.
At worst, we can document this work so that it can be reproduced for you, but without going any further.
I can see that you registered this morning at 09:25
I can help you set that up. To do so, you will first need:
- A Jenkins
- A Gitea
- A Windows Slave
