1. 04 Nov, 2020 2 commits
  2. 25 Oct, 2020 1 commit
  3. 24 Oct, 2020 1 commit
  4. 17 Oct, 2020 4 commits
  5. 11 Oct, 2020 3 commits
    • matze's avatar
      __netbox*: fix shellcheck SC2162 · 72f2996c
      matze authored
    • matze's avatar
      __netbox: don't call `pip3 uninstall` if nothing available · 32c95ccb
      matze authored
      To avoid an error from pip, it will be checked if there are packages to
      uninstall. This is better than just doing `|| true`.
    • matze's avatar
      __netbox*: added systemd socket support · 13e97d17
      matze authored
      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.
  6. 08 Oct, 2020 1 commit
    • matze's avatar
      __netbox: fixup small bugs and venv process killing · 3b780c47
      matze authored
      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.
  7. 06 Oct, 2020 1 commit
  8. 05 Oct, 2020 2 commits
  9. 04 Oct, 2020 1 commit
    • matze's avatar
      __netbox: set --data-root default value · 14f7cf88
      matze authored
      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.
  10. 28 Sep, 2020 2 commits
  11. 09 Sep, 2020 2 commits
    • matze's avatar
      __netbox: consistency with __systemd_unit --restart · e800f42a
      matze authored
      This commit brings consistency into the --restart parameter for systemd
      units. All units except the netbox wrapper service will be restarted on
      unit change.
    • matze's avatar
      __netbox*: fix service restart order · dd167f07
      matze authored
      Cause of corrupt databases if the services are restarted incorrectly,
      the order and dependencies are adjusted. Now, the `netbox-rq` service
      will be included in restarts of `netbox` and required for the WSGI
      servers that it must running.
      For these changes, the restart command of `__netbox` was adjusted. The
      other ones where edited too, to use the same command.
      All services now require redis and postgresql to be started before them
      to prevent any start order issues.
      If someone asked for what the RQ worker is required, see here:
  12. 08 Sep, 2020 3 commits
    • matze's avatar
      __netbox: replaced secret key character set · 5d437839
      matze authored
      The used character set should now only contain characters used by the
      `netbox/generate_secret_key.py` program. Finially got correct escaping.
    • matze's avatar
      __netbox: fix --update-notify · 549feb87
      matze authored
      Template script for the `configuration.py` interpreted the boolean flag
      incorrectly and did the thing the user do not wanted.
    • matze's avatar
      __netbox: fix gerneration random generated secret key · 398a3da1
      matze authored
      Because `/dev/random` was used, the `cdist config` could hang a long
      time to get real random values. The pseudo-generated values through
      `/dev/urandom` are fully enought for the secret key.
  13. 07 Sep, 2020 2 commits
  14. 06 Sep, 2020 2 commits
  15. 05 Sep, 2020 10 commits
    • matze's avatar
    • matze's avatar
      __netbox: avoid useless generated code-remote · b10f6b71
      matze authored
      Because `set -e` got printed all the time, the type __netbox always had
      some generated code for the remote side. This line was removed because
      this is already done by cdist when executing the code-remote script.
      Rather, the exit-on-error option was set to some scirpts (two ..).
    • matze's avatar
    • matze's avatar
      __netbox_uwsgi: fix uwsgi netbox service file · 090a8f01
      matze authored
      Revert working directory changes as the configuration file still needs
      to be accessable. An absolute path would work, too, but it is not the
      preferred way.
      To still work with the python wsgi application, `--chdir` is used.
    • matze's avatar
      __netbox_uwsgi: add --serve-static parameter · ffba3ae7
      matze authored
      New option to directly serve static content via uWSGI.
    • matze's avatar
      __netbox_uwsgi: fix shellcheck · 5a403de0
      matze authored
      Fixed shellcheck cause of the find command. This required a bigger
      change due to variables and subshell. Now, input is used through a
    • matze's avatar
      __netbox*: update systemd service files · 755bd909
      matze authored
      The `uwsgi-netbox` service now works, also the `netbox` wrapper service.
      The PID file was removed from the Gunicorn service as it is not required
      and a bit more efford to move it to `/run/` due to permissions.
      Generally, all depend on `network.target` instead of
      `network-online.target` now, and signals for reload, stop and kill were
      added (especially required the uwsgi service).
    • matze's avatar
      __netbox: kill all running venv processes · 314a0d4d
      matze authored
      To avoid aborts because of the python venv could not be updated by
      killing all processes that uses the venv.
      It will be done all times to prevent any error, because it could not be
      reliably detected if the type installs or updates NetBox.
    • matze's avatar
      __netbox_uwsgi: mark as singleton · af91b6e3
      matze authored
      This should have been done much earlier .. :/
    • matze's avatar
      __netbox_uwsgi: enable further protocols to bind to · 243e34f0
      matze authored
      Enables multiple protocols like fastcgi or HTTP to bind to. This makes
      it more flexible to use.
      Also, a little fix for __netbox was done: correctly output a error msg.
  16. 02 Sep, 2020 2 commits
  17. 01 Sep, 2020 1 commit