fcd730f905
Merge branch 'master' into ander/__sed
2021-09-14 21:52:12 +03: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
0546283d0e
Update shellcheck disable
2021-08-24 20:33:17 +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
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
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
4156fea900
[filesystem] Add ubuntu as supported distribution.
2021-07-28 12:56:39 +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
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
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
46b5c24cd2
use $__remote_exec for RSYNC_RSH
2021-07-18 16:25:00 +03:00
0e611af2a6
[__rsync] rewrite
2021-07-17 11:44:09 +03:00
Darko Poljak
65c43d3c1d
Fix docs code block errors
2021-07-10 21:02:27 +02:00
b8f601ee15
Merge branch 'rsync-ssh-multiplex' into 'master'
...
__rsync: Use $__remote_exec and thus the ssh multiplexing
See merge request ungleich-public/cdist!1001
2021-07-08 08:05:52 +02:00
cf0032d667
add messaging and exit earlier
2021-07-07 21:28:00 +03:00
7a5896acfa
add --onchange, fix shellcheck
2021-07-07 21:23:25 +03:00
485283f2e5
new type: __sed
2021-07-07 20:47:22 +03:00
166b58aeea
Fix typo in distro names...
2021-07-05 15:32:27 +02:00
521241d741
Refine docs even more
2021-07-05 15:28:05 +02:00
be92731c5c
Shell check quoting
...
We're actually echo-ing the command, hence the escape in front of the
quotes - the issue Shellcheck alludes too would actually occur, had the
escaping bakcslashes been omitted.
2021-07-05 12:44:09 +01:00
d8da298cdf
Merge branch '__snakeoil_cert' into 'master'
...
new type: __snakeoil_cert
See merge request ungleich-public/cdist!1002
2021-07-05 08:59:59 +02:00
fnux
44eeb4bbfc
Merge branch 'scanner' into 'master'
...
usable cdist scan
See merge request ungleich-public/cdist!993
2021-07-05 07:44:28 +02:00
30ba796d06
new type: __snakeoil_cert
2021-07-02 10:09:38 +03:00
6528fd1c77
Merge branch 'feature/type/__debconf_set_selections/state-explorer' into 'master'
...
__debconf set selections: Add state explorer
See merge request ungleich-public/cdist!999
2021-07-02 06:49:24 +02:00
60753ddfcc
fix shellcheck
2021-07-01 14:42:10 +03:00
d937d53f3d
Add quotes to rsync command
2021-06-28 18:09:35 +01:00
2db40d8d70
Use $__remote_exec and thus the ssh multiplexing
2021-06-28 12:54:20 +02:00
7b3f268df2
[__download] improvements
...
1. post download checksum verification
2. detect hashes without prefix
3. add optional --destination
4. updated man
2021-06-22 16:36:30 +03:00
b726697e07
Add documentation
2021-06-11 15:05:33 +01:00
a3102022e1
More sensible defaults; reword debian-only error message
2021-06-11 15:05:17 +01:00
Dennis Camera
6ede76b08b
[type/__debconf_set_selections] man.rst: Fix line break in AUTHORS
2021-06-08 16:20:55 +02:00
Dennis Camera
d596986af8
[type/__pyvenv] Fix group explorer
2021-05-31 09:06:52 +02:00