90488fcebc
use -e
2021-09-14 22:27:42 +03:00
0f6e48dbc6
use $__object/tempfile in target instead of mktemp, add comments
2021-09-14 22:24:26 +03:00
d7fdc8006f
allow empty file
2021-09-14 21:54:45 +03:00
fcd730f905
Merge branch 'master' into ander/__sed
2021-09-14 21:52:12 +03:00
Darko Poljak
b8eb6e984c
++changelog
2021-08-24 20:48:14 +02:00
b762ea0233
Merge branch 'feature/explorer/machine_type/rewrite' into 'master'
...
explorer/machine type: Rewrite
See merge request ungleich-public/cdist!1010
2021-08-24 20:46:28 +02:00
Darko Poljak
44741e714b
Release 6.9.8
2021-08-24 20:33:17 +02:00
Darko Poljak
0546283d0e
Update shellcheck disable
2021-08-24 20:33:17 +02:00
Darko Poljak
46ed48d546
++changelog
2021-08-24 08:09:47 +02:00
c683bce66e
Merge branch 'ander/os_version_debian_sid' into 'master'
...
[explorer/os_version] add new debian code names: bookworm and trixie
See merge request ungleich-public/cdist!1019
2021-08-24 08:08:59 +02:00
e1e1348998
[explorer/os_version] use 99.99 as fallback for unknown code names in */sid
2021-08-23 10:47:21 +03:00
67f85546ec
[explorer/os_version] add new debian code names: bookworm and trixie
2021-08-23 10:09:41 +03:00
Dennis Camera
05c2a62191
[explorer/machine_type] Implement chroot detection using /proc/.../mountinfo
2021-08-05 13:52:51 +02:00
Dennis Camera
5af1317c29
[explorer/machine_type] Try to detect chroot path
2021-08-05 13:52:51 +02:00
Dennis Camera
4a05669765
[explorer/machine_type] Implement chroot detection
2021-08-05 13:52:51 +02:00
Dennis Camera
23fbfaf035
[explorer/machine_type] Use systemd-detect-virt (if available) to detect containers and VMs
2021-08-05 13:52:51 +02:00
Dennis Camera
2ffa895f57
[explorer/machine_type] Remove CPUID check
...
it's a lot of code and depends on a binary helper unlikely to be installed.
2021-08-05 13:52:51 +02:00
Dennis Camera
abc6d009b2
[explorer/machine_type] Print top most machine layer as first line (fallback to physical)
2021-08-05 13:52:51 +02:00
Dennis Camera
edcac70b2a
[explorer/machine_type] Reimplement
2021-08-05 13:52:51 +02:00
Darko Poljak
3ae5a606ca
++changelog
2021-08-05 10:27:51 +02:00
841ebb9b88
Merge branch 'fix/explorer/os_version/old-freebsd' into 'master'
...
explorer/os_version: fix for FreeBSD < 10.0 (again)
See merge request ungleich-public/cdist!1017
2021-08-05 10:26:33 +02:00
39dcb41349
Merge branch 'fix/explorer/os_version/legacy-macosx' into 'master'
...
explorer/os_version: Fix for legacy Mac OS X versions
See merge request ungleich-public/cdist!1018
2021-08-05 10:25:17 +02:00
d37772f3ea
Merge branch 'fix/type/__update_alternatives/dry-run' into 'master'
...
update alternatives: fixes for dry runs and non-English systems
See merge request ungleich-public/cdist!1016
2021-08-05 10:23:29 +02:00
49a9bcdf93
Merge branch 'fix/explorer/memory/gt-2g' into 'master'
...
explorer/memory: fix conversion of large numbers (>= 2GiB)
See merge request ungleich-public/cdist!1015
2021-08-05 10:23:20 +02:00
f9ce4bc33a
Merge branch 'feature/explorer/os_version/ubuntu-os-release-fallback' into 'master'
...
explorer/os_version: Fall back to os-release/lsb-release file on Ubuntu
See merge request ungleich-public/cdist!1014
2021-08-05 10:20:53 +02:00
Dennis Camera
2a0c073d40
[explorer/os_version] Fix for legacy Mac OS X versions
2021-08-04 21:55:56 +02:00
Dennis Camera
bbcc81a984
[type/__update_alternatives] Fix for non-English locales
...
Since update-alternatives(1) is localized, screen scraping its output breaks
if the locale is set to non-English.
2021-08-04 21:44:04 +02:00
Dennis Camera
0b3b47396f
[type/__update_alternatives] dry-run fixes
2021-08-04 21:39:39 +02:00
Dennis Camera
a7d6481a7d
[type/__update_alternatives] Secure cdist-defined environment variables with :?
2021-08-04 21:38:21 +02:00
Dennis Camera
83fe6e9f5b
[explorer/memory] Fix conversion of large numbers (>= 2GiB)
...
At least mawk uses scientific notation when using print for
numbers >=2^31 (INT_MAX of a signed 32-bit int).
`printf "%.f\n"` works around this.
2021-08-04 20:45:14 +02:00
Dennis Camera
e108cbc205
[explorer/os_version] Ubuntu: fall back to os-release/lsb-release files
2021-08-04 20:44:17 +02:00
Dennis Camera
53334fb4eb
[explorer/os_version] Fix for FreeBSD < 10.0 (again)
2021-08-04 19:50:10 +02:00
Darko Poljak
542674dae8
++changelog
2021-07-30 10:30:33 +02:00
b0e00efe64
Merge branch 'filesystem-ubuntu' into 'master'
...
[filesystem] Add ubuntu as supported distribution.
See merge request ungleich-public/cdist!1013
2021-07-30 10:29:55 +02:00
4156fea900
[filesystem] Add ubuntu as supported distribution.
2021-07-28 12:56:39 +02:00
Darko Poljak
cb8695cc88
++changelog
2021-07-24 12:53:39 +02:00
7ce68e3cb7
Merge branch 'evilham-compatibility-fixes' into 'master'
...
Improve Makefile compatibility and build docs
See merge request ungleich-public/cdist!1012
2021-07-24 12:52:41 +02:00
67bcc6cae3
Improve Makefile compatibility and build docs
...
We now use `$(MAKE)` for subsequent calls to `make`.
This means that systems that do not default to GNU make can run `gmake man` and
produce the man pages.
While there also document a dependency on the rtd theme for sphinx.
2021-07-24 02:37:58 +02:00
Darko Poljak
71fee1fd6b
++changelog
2021-07-23 08:06:45 +02:00
4307e8e7fa
Merge branch 'fix/logging/custom-levels' into 'master'
...
Define custom log functions on logging.Logger
See merge request ungleich-public/cdist!1011
2021-07-23 08:06:13 +02:00
Dennis Camera
fed01ded83
[cdist.log] Define custom log functions on logging.Logger
...
Define out custom logger functions on logging.Logger so that they are passed on
to all other loggers.
Also, the logger functions need to take a self argument so that they can log on
the corrent Logger.
2021-07-22 11:28:48 +02:00
f730aa7679
Merge branch 'feature/docs/bump-copyright' into 'master'
...
docs: Bump copyright year to 2021
See merge request ungleich-public/cdist!1009
2021-07-20 14:29:46 +02:00
Dennis Camera
c7daaabc6c
[docs] Bump copyright year to 2021
2021-07-20 09:03:16 +02:00
Darko Poljak
fbc9594729
++changelog
2021-07-20 06:38:46 +02:00
bf0c355fe7
Merge branch 'feature/explorer/os_version/devuan-ceres' into 'master'
...
explorer/os_version: Convert Devuan ceres to version number
See merge request ungleich-public/cdist!1008
2021-07-20 06:37:40 +02:00
Dennis Camera
24c9406ea0
[explorer/os_version] Convert Devuan ceres to version number
...
Conversion of Devuan ceres to version numbers is done based on Devuan codenames.
The version number is the version number of the final release - 0.01.
Analogous to Debian.
2021-07-19 12:14:20 +02:00
Darko Poljak
de11666161
++changelog
2021-07-18 17:45:19 +02:00
8b160841ad
Merge branch 'apt-pin-type' into 'master'
...
New type: __apt_pin - manage apt pinning
See merge request ungleich-public/cdist!1005
2021-07-18 17:44:04 +02:00
Darko Poljak
5229337611
++changelog
2021-07-18 17:41:29 +02:00
917a5d1aa8
Merge branch 'ander/__rsync' into 'master'
...
[__rsync] rewrite
See merge request ungleich-public/cdist!1007
2021-07-18 17:40:51 +02:00