Commit graph

6164 commits

Author SHA1 Message Date
Darko Poljak
c04325fdc5 ++changelog 2018-09-23 22:26:16 +02:00
Darko Poljak
4b9994f134
Merge pull request #690 from myeisha/batch-scp
transfer all files of a directory at once
2018-09-23 22:22:57 +02:00
Darko Poljak
0c57b3083e Fix getting loggers. 2018-09-23 21:38:03 +02:00
Darko Poljak
6acf6f64dc Add timestamp to log messages. 2018-09-23 20:36:57 +02:00
Darko Poljak
02982ca8be Release 4.10.3 2018-09-23 12:04:57 +02:00
Darko Poljak
1f703ab42e ++changelog 2018-09-22 20:52:43 +02:00
Darko Poljak
9b6ed0adc7
Merge pull request #689 from myeisha/deduplicate-mkdir
don't duplicate Remote::mkdir in explorer transfer
2018-09-22 20:52:33 +02:00
dhivael
c021cd15cd transfer all files of a directory at once
instead of calling the copy command once per file in a directory (eg a
type explorer dir), call the copy command only once with all files of
the directory.

batch copy saves 20% of dry-run time on my test manifest in sequential
mode, and 15% in parallel mode.
2018-09-22 17:35:32 +02:00
dhivael
f918acd725 don't duplicate Remote::mkdir in explorer transfer
Remote::transfer contains a call to mkdir(destination) if the source is
a directory. since the destination must also be a directory we can omit
extra mkdir calls in Explorer.

this saves about 10% on my manifests in sequential mode, and about 6% in
parallel mode.
2018-09-22 13:16:22 +02:00
Darko Poljak
d6952543a7 Add 'real world example' walkthrough docs chapter. 2018-09-14 10:53:16 +02:00
Darko Poljak
aa80e8f87d ++changelog 2018-09-12 11:53:46 +02:00
Darko Poljak
690b63081f
Merge pull request #688 from thriqon/improve-package-apt
Improve __package_apt
2018-09-12 11:53:37 +02:00
Jonas Weber
b3f3b907a4 Quote aptget command and params, simplify explorer 2018-09-12 11:36:11 +02:00
Jonas Weber
346f1f8af3 Send messages when installing packages via __package_apt 2018-09-12 11:36:06 +02:00
Darko Poljak
19a55ac75a
++changelog 2018-09-09 19:27:39 +02:00
Darko Poljak
cebe5949fc
Merge pull request #687 from devinsolutions/update-__docker
Update __docker type
2018-09-09 19:23:18 +02:00
Adam Dej
2e653409c1 Update __docker type
- Update installation method, following official installation
instructions.
  - docker-engine was renamed to Docker CE around March 2017. Update
manpage to reflect that change.
  - Remove flag `--experimental` since it is no longer necessary to install a
different binary to get experimental features. Experimental features are
included in the stable binary and can be enabled by a flag or in a
config file.
2018-09-07 11:38:49 +02:00
Adam Dej
c2f8c7abb3 Add explorer for info in /etc/os-release 2018-09-07 11:38:49 +02:00
Darko Poljak
55dcaecafe Release 4.10.2 2018-09-06 07:11:04 +02:00
Darko Poljak
3782656569 Report encoding errors nicely. 2018-09-04 08:27:20 +02:00
Darko Poljak
b9ddbb1aa0 ++changelog 2018-09-01 23:30:53 +02:00
Darko Poljak
b67051fac5
Merge pull request #686 from darko-poljak/letsencrypt_cert_explorers_fix
Check if certbot exists before using it. Fixes #685.
2018-09-01 23:29:37 +02:00
Darko Poljak
a627247908 Check if certbot exists before using it. Fixes #685. 2018-09-01 23:27:58 +02:00
Darko Poljak
282647a88c Fix changelog formatting. 2018-08-31 10:48:21 +02:00
Darko Poljak
fbc129e2ef
Merge pull request #684 from zhaostu/master
Update type `__package_update_index`
2018-08-31 10:47:30 +02:00
Stu Zhao
ad46c39c86
Merge branch 'master' into master 2018-08-30 15:56:19 -07:00
Darko Poljak
93d877f5bf Add nonparallel marker for __apt_source type. 2018-08-30 20:22:51 +02:00
Stu Zhao
f143a70463 Support pacman with --maxage parameter 2018-08-29 11:31:31 -07:00
Stu Zhao
b12c02138d Refactor __package_update_index explorers
* add an type explorer to unify detecting of package type.
* update currage use the type explorer, so if os and passed in type
does not match, it behaves correctly.
2018-08-29 00:22:28 -07:00
Stu Zhao
2f89d8a514 Fix __package_update_index processing error
exit 1 in explorer will abort cdist.
2018-08-29 00:22:28 -07:00
Darko Poljak
eeb0590150 ++changelog 2018-07-23 08:09:55 +02:00
Darko Poljak
0e9ba29850
Merge pull request #682 from greendeath/master
Bugfix:
2018-07-23 08:11:16 +02:00
Dominique Roux
f04f76524c Bugfix:
- __grafana_dashboard had the wrong release name for devuan ascii
2018-07-22 18:35:30 +02:00
Darko Poljak
1f2b7c84c2 ++changelog 2018-07-18 07:40:34 +02:00
Darko Poljak
e1f5fbf7b2
Merge pull request #678 from devinsolutions/improve-systemd-unit
Improve __systemd_unit
2018-07-18 07:41:41 +02:00
Adam Dej
43982f821f __systemd_unit: add support for masking units 2018-07-11 16:22:36 +02:00
Adam Dej
37b37f6e66 __systemd_unit: fix crash when transitioning to state=absent
This type tried to disable an unit after it has removed it, which
failed. Now the removal happens in gencode-remote, after the unit has
been stopped and disabled.
2018-07-11 16:22:36 +02:00
Adam Dej
8d84834db6 __systemd_unit: manpage clarifications
Clarify that this type only operates on units in /etc/systemd/system.
Also, when state=present, it is not always true that the type is
"installed, enabled and started"
2018-07-11 16:16:08 +02:00
Darko Poljak
6c8014b407 __letsencrypt_cert: add support for devuan ascii 2018-06-22 14:09:31 +02:00
Darko Poljak
7eae68c11d Release 4.10.1 2018-06-21 08:33:48 +02:00
Darko Poljak
8350b6297e ++changelog 2018-06-20 17:28:38 +02:00
Darko Poljak
58b0e83655 Add env vars usage idiom for writing types 2018-06-20 17:28:30 +02:00
Steven Armstrong
2f20b31758
Merge pull request #676 from thriqon/675-line-dry-run
Handle missing files with __line (dry-run)
2018-06-20 15:29:55 +02:00
Jonas Weber
4eaace7dd5 Handle missing file in __line explorer gracefully
closes #675
2018-06-20 11:14:25 +02:00
Darko Poljak
41186d66d4 ++changelog 2018-06-20 09:23:12 +02:00
Darko Poljak
4cee4abf7b
Merge pull request #674 from darko-poljak/fix-letsencrypt-tempfile
Fix temp file location and removal
2018-06-20 09:23:43 +02:00
Darko Poljak
ec8f2f9488 Fix temp file location and removal 2018-06-20 08:29:41 +02:00
Darko Poljak
ee64936ff9 Release 4.10.0 2018-06-17 10:57:06 +02:00
Darko Poljak
d49daca3dc ++changelog 2018-06-16 10:51:46 +02:00
Darko Poljak
f75af95bda
Merge pull request #663 from asteven/type/__line
RFC: rewrite __line type for --before and --after support
2018-06-16 10:51:33 +02:00