Wolfgang Bumiller
29181c7a0e
use workspace dependencies
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-03-07 12:44:15 +01:00
Lukas Wagner
c7c3940718
initialize logging when shared library is loaded
...
This commit sets up logging by hooking into module loading/bootstraping
process to call a new `init` function exported by the `Proxmox::Lib::{PVE,PMG}`
module, which initializes `env_logger` with its default settings.
This allows us to use `log::*` macros from Rust code.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-03-07 12:02:02 +01:00
Fabian Grünbichler
f6b244dfb3
update to nix 0.26
...
and proxmox-sys using it
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-05 13:16:26 +01:00
Wolfgang Bumiller
8126db8a17
drop comment about running tests during build
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:45:58 +01:00
Wolfgang Bumiller
13e3d8b87e
pve: build test stub of Proxmox::Lib::PVE for tests
...
this replaces the libdirs() sub with one containing:
- ../target (for when run from build/pve-rs)
- ../../target (for when run from toplevel/pve-rs
This way we can run 'make check' both from within `pve-rs`
as well as from the package building process.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:42:18 +01:00
Wolfgang Bumiller
08eba82025
package template: introduce libdirs() method
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:25:21 +01:00
Wolfgang Bumiller
6583f4d840
buildsys: generate .pm files in packages
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:22:34 +01:00
Wolfgang Bumiller
6b2814d612
buildsys: generate Proxmox::Lib within the product Makefiles
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:13:59 +01:00
Wolfgang Bumiller
807651bc7b
buildsys: include defines.mk in pve-rs and pmg-rs
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:06:47 +01:00
Wolfgang Bumiller
3c86999734
buildsys: move package_template to defines.mk
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:05:50 +01:00
Wolfgang Bumiller
b5ca6876d3
buildsys: drop PERLMOD_PRODUCT variable
...
it's not used anymore
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:05:11 +01:00
Wolfgang Bumiller
d00aa7f091
pve-rs: bump to 0.7.3
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 11:14:14 +01:00
Wolfgang Bumiller
03e4522da3
pve: bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 11:11:27 +01:00
Wolfgang Bumiller
221be779c4
use Test::More for resource_scheduling tests
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 11:10:32 +01:00
Fiona Ebner
79552120c6
add basic test for resource scheduling
...
currently only used to test the installed version and not
automatically during build. See the FIXME note for why.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-11 14:19:02 +01:00
Fiona Ebner
887c0e2074
pve-rs: add resource scheduling module
...
backed by the proxmox-resource-scheduling crate.
Initially to be used by the HA manager to allow it basing its decision
where to start a new or recovered service on static usage information
rather than just counting.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-11 14:18:58 +01:00
Fabian Grünbichler
9488180f9e
pmg-rs: bump to 0.6.2
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 12:06:33 +02:00
Fabian Grünbichler
8e9e521865
pve-rs: bump to 0.7.2
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 12:06:05 +02:00
Fabian Grünbichler
8e7330c474
common: bump to 0.2.1
...
and update versioned depends/breaks
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 12:05:37 +02:00
Fabian Grünbichler
156f3d7727
update to proxmox-subscription 0.3
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 10:25:12 +02:00
Fabian Grünbichler
95b9307776
update to proxmox-http 0.7
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 10:25:12 +02:00
Wolfgang Bumiller
db85dc1b7a
common: add versioned Breaks
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-08-17 13:13:47 +02:00
Fabian Grünbichler
39c29ee9a4
bump proxmox-sys dependency to 0.4
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-08-02 14:42:50 +02:00
Wolfgang Bumiller
4cc6259a60
bump pmg-rs to 0.6.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-25 13:46:35 +02:00
Wolfgang Bumiller
c978d1384b
bump pve-rs to 0.7.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-25 13:46:20 +02:00
Wolfgang Bumiller
ed3bbe6425
bump proxmox-tfa to 2.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-25 13:45:00 +02:00
Thomas Lamprecht
f337b67f4c
buildsys: fix common upload target interpretation
...
FWICT there's no way to escape the comma directly, so use a
intermediate variable to pass the correct value to the call
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-07-25 11:43:42 +02:00
Wolfgang Bumiller
301bfb5b9a
bump common to 0.2.0
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 15:01:47 +02:00
Wolfgang Bumiller
75796e3275
common: depend on next pve-rs/pmg-rs bump
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 15:01:20 +02:00
Wolfgang Bumiller
9c11a1bea6
bump pmg-rs to 0.6.0
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 15:00:27 +02:00
Wolfgang Bumiller
d60b0a3ca3
bump pve-rs to 0.7.0
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 15:00:27 +02:00
Wolfgang Bumiller
54d694bbaf
pmg: bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 15:00:27 +02:00
Wolfgang Bumiller
73b295e8c2
pve: bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 15:00:27 +02:00
Wolfgang Bumiller
719c66bf04
bump proxmox-http to 0.6.4
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 14:59:07 +02:00
Wolfgang Bumiller
818886ee45
bump proxmox-apt to 0.9 and proxmox-subscription to 0.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-21 14:54:45 +02:00
Fabian Grünbichler
31a1c78845
common: adapt to changes in proxmox_subscription
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-07-21 14:44:12 +02:00
Fabian Grünbichler
95e5e59fd0
cargo fmt
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-07-21 13:33:37 +02:00
Fabian Grünbichler
03bba92a8b
adapt to proxmox-apt changes
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-07-21 13:00:53 +02:00
Fabian Grünbichler
8d143f8f9e
common: add proxmox_subscription wrapper
...
and expose it for PVE and PMG.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-07-21 12:55:20 +02:00
Wolfgang Bumiller
8fe90d189c
buildsys: add common-upload target
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-08 14:54:22 +02:00
Wolfgang Bumiller
c078098160
bump common version to 0.1.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-08 14:50:46 +02:00
Wolfgang Bumiller
2ae629ac44
bump pve-rs to 0.6.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-08 14:49:47 +02:00
Wolfgang Bumiller
059d216e12
bump pmg-rs to 0.5.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-08 14:49:41 +02:00
Wolfgang Bumiller
a50a2191e8
common: depend on next pmg/pve bump
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-08 14:48:11 +02:00
Fabian Ebner
f386660b4b
move apt repositories module to common
...
while introducing a 'product' parameter to the relevant functions and
adding wrappers for backwards-compatibility.
Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-07-08 14:29:54 +02:00
Wolfgang Bumiller
c3982c55b8
common: fix base for PMG
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-06 12:34:41 +02:00
Thomas Lamprecht
b2a4623ac7
d/control: update build-dep for nix rs dependency to 0.24
...
was missed in commit b67ff27d9e
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-06-20 10:33:13 +02:00
Thomas Lamprecht
3db78c95c3
buildsys: remove common-deb flag file too on clean
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-06-20 10:21:19 +02:00
Thomas Lamprecht
0ddf4db934
common: bump version to 0.1.1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-06-20 10:21:19 +02:00
Fabian Grünbichler
b67ff27d9e
update to nix 0.24
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:23:07 +02:00