3fd6a1504f
__ipset: manifest simplify case statement
2021-01-31 15:28:06 +00:00
a7565bce22
__ipset: allow for strict and relaxed mode when specifying sets
2021-01-30 10:06:09 +00:00
0d3bd4485a
new type __ipset
2021-01-19 11:24:31 +00:00
fnux
4918ef464f
Merge branch 'wikijs' into 'master'
...
Add a type for wikijs.
See merge request ungleich-public/cdist-contrib!15
2021-01-12 08:38:21 +01:00
8929c566fc
__wikijs: remove uneeded npm install call
...
See https://github.com/Requarks/wiki/issues/1325 .
2021-01-12 08:37:20 +01:00
7122fe1bee
__wikijs: add version management and HTTP(S) port configuration
2021-01-12 07:58:42 +01:00
647833580d
Split out service management from the installation type.
2021-01-12 07:58:42 +01:00
ef748cf8e2
Fix typo and drop use of useless tempdir.
2021-01-12 07:58:42 +01:00
0e4bc443e2
Add a type for wikijs.
2021-01-12 07:58:42 +01:00
fnux
f4375dbbb9
Merge branch 'dma-type' into 'master'
...
Add __mail_alias, __dma* types
See merge request ungleich-public/cdist-contrib!6
2021-01-12 07:15:55 +01:00
7cef989b1f
Fix run-shellcheck.sh following 'conflict resolution' from gitlab web ui
2021-01-12 07:14:24 +01:00
fnux
bf90e55137
Merge branch 'master' into 'dma-type'
...
# Conflicts:
# scripts/run-shellcheck.sh
2021-01-12 07:10:10 +01:00
Dennis Camera
f9f5c578f7
[type/__dma*] Fix shellcheck errors
2021-01-11 12:16:09 +01:00
f01f73f33d
Remove mention to legacy mattermost room from README
2021-01-11 11:58:21 +01:00
73e31e6d1e
Mention known external cdist resources in README
2021-01-11 11:56:37 +01:00
ec0dc30c87
Generate documentation homepage from README
2021-01-11 11:34:54 +01:00
ec41ef3490
Patch sftp call for doc deployment in CI
2021-01-11 11:05:09 +01:00
2bedbe9687
Automatically deploy docs from master (at contrib.cdi.st)
2021-01-11 10:55:25 +01:00
cd83336322
Use our own image for CI
2021-01-04 11:26:45 +01:00
9f4a85901e
Import html/man doc generation logic from upstream cdist
2021-01-04 11:08:55 +01:00
Dennis Camera
487574c865
[type/__dma] Convert AWK to loop over same file twice
2020-11-16 14:15:52 +01:00
Dennis Camera
0932c9ccde
[type/{__dma,__dma_auth,__mail_alias}] Quote things properly
2020-11-16 14:10:52 +01:00
Dennis Camera
7e20d13b9f
[type/__mail_alias] Use explicit line variables in update_aliases.awk
2020-11-16 13:58:05 +01:00
Dennis Camera
04076a75eb
[type/__mail_alias] man.rst: Make bugs a list
2020-11-16 13:57:34 +01:00
fnux
2e02c413b6
Merge branch 'netbox' into 'master'
...
__netbox type
See merge request ungleich-public/cdist-contrib!12
2020-11-04 09:24:18 +01:00
fnux
e8c731c384
Merge branch 'netbox' into 'netbox'
...
__netbox type improvements
See merge request ungleich-public/cdist-contrib!17
2020-11-04 09:23:22 +01:00
87e115da98
__netbox: some manpage fixes
...
Mostly invalid links ..
2020-10-25 19:13:10 +01:00
c1d5d5b088
__netbox: remove dependency to package virtualenv
...
This is not required any more because it was completly replaced by
`python3-venv`. The venv handling is already given to `__pyvenv`.
2020-10-24 08:52:43 +02:00
46bff41f6d
__netbox{,_uwsgi}: updated manpages
...
Mostly added notes of what does not work that well.
2020-10-17 11:22:47 +02:00
558021d2ee
__netbox: reorder generated code for shorter transition
...
Now, the venv and pip things are done before the program files are
replaced, which should minimize the outage where the application is not
available.
2020-10-17 11:08:11 +02:00
9def5700c8
__netbox: replace redis DEFAULT_TIMEOUT with RQ_DEFAULT_TIMEOUT
...
The first one was deprecated by the second one.
2020-10-17 10:21:52 +02:00
144cae3b79
__netbox: use __pyenv and remove obsolete netbox stop
...
Now, the python venv is now created via `pyvenv` or `python3 -m venv`
instead of the legacy `virtualenv`. For this, not all python processes
from the venv need to be stopped.
Migration from previous versions of this type may be difficult, but
solvable if the venv will be recreated.
2020-10-17 10:16:25 +02:00
72f2996c50
__netbox*: fix shellcheck SC2162
2020-10-11 16:56:54 +02:00
32c95ccb22
__netbox: don't call pip3 uninstall
if nothing available
...
To avoid an error from pip, it will be checked if there are packages to
uninstall. This is better than just doing `|| true`.
2020-10-11 16:50:22 +02:00
13e97d171b
__netbox*: added systemd socket support
...
The Gunicorn type now supports systemd sockets only. With uWSGI, you can
choose between it and the native sockets based on the parameters chosen.
This is done because it could not be implemented to have multiple
protocols with the systemd sockets (so you may choose).
The systemd socket unit file is generally available, so both types use
the same script to generate the socket unit file.
2020-10-11 16:39:19 +02:00
3b780c4794
__netbox: fixup small bugs and venv process killing
...
Changed flag (force to ignore a non-existant directory), typo and
swapped arguments are done. Also, the process to stop all processes from
the virtal environment has changed: Now, it stops all potential services
and ignore errors (because a service doesn't exist).
After that, it sends a kill signal to all processes and then gracefully
wait since there is no option to do that with systemd.
2020-10-08 19:54:48 +02:00
0b3bc14530
__netbox: adjusted command flags
...
Mostly added -q to the pip calls. Also forced the temp directory removal.
2020-10-06 17:29:31 +02:00
8f1b56026c
__netbox: force link creation for config files
...
This adds the force flag to `ln` to avoid aborts cause the link already
exists and so forth. It also adds robustness to the execution.
2020-10-05 19:02:05 +02:00
0c85b2d3fd
__netbox: uninstall not anymore required packages
...
This code tries to remove packages not needed anymore. As it presumably
not removing dependencies, it's not that perfect pice of script.
2020-10-05 18:26:47 +02:00
14f7cf8839
__netbox: set --data-root default value
...
The default value is set to preserve all data saved by netbox. As
explained in the manpage, it sets the directory for all data directories
to `~netbox/data/` (would resolve to `/opt/netbox/data/`), so upgrades
will not remove this data.
2020-10-04 17:40:01 +02:00
Dennis Camera
f76bcd3574
[type/__dma_auth] Update man.rst
2020-10-01 17:21:19 +02:00
Dennis Camera
1c9ab6e07b
[type/__dma] Update man.rst
2020-10-01 17:18:01 +02:00
Dennis Camera
f202d11124
[type/__mail_alias] Fix continuation line processing
2020-10-01 13:54:46 +02:00
Dennis Camera
c6b795b3f9
[type/__mail_alias] Update man.rst and make --alias required
2020-10-01 13:31:00 +02:00
Dennis Camera
161e1e85f4
[scripts/run-shellcheck.sh] Do not shellcheck AWK and Python scripts
2020-10-01 13:31:00 +02:00
Dennis Camera
231f96de18
Error if expected environment variables are unset
2020-10-01 13:31:00 +02:00
050812305b
__netbox: add mange.py calls recommended from upstream
...
Calls where added because there are used upstream in the
`upgrade.sh`-Script, too.
Upgrade-Script:
https://github.com/netbox-community/netbox/blob/develop/upgrade.sh
2020-09-28 20:04:22 +02:00
b55186544f
__netbox: adding seperate /opt/netbox/cdist/ directory
...
Adding a place to keep all configuration stuff for cdist seperated from
the installation directory. For safety reasons.
2020-09-28 19:49:29 +02:00
Dennis Camera
2270c32ddb
[type/__dma] Add missing license headers
2020-09-28 17:30:53 +02:00
Dennis Camera
b48b48e404
[type/__mail_alias] Externalise AWK update script to separate file
2020-09-28 17:29:41 +02:00