Commit Graph

34 Commits

Author SHA1 Message Date
Maximiliano Sandoval
d76c2b0f9e fix typos in comments
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-07-22 18:28:18 +02:00
Lorenz Stechauner
9c54c52d79 api: aplinfo: rename REs for iso and vztmpl extensions
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
2024-06-27 15:07:23 +02:00
Thomas Lamprecht
33b0c265ef appliance index: use upper case for constant like variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-28 14:28:09 +01:00
Thomas Lamprecht
c6611893f6 appliance index: warn if log rotation fails
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-28 14:27:19 +01:00
Fiona Ebner
11064d3263 appliance index: fix precedence in size check for log rotation
In Perl, > takes precedence over ||, see perldoc perlop, so currently
the check will trigger with any size.

Fixes: 805cae93 ("appliance index: rotate update log if bigger than 256 KiB")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-02-28 14:23:26 +01:00
Thomas Lamprecht
805cae93fd appliance index: rotate update log if bigger than 256 KiB
50 KiB is really tiny and while this log file is not _that_ important,
spending a few KiB more to keep much older logs around is almost
always a win-win situation, now that root storage size is rather some
hundred GB in most setups.

Drop the unused size variable while touching this, which was the
actual thing that made me look closer here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-20 13:40:41 +01:00
Thomas Lamprecht
63c8b37122 appliances: switch over to Proxmox VE 8 index
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Thomas Lamprecht
295d8c4351 apl info: trailing whitespace cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 06:53:28 +02:00
Thomas Lamprecht
13856b9590 aplinfo: switch over to new index
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-06 12:32:46 +02:00
Lorenz Stechauner
81579be0ac aplinfo: factoring out regex for vztmpl
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
2021-06-28 19:16:03 +02:00
Thomas Lamprecht
a0b5652e9b aplinfo: use aplinfo signed with 6.x release key
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-19 19:19:07 +02:00
Thomas Lamprecht
8e96e296b8 aplinfo: re-work and allow different filenames per apl source
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-19 19:19:07 +02:00
Thomas Lamprecht
53b083d57c aplinfo: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-19 19:19:07 +02:00
Thomas Lamprecht
7618913027 perl: fix some common typos found with codespell
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-15 10:40:20 +02:00
Thomas Lamprecht
180a86d39a pvecfg: adapt version and release semantic
Wit commit a74ba607d4 we switched over
to using the dpkg-dev provided helpers to set package version,
architecture and such in the buildsystem.

But unlike other repositories we used the version also for giving it
back over the API through the during build generated PVE::pvecfg
module, which wasn't fully updated to the new style.

This patch does that, and also cleans up semantics a bit, the
following two changed:

release is now the Debian release, instead of the "package release"
(i.e., the -X part of a full package version).
version is now simply the full (pve-manager) version, e.g., 6.0-1 or
the currently for testing used 6.0-0+1

This allows to do everything we used this information for even in a
slightly easier way (no  string concat needed anymore), and fits also
with the terminology we often used in our public channels (mailing
lists, forum, website)

Remove some cruft as we touch things.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-26 16:11:43 +02:00
Dietmar Maurer
07e5f4f776 PVE/APLInfo.pm - use correct version for user agent 2017-06-29 08:07:11 +02:00
Dietmar Maurer
8a0cae0e35 PVE/APLInfo.pm: avoid locale specific time stamps 2017-04-24 07:24:12 +02:00
Fabian Grünbichler
609801c560 aplinfo: use warnings 2016-08-24 10:10:07 +02:00
Fabian Grünbichler
36b9245739 aplinfo: remove leftover cruft
this was probably missed in a previous refactoring, the
filehandle is only opened and closed here and read_aplinfo()
already opens and closes the file itself.
2016-08-24 09:57:18 +02:00
Fabian Grünbichler
868801cb22 aplinfo: improve signature verification
instead of importing the trusted gpg keys into root's
.gnupg on each appliance list update, install a trusted
keyring generated at build time.

verify signatures with gpgv and the trusted keyring instead
of gpg --verify on root's keyring with output parsing.
2016-08-24 09:56:38 +02:00
Fabian Grünbichler
c351eda952 aplinfo: replace system() with run_command/rename 2016-08-24 09:48:15 +02:00
Wolfgang Link
06399fd71a change turnkey URL to https version to permit a redirection. 2016-02-26 11:30:06 +01:00
Dietmar Maurer
f494187fb6 do not use Net::SSL
seems IO::Socket::SSL can now connect to proxy
2016-02-26 11:29:00 +01:00
Wolfgang Link
d5a62d20da Fix problems with turnkey repository.
To prevent that one time Net:SSL and an outer time IO::Socket::SSL is loaded,
ensure that always use the same socket class.

We load the the Net:SSL in AccessControl.pm if we call pveupdate,
but if we call pveam update this module is not loaded an so the default is used (IO::Socket::SSL).
2016-02-18 06:34:41 +01:00
Wolfgang Bumiller
49ee2d1ae8 APLInfo: support proxying http traffic
As requested in ticket #838, to support running `pveam
update` from within a proxied environment.

Closes #838
2016-01-22 11:24:23 +01:00
Dietmar Maurer
f6b20cf988 aplinfo: allow version without -\d+ endings 2015-08-29 12:33:14 +02:00
Dietmar Maurer
7a07d675f1 APLInfo: support relative locations 2015-07-02 11:58:24 +02:00
Dietmar Maurer
4886fe07c6 APLInfo: set default location 2015-07-02 11:24:21 +02:00
Dietmar Maurer
648af5ab22 aplinfo: changed directory for lxc images 2015-07-01 13:47:56 +02:00
Dietmar Maurer
07c1e6b046 read_aplinfo_from_fh: use architecture to generate default file names 2015-07-01 07:44:32 +02:00
Dietmar Maurer
6de794eb71 APLInfo: split out code into read_aplinfo_from_fh
So that we can call the parser for any $fh. Add new type 'lxc'.
2015-06-30 13:43:59 +02:00
Dietmar Maurer
75a6a7f545 download aplinfo inh postinst script 2012-02-21 12:15:10 +01:00
Dietmar Maurer
c916497537 implement template download
Also added turnkeylinux.com
2012-02-21 11:45:30 +01:00
Dietmar Maurer
beb651ee65 removed automake/autoconf, removed unused files 2011-08-23 16:11:04 +02:00