evilham
fc9bd40c9a
Improve bullseye support, perticularly __letsencrypt_cert
2021-10-01 13:14:57 +02:00
evilham
15c642a9b7
[__debconf_set_selections] Fix --file not being supported
...
Even if deprecated, the parameter *must* be supported, which isn't the case
right now.
This was due to a misunderstanding of how deprecating parameters work, see:
https://www.cdi.st/manual/latest/cdist-type.html#deprecated-parameters
2021-10-01 12:06:45 +02:00
poljakowski
433399d4dc
Merge branch 'fix/__package_apt/allow-releaseinfo-change' into 'master'
...
__package_apt: fix complain about suite change
See merge request ungleich-public/cdist!1023
2021-09-21 08:55:06 +02:00
poljakowski
12c536dbf9
Merge branch 'fix/__apt_source/allow-releaseinfo-change' into 'master'
...
__apt_source: fix complain about suite change
See merge request ungleich-public/cdist!1022
2021-09-21 08:54:49 +02:00
poljakowski
67a6965e1d
Merge branch 'fix/__package_update_index/allow-releaseinfo-change' into 'master'
...
__package_update_index: fix complain about suite change
See merge request ungleich-public/cdist!1021
2021-09-21 08:54:27 +02:00
poljakowski
398ee1e416
Merge branch 'fix/__apt_update_index/allow-releaseinfo-change' into 'master'
...
__apt_update_index: fix complain about suite change
See merge request ungleich-public/cdist!1020
2021-09-21 08:53:29 +02:00
ander
72ff48154c
add comments, add -u to diff
2021-09-16 21:36:39 +03:00
matze
3d7b31cbb4
__package_apt: fix complain about suite change
...
the last fix for ticket #861 :-)
2021-09-15 15:22:16 +02:00
matze
d246e06710
__apt_update_index: fix complain about suite change
...
1 of 4th fix for ticket #861
2021-09-15 15:15:49 +02:00
matze
12787ffe2c
__apt_source: fix complain about suite change
...
3 of 4th fix for ticket #861
2021-09-15 15:13:52 +02:00
matze
7b6789ddeb
__package_update_index: fix complain about suite change
...
2 of 4th fix for ticket #861
2021-09-15 15:04:12 +02:00
ander
cd4acde67e
grammar
2021-09-15 09:22:27 +03:00
ander
5bf0c71e7a
update man
2021-09-14 22:45:36 +03:00
ander
aabef7f44a
remove reading script from file
2021-09-14 22:40:06 +03:00
ander
b7f392fa37
use -E for better compat (not really sure if it is posix at all)
2021-09-14 22:38:55 +03:00
ander
90488fcebc
use -e
2021-09-14 22:27:42 +03:00
ander
0f6e48dbc6
use $__object/tempfile in target instead of mktemp, add comments
2021-09-14 22:24:26 +03:00
ander
d7fdc8006f
allow empty file
2021-09-14 21:54:45 +03:00
ander
fcd730f905
Merge branch 'master' into ander/__sed
2021-09-14 21:52:12 +03:00
Darko Poljak
0546283d0e
Update shellcheck disable
2021-08-24 20:33:17 +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
sparrowhawk
4156fea900
[filesystem] Add ubuntu as supported distribution.
2021-07-28 12:56:39 +02:00
poljakowski
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
ander
46b5c24cd2
use $__remote_exec for RSYNC_RSH
2021-07-18 16:25:00 +03:00
ander
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
poljakowski
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
ander
cf0032d667
add messaging and exit earlier
2021-07-07 21:28:00 +03:00
ander
7a5896acfa
add --onchange, fix shellcheck
2021-07-07 21:23:25 +03:00
ander
485283f2e5
new type: __sed
2021-07-07 20:47:22 +03:00
fancsali
166b58aeea
Fix typo in distro names...
2021-07-05 15:32:27 +02:00
fancsali
521241d741
Refine docs even more
2021-07-05 15:28:05 +02:00
fancsali
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
poljakowski
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
ander
30ba796d06
new type: __snakeoil_cert
2021-07-02 10:09:38 +03:00
poljakowski
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
ander
60753ddfcc
fix shellcheck
2021-07-01 14:42:10 +03:00
fancsali
d937d53f3d
Add quotes to rsync command
2021-06-28 18:09:35 +01:00
fancsali
2db40d8d70
Use $__remote_exec and thus the ssh multiplexing
2021-06-28 12:54:20 +02:00
ander
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
fancsali
b726697e07
Add documentation
2021-06-11 15:05:33 +01:00
fancsali
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
poljakowski
d2ce55ea6e
Merge branch '__git_fix_group_explorer' into 'master'
...
[__git] fix group explorer
See merge request ungleich-public/cdist!992
2021-05-29 11:20:20 +02:00
ander
503a06ed28
[__git] fix group explorer
...
group name from numberic id wasn't resolved correctly.
try to use getent and fallback to reading /etc/group directly.
2021-05-23 13:35:33 +03:00
evilham
81b426e4e2
[__letsencrypt_cert] Revamp explorers, add locking.
...
Closes #839
See merge request ungleich-public/cdist!976
This patch joins all explorers in one to avoid starting multiple remote python
processes and uses a cdist-specific lock in /tmp/certbot.cdist.lock with a
60 seconds timeout.
2021-05-10 12:10:01 +02:00
evilham
a696f3cf00
[__letsencrypt_cert] Revamp explorers, add locking.
...
This would fix #839
Certbot uses locking [1] even for read-only operations and does not properly
use exit codes, which means that sometimes it would print:
"Another instance of Certbot is already running" and exit with success.
However, the previous explorers would take that as the certificate being absent
and would trigger code generation.
The issue was made worse by having many explorers running certbot, so for N
certificates, we'd run certbot N*4 times, potentially "in parallel".
[1]: https://certbot.eff.org/docs/using.html#id5
This patch joins all explorers in one to avoid starting multiple remote python
processes and uses a cdist-specific lock in /tmp/certbot.cdist.lock with a
60 seconds timeout.
It has been tested with certbot 0.31.0 and 0.17 that the:
from certbot.main import main
trick works. It is somewhat well documented so it can be somewhat relied upon.
2021-05-10 12:10:00 +02:00