DebOps Changelog

November 15, 2018

DebOps

Merge branch 'test-tweaks' of https://github.com/drybjed/debops into …

Merge branch 'test-tweaks' of https://github.com/drybjed/debops into drybjed-test-tweaks

by drybjed at November 15, 2018 09:11 AM

[ci] Turn off Ansible pipelining during tests

[ci] Turn off Ansible pipelining during tests

Avoid usage of pipelining during testing to work around a bug in
Ansible's 'apt_key' module that requires a TTY for interaction with the
'gpg' command.

Ref: https://github.com/ansible/ansible/pull/48580

by drybjed at November 15, 2018 09:00 AM

[ci] Don't search for Ansible plugins in playbooks

[ci] Don't search for Ansible plugins in playbooks

The lookup and filter Ansible plugins used by DebOps roles are now
included in the 'debops.ansible_plugins' role, and were removed from the
'ansible/playbooks/' directory. Don't use specific paths for these
lookup plugins during testing to ensure the all relevant Ansible plugins
are included in the above role.

by drybjed at November 15, 2018 08:56 AM

Merge branch 'feature/install-acl' of https://github.com/myrdd/debops…

Merge branch 'feature/install-acl' of https://github.com/myrdd/debops into myrdd-feature/install-acl

by drybjed at November 15, 2018 07:27 AM

November 14, 2018

DebOps

[fix] don't create sudoers file if `debops.sudo` is not used; fix #516

[fix] don't create sudoers file if `debops.sudo` is not used; fix #516

by myrdd at November 14, 2018 11:32 PM

Add documentation on how to use the debops.secret role to store the t…

Add documentation on how to use the debops.secret role to store the token value

by rei-ifesca at November 14, 2018 02:49 PM

Use the unix socket and not the file descriptor. Otherwise the system…

Use the unix socket and not the file descriptor. Otherwise the systemd unit won't work...

by rei-ifesca at November 14, 2018 02:06 PM

Rename version_compare() to version(). See note on https://docs.ansib…

Rename version_compare() to version(). See note on https://docs.ansible.com/ansible/2.7/user_guide/playbooks_tests.html#version-comparison

by rei-ifesca at November 14, 2018 01:27 PM

Fix docker.service-j2 systemd template. Between docker docker version…

Fix docker.service-j2 systemd template. Between docker docker version 18.06.1-ce and 18.09.0 the systemd unit is not more dependent on 'docer.sock' unit. Therefore update the template with the latest example systemd unit from docker-ce debian deb pkg.

by rei-ifesca at November 14, 2018 01:24 PM

November 13, 2018

DebOps

Merge branch 'debconf-lists' of https://github.com/gardouille/debops …

Merge branch 'debconf-lists' of https://github.com/gardouille/debops into gardouille-debconf-lists

by drybjed at November 13, 2018 01:24 PM

Fix some warning from `make test`

Fix some warning from `make test`

Indentation and include.

by gardouille at November 13, 2018 01:11 PM

November 12, 2018

DebOps

November 11, 2018

DebOps

[debops.lxc] Include cgroup limits in config file

[debops.lxc] Include cgroup limits in config file

The configuration of CPU, memory and swap limits via cgroups will be
included by default in all new LXC container configuration files. The
parameters are commented out, but contain real, maximum values present
on the current system - this way administrator can easily see the
available limits, as well as enable and tweak them when needed.

by drybjed at November 11, 2018 02:47 PM

[debops.lxc] Remove comments from initial config

[debops.lxc] Remove comments from initial config

The initial container configuration files in '/etc/lxc/' contain
configuration options which will be mangled in the final
'/var/lib/lxc/*/config' configuration files. Comments in these files
will not be relevant after container cration, therefore they are removed
by this patch.

by drybjed at November 11, 2018 12:04 PM

Merge branch 'lxc-static-host' of https://github.com/drybjed/debops i…

Merge branch 'lxc-static-host' of https://github.com/drybjed/debops into drybjed-lxc-static-host

by drybjed at November 11, 2018 09:14 AM

[debops.lxc] Remove host entry in new containers

[debops.lxc] Remove host entry in new containers

The LXC container creation scripts add a static host entry in
'/etc/hosts' file of newly created containers. This breaks name
resolution in DNS-based environments. Because DebOps relies on DNS for
local name resolution, the 'lxc-new-unprivileged' script will remove
that static host entry to fix the issue in new containers.

by drybjed at November 11, 2018 08:56 AM

November 10, 2018

DebOps

Merge branch 'fix-owncloud-php-deps' of https://github.com/sread/debo…

Merge branch 'fix-owncloud-php-deps' of https://github.com/sread/debops into sread-fix-owncloud-php-deps

by drybjed at November 10, 2018 08:03 PM

[debops.lxc] Add support for 'lxc-net' service

[debops.lxc] Add support for 'lxc-net' service

This patch adds support for the 'lxc-net' service which maintains an
internal network bridge for LXC containers. The service configures
a 'dnsmasq' instance to provide DHCP/DNS support for containers, with
their own internal subdomain.

by drybjed at November 10, 2018 10:18 AM

November 08, 2018

DebOps

[debops.gitlab] Use 'debops.logrotate' dependency

[debops.gitlab] Use 'debops.logrotate' dependency

The 'debops.gitlab' role will use the 'debops.logrotate' role to
configure log rotation instead of doing it directly. This allows better
control over GitLab log rotation via Ansible inventory.

by drybjed at November 08, 2018 09:52 AM

[debops.postgresql] Delegate to inventory_hostname

[debops.postgresql] Delegate to inventory_hostname

Currently the value of the 'postgresql__delegate_to' variable is used in
Ansible facts; using 'omit' can result in the wrong facts beging saved
on the remote host.

This patch changes the value to use 'inventory_hostname' instead, which
should correctly delegate the task to the host.

by drybjed at November 08, 2018 08:05 AM

November 06, 2018

DebOps

[debops.netbox] Increase app worker timeout

[debops.netbox] Increase app worker timeout

Some of the Netbox database requests, for example large API calls, might
take longer on installations with a large set of objects. This commit
sets a bigger default timeout for Netbox and synchronizes the
configuration between gunicorn backend and nginx frontend.

by drybjed at November 06, 2018 01:43 PM

Revert "[debops.gunicorn] Fix pycodestyle issues"

Revert "[debops.gunicorn] Fix pycodestyle issues"

This reverts commit 5719a4e29b898361c83e8c16ee64729a978e78b9.

The 'application.conf.py' script is treated more like a configuration
file rather than a standalone Python script. Wrapping values defined by
Jinja in JSON and loading them via json.loads can cause unintended
consequences during gunicorn execution.

To avoid issues with pyCodeStyle, the configuration file will be ignored
by the PEP8 test.

by drybjed at November 06, 2018 01:36 PM