Commit graph

6237 commits

Author SHA1 Message Date
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
Darko Poljak
f9892e25a3
Merge pull request #672 from darko-poljak/sysctl-support-sysctl.d
__sysctl: support sysctl.d
2018-06-16 10:48:58 +02:00
Darko Poljak
9d4c0331a9 __sysctl: support sysctl.d 2018-06-16 07:42:43 +02:00
Darko Poljak
5aa8dac80a Disable config parser interpolation 2018-06-13 07:53:52 +02:00
Darko Poljak
b9a48c9316 ++changelog 2018-06-13 06:20:02 +02:00
Darko Poljak
75b68cd178
Merge pull request #669 from 4nd3r/__acl
add __acl: Basic wrapper around setfacl
2018-06-13 06:20:58 +02:00
d7a1645e4e __acl: fix os explorer 2018-06-11 11:21:07 +03:00
90adefe2e4 add __acl: Basic wrapper around setfacl 2018-06-08 15:06:35 +03:00
Steven Armstrong
4516ee0baa position can not be empty
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2018-06-01 15:27:40 +02:00
Darko Poljak
5ec99ceda2 Release 4.9.1 2018-05-30 19:44:54 +02:00
Darko Poljak
a1a589ab59
Merge pull request #666 from darko-poljak/fix-letsencrypt-cert
Fix __letsencrypt_cert type: use object id as domain
2018-05-30 19:41:50 +02:00
Darko Poljak
efebe15386 Fix __letsencrypt_cert type: use object id as domain if domain param is not specified 2018-05-30 19:38:56 +02:00
Darko Poljak
81adabd1ab ++changelog 2018-05-28 08:04:41 +02:00
Darko Poljak
98ceebe386
Merge pull request #667 from aluuu/master
Fix __package_yum explorer
2018-05-28 08:05:59 +02:00
Nico Schottelius
ab62d58715 ++ changes 2018-05-27 19:09:24 +02:00
Nico Schottelius
709c216096 [__consul_agent] Add LSB header so that innserv doe not fail 2018-05-27 19:07:57 +02:00
Alexander Dinu
b3a4152e00 Fix __package_yum explorer
Why:

In case when name contains package name with exact version specified (e.g. rpm-build-4.11.3)
```
rpm -q --whatprovides "$pkg_name"
```

will tell you that no package could provide you with 'rpm-build-4.11.3',
because it's not virtual or file-provide, but exact package name.

This will lead to the installation of the package which was already installed.
It slows down manifest execution a lot.

My change will keep previous behaviour which relies on --whatprovides and
will fix wrong behaviour when argument is full package name with version.
2018-05-27 17:20:55 +02:00
Darko Poljak
ab696a8cb8 ++changelog 2018-05-25 18:01:26 +02:00
Darko Poljak
d662cc0d1b
Merge pull request #664 from devinsolutions/install-coreos
Add new type __install_coreos
2018-05-25 18:02:14 +02:00
e7e8f1428a Add new type __install_coreos 2018-05-21 11:10:54 +02:00
Steven Armstrong
fb26894cbd when searching treat line as string, and regex as regexp
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2018-05-18 16:57:34 +02:00
Steven Armstrong
a3968f8313 rewrite __line type for --before and --after support
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2018-05-18 01:25:35 +02:00
Darko Poljak
e6b6925908 Release 4.9.0 2018-05-17 16:11:05 +02:00
Darko Poljak
6946dc877a pep8 2018-05-17 13:33:58 +02:00
Darko Poljak
3cf417fa2b Fix NameError: name 'cdist_object' is not defined, #662 2018-05-15 12:12:01 +02:00
Darko Poljak
72bb485db7 ++changelog 2018-05-11 18:29:43 +02:00
Darko Poljak
87c48bebc5
Merge pull request #661 from devinsolutions/letsencrypt-cert
Rewrite __letsencrypt_cert type
2018-05-11 18:29:11 +02:00
22d570ae60 Rewrite __letsencrypt_cert type
This commit adds the following features:

 * Ability to expand existing certificate
 * Ability to manage object state
 * Ability to obtain test certificate
 * Ability to promote test certificate to production
 * Ability to specify custom certificate name
 * Ability to specify multiple domains per certificate
 * Ability to use Certbot in standalone mode
 * Messaging

This commit also introduces the following behavioral changes:

 * Attempt to install Certbot only when it is not installed
   already
 * Installation of the cron job has to be enabled using
   `--automatic-renewal` parameter

**Note:** Object ID is now treated as certificate name and new
required parameter `--domain` was added.
2018-05-08 10:49:49 +02:00