Changelog

debops-playbooks

This project adheres to Semantic Versioning and human-readable changelog.

The current playbook maintainer is drybjed.

debops-playbooks master - unreleased

Added

  • Add support for custom Ansible environment variables in all playbooks. Environment can be configured using Ansible inventory variables. [drybjed]
  • Add debops.php role and its corresponding playbook. [drybjed]
  • Add debops.environment role with it's own playbook, and include it in the common.yml playbook. [drybjed]
  • Add debops.authorized_keys role with its own playbook, and include it in the common.yml playbook. This role replaces the debops.sshkeys role and is backwards-compatible with it. [drybjed]
  • Add debops.debops_api role and its corresponding playbook. [ypid]
  • Add debops.hashicorp role and its corresponding playbook. [drybjed]
  • Add Core Infrastructure Initiative (CII) Best Practices badge to the repository README. [ypid]
  • Add debops.nullmailer role and its playbook. [drybjed]
  • Add debops_service_bootstrap Ansible host group to allow to run debops.bootstrap against hosts not in the debops_all_hosts host group. [ypid]
  • Add debops.debops_fact role with corresponding playbook and include it in the common.yml playbook. [drybjed]
  • Add debops.sysctl role with corresponding playbook and include it in the common.yml playbook. [ypid]
  • Add debops.apt_listchanges and debops.apt_proxy roles with their corresponding playbooks. Both roles are included in the common.yml playbook. [drybjed]
  • Add debops.apache role and its corresponding playbook. [ypid]
  • Update the debops.owncloud playbook to add support for debops.apache. [ypid]
  • Add debops.gunicorn role and its corresponding playbook. [drybjed]
  • Add debops.netbox role and its corresponding playbook. [drybjed]
  • Add debops.cron role and its playbook, and include it in the common.yml playbook. [drybjed]
  • Add debops.persistent_paths role and its corresponding playbook. [ypid]
  • Add alternative debops.dnsmasq playbook for use together with the debops.persistent_paths role. [ypid]
  • Add commonly used set of Jinja2 macros to the repository under ./templates/debops__tpl_macros.j2 to have a central place where the file can be maintained and from where the latest version can be acquired. [ypid]
  • Add the debops.root_account role, included in the common.yml playbook. This role contains functionality previously present in the debops.console role. This change will result in updated root account passwords, due to the changed location of the password files in the secret/ directory. [drybjed]
  • Add flattened Jinja filter to debops__tpl_macros.js_. [ypid]
  • Add the debops.nfs_server Ansible role with a corresponding playbook. [drybjed]
  • Add the debops.nsswitch Ansible role with its corresponding playbook. The role is included in the common.yml playbook. [drybjed]
  • Add the debops.avahi Ansible role with its corresponding playbook. [drybjed]

Changed

  • Update debops.dokuwiki playbook. [drybjed]

  • Update debops.bootstrap playbook. [drybjed]

  • Update playbooks which use debops.php role to include the debops.apt_preferences role dependency. [drybjed]

  • Remove the debops.postfix role from the common.yml playbook. The Postfix server is replaced by nullmailer on new installations.

    On existing installations, debops.nullmailer will detect Postfix and disable itself automatically. This means that the DebOps playbook won't manage the existing Postfix installations anymore using the common.yml playbook. To enable Postfix management, add the host to [debops_service_postfix] inventory group. [drybjed]

  • Update debops.owncloud playbook. [ypid]

  • Update debops.librenms playbook. [drybjed]

  • Update the ipaddr() filter plugin with the version from Ansible devel branch. [drybjed]

  • Update the debops.lxc playbook to the new version. [ypid]

  • Update the debops.redis playbook to the new version. [drybjed]

  • Update the debops.dnsmasq playbook to the new version. [ypid]

  • Update the ldap_addr and ldap_entry Ansible modules to versions created by Jiri Tyr and proposed for inclusion in the Ansible modules library. These versions should work better with the latest Ansible 2.x releases. [drybjed]

  • Update debops.ifupdown playbook to support new features in the role. You will need to update your inventory, check the role documentation for more details. [drybjed]

  • Make sure that debops.tcpwrappers role is included in the debops.dnsmasq playbook because the DNSmasq role notifies the debops.tcpwrappers handler in case of any changes. [drybjed]

  • Update the ldap_entry Ansible module to the new version. This is a non-backwards compatible change, roles that use ldap_entry will need to be updated to use the new module atributes parameter instead of specifying LDAP entry parameters directly as module parameters. [drybjed]

  • Update the debops.swapfile playbook to the new version. [ypid]

  • Treat the debops.core role like a normal service role by moving it to playbooks/service/core.yml. This change is part of my effort to make DebOps usable on Qubes OS where you might only want to run a minimum set of roles. [ypid]

  • Update the debops.owncloud with Apache playbook to the new version. [ypid]

  • Update the debops.cryptsetup playbook to the new version. [ypid]

  • Update the debops.gitlab playbook to use role dependencies. [drybjed]

  • The order of the NFS server/client roles has been moved to be earlier in the main playbook to allow for mounting of the NFS shares early. [drybjed]

Deprecated

  • Support for Ansible 2.0 is deprecated due to the changes in ldap_attr and ldap_entry Ansible modules which require Ansible 2.1. Roles that don't use these Ansible modules should still work correctly on Ansible 2.0. [drybjed]

Removed

Fixed

  • The ldap_attr and ldap_entry modules should now work correctly on Ansible 2.1. This is a non-backwards compatible change and it breaks compatibility with Ansible 2.0. [anzil]

Security

  • Terminate playbook execution as soon as possible if a vulnerable Ansible version is used. The minimum Ansible version without known vulnerabilities is Ansible 2.1.4. The check is run as part of the common.yml playbook file in a separate playbook which has gather_facts explicitly turned of and the task being delegated to the Ansible controller to avoid possible connection attempts to remote hosts before the check had the opportunity to terminate a vulnerable Ansible instance. This playbook is run with no limitation on remote hosts meaning it will also run the check even if the current Ansible run is limited to a host which is not even managed by DebOps. This check became necessary because some distributions only provide Ansible versions with known vulnerabilities and some users are unaware. Note that you will need v2.1.5 or v2.2.2 because some required fixes for advanced templating features which DebOps uses have not made it into v2.1.4 (broke while fixing the CVEs). Refer to Ansible Security for details. [ypid]

debops-playbooks v0.2.9 - 2016-07-07

Added

  • Add debops.snmpd role dependencies to service/snmpd.yml playbook. [drybjed]
  • Add debops.unattended_upgrades role to the common.yml playbook as well as its own service/unattended_upgrades.yml playbook. The support for unattended-upgrades package in debops.apt role will be removed. [drybjed]
  • Add debops.apt_cacher_ng role to it's own service/apt_cacher_ng.yml playbook. The server-side support for the apt-cacher-ng package in debops.apt role has be removed. Client-side support is being reworked in debops.apt. [ypid]
  • Add debops.gitlab_runner role and playbook. [drybjed]
  • Add debops.logrotate role and playbook, available as a standalone service as well as included in the common.yml playbook. [drybjed]
  • Add the debops.apt_install role with its own playbook as well as in the common.yml playbook. [drybjed]
  • Add the "role dependency" debops.apt_preferences to service/apt.yml. Especially with Debian Stretch enabled in sources.list(5), not running debops.apt_preferences together with debops.apt could risk installing new packages from Stretch. Using apt_preferences__preset_list can avoid that. [ypid]
  • Ensure that the galaxy/requirements* files are up-to-date by making it easy to regenerate them and check if they are up-to-date via Travis CI. [ypid]
  • Add debops.preseed role dependencies to service/preseed.yml playbook. [ypid]
  • Add back some of the roles that were removed previously from Ansible Galaxy requirements. They are still present in the playbook, and will be removed at a later date. [drybjed]
  • Add debops.resources role and its playbook. [drybjed]

Changed

  • Update the service/iscsi.yml playbook to use roles that were previously hard dependencies of the debops.iscsi role. [drybjed]
  • Update the variables related to debops.sshd due to change in the variable naming scheme. You might need to update your Ansible inventory. [drybjed]
  • Update the service/tinc.yml playbook with support for new debops.tinc release. [drybjed]
  • Update the service/mailman.yml playbook with support for new debops.mailman release. [drybjed]
  • Moved roles dependencies from debops.subnetwork to subnetwork playbook. [ypid]
  • Update debops.apt_cacher_ng playbook and add support for nginx proxy for the cache. [drybjed]
  • Replace app/gitlab_ci*.yml playbooks with debops.gitlab_runner playbook. The old GitLab CI and GitLab CI Runner roles will no longer be active by default, since GitLab CI has been merged into GitLab itself. [drybjed]
  • Update the debops.rsyslog playbook as well as the common.yml playbook to support the rewritten debops.rsyslog role. [drybjed]
  • Update the debops.ntp playbook and common.yml playbook to use the new variable names. [drybjed]
  • Update debops.mariadb_server playbook to include its role dependencies. [drybjed]
  • Update the service/postgresql_server.yml playbook to use new namespaced variables. [drybjed]
  • Update the service/postgresql.yml playbook to use new namespaced variables. [drybjed]
  • Run debops.apt earlier in the common.yml playbook to setup things like APT proxy and sources.list(5) for other roles. [ypid]
  • Update service/ruby.yml playbook to use new role variables. [drybjed]
  • Update service/goland.yml playbook to use new role variables. [drybjed]
  • Update Changelog and other documentation to current project standards. [drybjed]

Removed

Fixed

  • Fix compatibility issues of custom lookup plugins in Ansible v2.1+. [abadger]

debops-playbooks v0.2.8 - 2016-02-07

Added

  • Add debops.swapfile role. [drybjed]

  • Add debops.atd role, included in the common.yml playbook by default.

    The at and batch commands can be used to schedule delayed jobs using Ansible at module. [drybjed]

  • Add debops.dhparam role, included in the common.yml playbook by default. [drybjed]

  • Add debops.sshd configuration variables to debops.apt_preferences, debops.ferm and debops.tcpwrappers configuration in common playbook. [drybjed]

  • Add set of common "service" playbooks that invoke Ansible roles that are used on all hosts. [drybjed]

  • Add playbook for debops.ntp role and update common.yml playbook with debops.ntp firewall configuration. [drybjed]

  • Add [debops_service_*] host groups to all relevant playbooks and clean up the hosts line in all playbooks to use YAML lists instead of Ansible patterns. This should ensure that during transition from colons to commas there shouldn't be any issues. [drybjed]

    You can use sed --regexp-extended --in-place '/[debops_service_/! s/^[debops_(.+)]$/[debops_service_1]/' hosts to update your inventory file. [ypid]

  • Add debops.cryptsetup role, which can be used to manage filesystems encrypted using LUKS. Role was created by Robin Schneider. Thanks! [drybjed]

  • Add debops.apt_preferences role to service/postgresql.yml playbook. [drybjed]

  • Add missing ferm configuration for debops.postfix role. [drybjed]

  • Add missing playbooks for roles included in common.yml playbook so that they can be easily executed on their own. [drybjed]

Changed

  • All playbooks now use become: True instead of sudo: True to enable privileged operation. [drybjed]
  • Redesign common playbooks to only work with hosts that are in [debops_all_hosts] inventory group. This should improve support for non-DebOps managed hosts in Ansible inventory, but it requires modification of existing inventories. [drybjed]
  • Update the Postfix, nginx and slapd playbooks to include the firewall and TCP Wrappers roles. OpenLDAP and nginx Ansible host groups have been renamed, you will need to update the inventory. Postfix playbook is prepared to manage Postfix as standalone service, not part of the common.yml playbook. [drybjed]
  • Move all role playbooks to service/ subdirectory and create symlinks in old locations. [drybjed]
  • Update service/docker.yml playbook and include additional roles required to configure the service properly. [drybjed]
  • Update "Getting Started Guide" and parts of other documentation. [drybjed]
  • Moved roles dependencies from debops.owncloud to owncloud playbook. [ypid]
  • Moved roles dependencies from debops.tinc to tinc playbook. [le9i0nx]
  • Moved roles dependencies from debops.postgresql_server to postgresql_server playbook. [drybjed]
  • Update the common.yml playbook and service/pki.yml playbook with new debops.pki role requirements. [drybjed]
  • Allow execution of debops.pki role with role::pki:secret tag so that it will create secret directories but nothing else. [drybjed]

Removed

  • Remove the default([]) alternatives from playbooks to make them work correctly on Ansible v1. [drybjed]
  • Remove legacy tags from role playbooks. [drybjed]
  • Remove d([]) from common.yml playbook to pass the variables correctly between roles. [drybjed]

Fixed

  • Fix support for no_log: True parameter in ldap_entry Ansible module, so that it works correctly on Ansible v2. [drybjed]

debops-playbooks v0.2.7 - 2015-10-15

Added

Changed

  • Hosts in [debops_no_common] host group will no longer run a common playbook. [drybjed]
  • Lookup plugins task_src, template_src and file_src are updated using input from James Cammarata to work both in old Ansible 1.x series as well as in the new 2.x series. Thanks! [drybjed]
  • Split the environments.yml playbook into smaller plays included in the main playbook to see if this model has any issues. This change should make user of specific role plays easier on the command line and from other playbooks. [drybjed]
  • Split virtualization.yml playbook into separate plays. [drybjed]
  • All playbooks have been split into small plays. Playbook directories have shorter names, which are easier to use from the command line. [drybjed]

Removed

  • Remove root.yml playbook and its additional files - its functionality has been moved to debops.core Ansible role. [drybjed]

debops-playbooks v0.2.6 - 2015-07-14

Added

Changed

  • Ansible will now try and read the remote host UUID using dmidecode and prefer that over using a randomly generated UUID if possible. This works on hardware hosts and virtual machines, but shouldn't in containers. [drybjed]
  • During root.yml playbook, grab only the last line of dmidecode output in case that it decides to emit comments about not supporting older releases in STDOUT. [drybjed]
  • Update of the bootstrap.yml playbook; there are now more variables that define the administrator account, admin account will be now a "system" account by default (UID < 1000). Playbook checks if an account with a given name already exists and does not change its parameters if it does. Admin account will be in more groups by default (admins (passwordless sudo access), staff and adm). [drybjed]
  • Move the Changelog references to the end of the file and remove duplicates, so that Sphinx does not complain about them. [drybjed]
  • Replace old headers in Changelog to use current header order. [drybjed]
  • Move relevant documentation to debops-playbooks repository. [drybjed]

Removed

  • Remove debops.ansible role from requirements, you should switch to creating an ansible Debian package and installing it on remote servers using local APT repository. [drybjed]
  • Remove debops.encfs role from requirements, it's not used anymore and is ill designed to be used on servers at this point. [drybjed]
  • Remove debops.safekeep role from requirements, SafeKeep is not in official Debian repositories therefore installation requires manual steps, debops.rsnapshot is a better alternative. [drybjed]
  • Remove debops.debug role from requirements, tools/debug.yml playbook should be a better alternative and it's easier to use. [drybjed]
  • Convert bootstrap.yml playbook to an Ansible role. [drybjed]

debops-playbooks v0.2.5 - 2015-04-01

Added

  • Add debops.dokuwiki role. [drybjed]
  • Add a "testing channel" Galaxy requirements file, to be used to download Ansible roles with "testing" branch instead of "master". [drybjed]
  • Reto Gantenbein created a Dovecot role which has been added to the DebOps project. Thanks! debops.dovecot can be used to manage IMAP/POP3 service which will let you access your mail remotely over a secure connection. [ganto, drybjed]

debops-playbooks v0.2.4 - 2015-03-26

Added

  • Add separate "root fact" directory where applications are installed, by default the same as the path for service home directories. [drybjed]
  • Install python-pip during bootstrapping. [htgoebel]
  • Add a way to install custom packages during bootstrapping. [drybjed]
  • Add debops.stunnel role. [drybjed]

Changed

  • Reorder networking.yml playbook to run network-related roles before main services and applications. This should make sure that networking is correctly set up when it's needed. [drybjed]

debops-playbooks v0.2.3 - 2015-03-05

Added

  • Added new lookup plugins, file_src and template_src which allow custom template and file search paths in roles. [rchady]
  • You can set global "root flags" on hosts using root.yml playbook. Ansible roles can check for their presence or absence and automatically change their behavior. [drybjed]

Changed

  • Roles in common.yml playbook are rearranged to better support LDAP integration and avoid possible SSH lockdown if host was not prepared using bootstrap.yml playbook or preseeding. [drybjed]
  • Scripts which provide custom facts will be installed on the first run of the root.yml playbook. First such script provides a list of currently enabled Linux capabilities, in ansible_local.cap12s fact tree. [htgoebel, drybjed]
  • bootstrap.yml playbook will check if it can change the hostname before doing it using Linux capabilities. [htgoebel, drybjed]

debops-playbooks v0.2.2 - 2015-02-25

Added

  • Add support for STARTTLS in ldap_attr and ldap_entry modules [psagers]

Changed

  • Fix issue with ldap_entry not handling no_log: True in argument list properly [drybjed]

debops-playbooks v0.2.1 - 2015-02-24

Changed

  • Move library/ directory into correct place and sort modules in subdirectories mirroring the official layout. [drybjed]

debops-playbooks v0.2.0 - 2015-02-22

Added

Changed

  • Variables from bootstrap.yml playbook can now be customized using inventory. [drybjed]
  • Bootstrap variable names have been changed to be similar to what is used in other DebOps roles. Variable that specifies SSH key to install is now a normal Ansible list. [drybjed]

debops-playbooks v0.1.0 - 2015-02-16

Added

  • New paths have been added to root.yml service paths. [drybjed]

Changed

  • Format of the Changelog is modified to reflect new versioning. Old entries are preserved. [drybjed]
  • ansible_local.root.home default path has been changed from /var/lib to /var/local to move home directories out of the way of the system packages. [drybjed]
  • root.yml service paths that are already configured on remote host as facts will override playbook or inventory changes to protect already installed services from future changes. [drybjed]

2015-02-12

Playbook updates

Due to practical reasons, role updates will be written in roles themselves from now on, in CHANGES.rst files.

New "root variable" has been added to root.yml playbook, ansible_local.root.uuid. It will contain a random UUID generated on first DebOps run. It can be used to uniquely identify an instance of a particular host.

2015-02-06

Role updates

OpenLDAP server managed by debops.slapd role has gained support for TLS out of the box, using certificates managed by debops.pki role. By default, slapd server listens for normal plain text connections, which can be protected by the client requesting a StartTLS session, as well as for encrypted SSL/TLS connections. This also marks the removal of Beta status from debops.slapd role.

To stay on the safe side, debops.auth role, which configures /etc/ldap/ldap.conf, will automatically set encrypted connections to OpenLDAP server using ldaps:// protocol. You can of course change that using role default variables.

Playbook updates

To make LDAP use easier within Ansible playbooks, I've included two Ansible LDAP modules created by Peter Sagerson in the main DebOps playbook library/ directory, which makes them available anywhere within DebOps project directories (in playbooks and roles). You can use ldap_entry and ldap_attr modules to manipulate your LDAP database, look in each module source code for examples.

2015-02-05

Role updates

debops.mysql role can now configure a MySQL server with SSL support enabled by default, using PKI infrastructure managed by debops.pki role.

debops.nginx role gained support for setting server-wide (as in, per domain) allow/deny rules, which is more secure than just per-location (which was available previously). You can use Ansible lists to specify which hosts or networks have access to the server.

You can now configure HTTP Basic Authentication in debops.nginx role. It works on a server level (restricted access to individual servers), as well as on the host level (restricted access to all nginx servers configured on this host). debops.nginx has a built-in support for htpasswd files - you specify a list of user accounts to configure in Ansible inventory, and passwords themselves are stored in secret/ directory, managed by debops.secret role.

2015-02-04

Role updates

I have found out that some applications do not support SSL/TLS certificate chains correctly. Because of that, I have added a separate PKI realm, /etc/pki/service/, with corresponding Root Certificate Authority, which will sign certificates directly. It is meant for internal use only, each host in a cluster has its own certificate shared by all services on this host, private key is accessible for users belonging to ssl-cert system group.

For reference, Debian Bug #630625 which indicates that MySQL does not support certificate chains out of the box. If other such services are found, they will now use service PKI realm by default.

2015-02-03

Role updates

debops.nginx role will now track HTTP and HTTPS default_server configuration option separately, which should make it even more roboust and hard to break accidentally. Code which selected default_server was moved out of the server template and into separate Ansible tasks.

Nginx role has exposed two variables using local Ansible facts:

  • ansible_local.nginx.user is the default system user (www-data) which is used to run the webserver. Some of the roles need to give read-only or read-write access to his user for specific files. To have it work properly, debops.nginx role needs to be run before your own role, or you need to have it in your role's dependencies.
  • ansible_local.nginx.www is the default directory for web-accessible files (/srv/www). Most of the time you will use it by creating separate subdirectory for a specific system user. Nginx role uses a specific structure based on this path to automatically generate root configuration parameters;
Playbook updates

New playbook, tools/dist-upgrade.yml has been added. It should help with upgrading to next version of your favorite OS, currently supported upgrade paths are from Debian Wheezy to Debian Jessie and from Ubuntu Trusty to Ubuntu Utopic.

To use the new playbook on a selected host, run command:

debops tools/dist-upgrade --limit hostname

Playbook is idempotent and it shouldn't perform an upgrade on already upgraded hosts. After an upgrade is performed you should receive email message with the log of the procedure for review. After that you might want to re-run at least DebOps common playbook to make sure that any changes are accounted for and reboot the host.

Just a reminder, that at this time Debian Jessie is still a Testing distribution and you shouldn't run the upgrade playbook on your production systems, unless you know what you are doing. DebOps playbooks and roles should work correctly installed on either Wheezy or Jessie (if not, post an issue), but they are not tested against an upgrade from one distribution to another.

I've created a separate dist-upgrade label for issues related to upgrade procedure. You should check it out before upgrading. If you find any issues regarding DebOps roles after performing an upgrade, please post them in DebOps Playbooks repository so that they can be tracked in one place.

2015-02-01

Role updates

Small updates in debops.pki role:

  • previously Diffie-Hellman parameter regeneration meant that on each Ansible run contents of /etc/pki/ directory would change. Because role creates a snapshot of /etc/pki/ directory on any changes and sends it to Ansible Controller, if you keep your inventory and secrets in a git repository, it meant that your repository would constantly grow. Now debops.pki role will archive DH parameter files only the first time the snapshot file is created; subsequent snapshots will ignore them, and thus no changes will be recorded and snapshot file will not need to be archived, unless something else changes, for example certificates are added or updated.
  • you can now disable or change the frequency of Diffie-Hellman parameter regeneration using inventory variables. Default frequency has been changed from daily to weekly.

2015-01-31

Playbook updates

New playbook, root.yml has been added and part of the common.yml playbook has been moved there. This playbook is meant to prepare the system for the rest of the DebOps roles by creating a set of base directories:

  • a root directory for service home directories, by default /var/lib
  • a root directory for local data managed by the host, /srv
  • a root directory for backups, both automated and manual, /var/backups

Paths to these directories are saved in Ansible local facts. Other DebOps roles can then access them using ansible_local.root hierarchy, for example:

role_home:   '{{ ansible_local.root.home   + "/role" }}'
role_data:   '{{ ansible_local.root.data   + "/role" }}'
role_backup: '{{ ansible_local.root.backup + "/role" }}'

Because of the way that Ansible manages dict variables, ansible_local.root.* local facts will be required on all hosts managed by DebOps playbooks and roles - otherwise you need to specifically check for existence of ansible_local and ansible_local.root variables before using them to avoid errors about missing variables.

If you use DebOps playbooks, this should be handled for you automatically. If you use DebOps roles separately, you can add an include of root.yml playbook to your set of playbooks and these facts should be created for you automatically. root.yml does not need to be included in all your playbooks, just in the first one at the beginning.

At the moment those variables are not used in any DebOps roles, that will change over time after a period of testing.

2015-01-28

Role updates

debops.reprepro role is no longer a dependency of debops.apt. Instead it's configured like any other service, by adding a host to [debops_reprepro] host group. This allows you to create separate hosts with different repositories if needed.

Default configuration of debops.reprepro role has 3 repositories:

  • a backport repository configured for your installed release (for example on Debian Wheezy it will manage packages for wheezy-backports). You can upload to this repository directly;
  • a "staging" repository for your organization, <release>-<domain>-staging. You can upload to this repository directly;
  • a "production" repository for your organization, <release>-<domain>-prod, this repository is currently managed manually from the reprepro user account. You can promote packages to it from -staging repository using reprepro pull command;

You can also enable mirrors of selected distributions as needed, which allows you to use local APT mirror as a buffer between official repositories and your servers, if you need it. To upload packages to repositories you can use dput command to upload *.changes files over HTTPS.

debops.reprepro role automatically manages its GnuPG repository keys and makes snapshots of current keyring state which are then uploaded to Ansible Controller's secret/ directory. In case of a reinstall, role will reuse already existing GnuPG keys if they are found on Ansible Controller.

There are many more configuration options prepared in debops.reprepro, I suggest that you read its defaults/main.yml file to see what's available.

Because of above changes, you need to separately add your local repositories in debops.apt configuration variables. To make it easier, there is now a separate list variable for APT key definitions (apt_keys, as well as a way to add APT keys and repositories in a "delayed" way - instead of configuring your own repository immediately on first install, which could result in an error if repository is not yet set up, you can add configuration in separate set of apt_{keys,sources}_delayed variables which will be used only after debops.apt role had configured a host once.

Another small change in debops.apt is modification of conditional package installations - instead of separate apt module calls, packages are enabled dynamically during Ansible run using set_fact module. debops.apt will now also correctly distinguish Debian and Ubuntu firmware packages which are named differently between those two distributions.

2015-01-21

Role updates

Webserver status page has been enabled by default in debops.nginx, it's accessible on /nginx_status location, initially only from localhost addresses (from the webserver itself). You can add additional IP addresses or CIDR ranges using separate list, nginx_status.

Fix for CVE-2013-4547 has been removed from the server template, since the issue has already been mitigated in Debian.

2015-01-20

Role updates

debops.gitlab_ci role has been updated to support GitLab CI 5.4, with GitLab 7.7 providing authorization based on OAuth. Due to the changes in GitLab CI itself, some configuration variables have been changed - check the role defaults for new ones (mainly, you can define only 1 GitLab instance to connect to).

debops.users role has been slightly cleaned up and root-proofed - it shouldn't make an error if you are connecting to your hosts directly as root account anymore. Role uses default(omit) filter in its tasks, which means that DebOps now requires Ansible >= 1.8 for correct operation.

New playbook plugins

Hartmut Goebel created a small lookup plugin, with_lists, which allows you to use lists of items as "items" themselves, see an example in the with_lists plugin. Thanks!

2015-01-18

Role updates

debops.gitlab role has been finally rewritten. Lots of important changes:

  • support for GitLab 7.7 out of the box, even before official release ;)
  • new home directory, /var/local/git/, you might want to reinstall your GitLab instance from scratch or take care with moving your old instance files to new location;
  • role does not depend on configuration file hashes anymore, updates should be much easier to perform and support for new versions should be included in a more timely manner;
  • debops.gitlab will configure a daily backup of the application data to /var/backups/gitlab/, backup files older than a week should be automatically cleaned up;
  • new GitLab install uses a random password stored in the DebOps secret/ directory instead of the official password. Default admin account will have an email address in your domain instead of admin@example.com, so random bounced mails shouldn't be a problem anymore;

Playbook updates

bootstrap.yml playbook gained new tasks which can be used to set hostname and domain on a given host. You can define bootstrap_hostname or bootstrap_domain variables in inventory and Ansible will try to enforce these settings on a given host as well as in /etc/hosts. This functionality makes the tools/fqdn.yml playbook redundant, so it's removed.

2015-01-13

Happy New Year 2015!

PKI rewrite

I've worked on debops.pki role since December, holiday season delayed it slightly, but finally it is here. :-)

New PKI infrastructure in DebOps is designed around creating and managing Certificate Authorities on the Ansible Controller, inside secret/ directory managed by debops.secret, signing Certificate Requests generated by remote hosts and sending back certificates. There's 1 Root CA certificate you need to import into your browser or host certificate store and after that, all other servers should show up in your browser as accepted automatically.

You can also very easily copy your own certificates signed by an external CA, with private keys if needed, to your servers using a set of directories in the secret/ directory.

Several roles which depended on the old debops.pki role have been now updated as well and take advantage of functionality present in the new PKI infrastructure. These roles are:

If you use any of these roles in your infrastructure, take care to make sure that your certificates are moved into new directory structure and configuration is updated as needed.

If there are any questions regarding new PKI and how to use it, feel free to ask them on the IRC channel or on the mailing list.

2014-12-23

Role updates

debops.users role can now set or update user passwords (by default no passwords are set).

debops.ntp role has gained support for ntpd daemon, thanks to RedRampage. Because of the issues with role dependency variables and Jinja, access to NTP service through firewall is now controlled by a separate variable, ntp_firewall_access. By default, remote access is disabled.

2014-12-05

New roles

  • debops.salt role allows you to install and configure Salt Master service. You can use this to create Salt control host to which other hosts (Salt Minions) can connect to. At the moment configuration is very basic, Salt master will automatically listen to IPv6 connections and firewall will be configured to accept connections on default ports.

Role updates

Salt Minion preseeding has been added in debops.apt (current Debian Preseed configuration is there, will be moved in the future to separate role), debops.lxc and debops.openvz roles. Automatic minion installation is disabled by default and can be enabled separately for each "mode" - Debian Preseed postinst script in case of physical hosts or KVM virtual machines, LXC template script for LXC containers, OpenVZ bootstrap script for OpenVZ containers. After installation, salt-minion will try to connect to salt host, so make sure that it's present in your DNS configuration for best results.

2014-12-03

Role updates

Continuing the GitLab revamp, debops.gitlab_ci_runner role has also been refactored and is unfortunately not compatible with the previous version, reinstall of the nost is recommended.

Runner home directory has been moved to /var/local/ directory, most of role dependencies have been dropped and role now needs less upkeep than before. You can read about changes in latest commit.

2014-12-02

DebOps mailing list has been moved to groups.io.

Role updates

debops.gitlab_ci role has been significantly refactored. Due to bug in GitLab CI 5.0 at the moment this version cannot be installed, so I decided to use this opportunity to make some deep changes in the role. GitLab CI home has been moved to /var/local/gitlab-ci/ directory, and various tasks related to updating the application have been streamlined. You can read more information about various changes in the commit message.

2014-12-01

Hartmut Goebel has joined DebOps team and wrote an excellent guide for using DebOps scripts and playbooks with Vagrant on single and multiple hosts. It's available in DebOps Examples repository.

Role updates

All DebOps roles again use Ansible devel branch on Travis CI for tests.

debops.debops role has been rewritten and updated to support current project installation method. By default only DebOps scripts will be installed system wide, but you can also install playbooks and roles to /usr/local by setting a variable. Dependency on debops.ansible role has been dropped and that role will be removed in the future. You can install Ansible from a Debian repository or by providing your own .deb package.

RedRampage has provided a failover code for debops.dhcpd role which should help set up failover DHCP servers. Thanks!

Several DebOps roles had a small fixes related to ansible-playbook --check command, which can now be used to check for possible changes before applying them on the remote hosts. Due to bugs in older Ansible versions this functionality works correctly on Ansible 1.8+ or current devel branch.

2014-11-27

Role updates

Support for management of SSH host fingerprints in /etc/ssh/ssh_known_hosts (via debops.sshd role) and /root/.ssh/known_hosts on OpenVZ hosts (via debops.openvz role) has been redesigned and no longer uses assemble Ansible module. Instead, Ansible checks already present fingerprints and adds new ones if they are not present in the files. This helps better obfuscate scanned hosts, which previously could be inferred from filenames of parts assembled earlier.

Instances of with_items using multiple lists in a few roles have been replaced with with_flattened which works better in new release of Ansible, 1.8+.

debops.openvz role has been slightly updated and redundant configuration of ferm and sysctl, already configured by debops.ferm role, has been dropped to prevent duplication.

2014-11-26

Role updates

debops.nginx role will now preserve the status for default_server of a particular configuration file in case that another instance of the role is added in the Ansible run. Saved local fact about which server is the default one will take precedence over automatically calculated setting.

If nginx role notices that Ansible local facts are missing, it will remove all files and symlinks from /etc/nginx/sites-enabled/ directory. This should happen in two instances - either nginx is configured for the first time, or /etc/ansible/facts.d/nginx.fact file has been removed. In that case all active config symlinks will be removed to prevent accidental errors from some old, not regenerated configuration files.

2014-11-25

New roles

  • debops.hwraid is a role that configures access to HWRaid package repository and installs packages for recognized RAID storage arrays connected to your hosts. It can be used to quickly and easily setup basic monitoring for your storage - many packages contain automated scripts which send mail to root account in case of issues with RAID.

Role updates

debops.auth role will now manage /etc/ldap/ldap.conf configuration file. By default, LDAP server on local domain is set up (currently without any encryption, so treat this as experimental feature and don't use it in production) with local domain specified as BaseDN. you can change this in role default variables.

DebOps will automatically configure hidepid=2 option in /proc filesystem on selected hosts (hardware servers and fully virtualized VMs), using debops.console role. This functionality hides other users' process information for unprivileged accounts. A separate system group, procadmins has been reserved for monitoring services and users that need full access to the /proc filesystem.

2014-11-24

New roles

  • debops.slapd role manages OpenLDAP server, slapd. At the moment role is in beta stage - currently there is no SSL encryption available, no backup/restore scripts and no replication. But role installs a few useful scripts and slapd management is done using custom Ansible modules. Deeper integration between OpenLDAP and other DebOps services will be created in the future.

Role updates

Because of recent changes in the debops.tcpwrappers role I decided to make the ferm rules for SSH access more strict. From now on, iptables will check new SSH connections over period of 1 hour, if more than 3 new connections from 1 IP address are attempted during that time, and address is not in the whitelist, it will be blocked for 2 hours, with each new connection attempt resetting the timer. All this is now configurable in debops.sshd and debops.ferm roles.

Thanks to htgoebel's suggestion I was able to refactor Postfix hash tables management. They are now generated from all *.in files in current directory, which means that other Ansible roles or even other scripts can put their own files in /etc/postfix/hash_*/ directories and if they are named with *.in extension, their corresponding *.db files will be created automatically. Thanks to that, debops.postfix role now generates tables from templates using with_fileglob instead of static lists of templates, which makes the process of adding new tables if necessary much easier.

2014-11-22

Role updates

You can now specify default value for entries in debops.tcpwrappers role, using item.default key. If this key is specified, and item.clients is not present or is empty, default value will be used instead. Specify 'ALL' to allow connections from any host.

Consequently, debops.sshd role now will allow connections from any host by default in /etc/hosts.allow. If you previously used a list of hosts using sshd_*_allow, your configuration shouldn't be affected.

2014-11-20

Role updates

debops.ifupdown will now check if previous network configuration in /etc/network/interfaces was using static IP addresses, which indicates that DHCP is not available on the network. In that case, a basic static IPv4 interface configuration will be used with information gathered by Ansible to setup a default network interface. This should prevent sudden loss of communication in cases where hosts are configured statically.

Playbook updates

tools/hostname.yml playbook has been renamed to tools/fqdn.yml and can get the new hostname and domain from fqdn variable defined in inventory, which is less awkward to use than renaming the host in inventory file directly.

2014-11-19

Role updates

Network forwarding configuration in iptables has been moved from debops.kvm, debops.lxc and debops.subnetwork roles into debops.ferm to avoid duplication. This will also result in forwarded network interfaces being able to accept Router Advertisements and configure their IPv6 addresses using SLAAC. In short, easier network configuration.

Hartmut Goebel has provided a set of Raspbian APT repositories for debops.apt role, thanks! Unfortunately, at the moment Ansible does not correctly recognize Raspian as a separate distribution which prevents automatic source selection, but there are workarounds.

Because of the recent Debian Jessie freeze, DebOps project is starting preparations for full Jessie support, both as a standalone install, as well as an upgrade from Wheezy.

All debops.ferm configuration files had changed ownership from root:root to root:adm which is the default in Debian. This change should prevent back-and-forth changes of ownership after system has been upgraded, which forces ferm files to change ownership to root:adm.

Some APT configuration files in debops.apt role have been renamed to avoid conflicts with existing files during the upgrade, this should prevent debconf questions about replacing modified configuration files.

Both debops.apt and debops.lxc roles now support ansible_distribution_release in 'release/sid format, which lets DebOps function correctly on Jessie during the freeze. There might be other roles which need to be updated to support this syntax, they will be fixed later.

debops.auth role now uses full templates instead of lineinfile module to configure sudo and su admin access. This should prevent debconf asking about modifications in /etc/pam.d/su (which is now diverted), and lets sudo have more configuration options for admins group.

Playbook updates

New playbook, tools/hostname.yml can be used to change the hostname and FQDN of a host to those defined in Ansible inventory (and yes, you can do multiple hosts at once). It's advised to not do it after services have been configured, since some of them may rely on the correct FQDN defined in DNS. If you use DHCP to automatically configure DNS (for example with dnsmasq, rebooting the host after changing the hostname should ensure that the new FQDN is correct.

2014-11-13

Role updates

debops.postfix role will now correctly work on hosts without FQDN configured. On these hosts, Postfix will automatically override its configured capabilities and enable local mail delivery, mail will be originating from the host instead of the domain. Postfix role will also no longer modify /etc/hosts to rewrite IPv6 localhost address, it seems that the annoying warning in the mail log about unknown connection source has been fixed.

debops.dnsmasq role has been completely rewritten and now supports multiple network interfaces and IPv6, among other things. It requires ipaddr() filter plugin to work, but thanks to that it can automatically configure services based on IP addresses configured on specified interface - no more separate IP subnet configuration is needed. Role now also creates more fine-grained CNAME records and has more configuration options. And it's out of beta! :-)

Playbook updates

Old 'debops.nat' role has been obsoleted by debops.subnetwork and removed from ansible-galaxy requirements file. It will also be removed from GitHub and Ansible Galaxy in the future. Also, debops.radvd has been added to the requirements.

Virtualization playbook has been modified and roles that previously automatically configured internal network and DNS services have been removed from KVM and LXC plays (yes, this will change installation procedures in the docs, which are not yet updated). New playbook, 'networking.yml' has been added where you will find all network-related plays, like subnet creation and management (via debops.subnetwork and DHCP/DNS management.

2014-11-07

New roles

debops.subnetwork is a replacement for old debops.nat role, with many improvements. You can create a bridge interface with local network behind it for virtual machines, or even switch to a real Ethernet interface for your physical hosts. You can create both an IPv4 network, which will be automatically configured behind NAT, and an IPv6 network (with multiple prefixes). debops.subnetwork is not yet part of the main playbook, it will replace the old NAT role when dnsmasq role is updated to support it.

Role updates

Because of the changes related to new networking, some code in debops.lxc, debops.kvm and debops.nat had to be moved around. Specifically, parts of the firewall and sysctl settings related to the LAN interface were moved into debops.subnetwork role and parts of the forwarding configuration to external and internal networks were added respectively to LXC and KVM roles.

2014-11-05

New playbooks

New playbook has been added, net/ipv6/6to4.yml. This playbook configures 6to4 tunnel interface on a host with public IPv4 address and allows you to easily connect to IPv6 network. To do that, you need to put a host in [debops_6to4] group. Afterwards, you can run the playbook using debops script:

debops net/ipv6/6to4 -l host

This is first step towards transition to playbooks placed in subdirectories. These playbooks will probably work correctly only with debops script, which automatically generates ansible.cfg with correct configuration parameters. To use these playbooks standalone, you will need to create your own ansible.cfg and include in it paths to DebOps roles and plugins.

Role updates

You can now configure custom ferm rules using a custom template in debops.ferm. New ferm_*_rules variables allow you to create rules in /etc/ferm/ferm.d/ directory which can configure tables and chains other than INPUT.

2014-11-04

New roles

Finally, it's time to start bringing out new toys. :-) For starters, debops.radvd role, which installs and lets you configure radvd, IPv6 Router Advertisement daemon. It will be used in future IPv6 router roles.

Playbook updates

ipaddr() filter has been rewritten again and it works now correctly with lists of values. Filter was completely refactored internally and its output should be now consistent with expectations. Hopefully for the last time.

2014-11-02

Playbook updates

More fixes in filters! split() filter will now handle incorrect input values gracefully and return them in a list, since output is usually expected to be a list. If a string cannot be split by specified separator, whole string will be returned in a list.

ipaddr('6to4') filter has been updated to not convert private IPv4 addresses, since their behavior is unspecified, this way Ansible can easily determine if a given IPv4 address can be used in 6to4 tunnel.

6to4 query will also now return proper ::/48 subnet instead of a single IPv6 address, this way a subnet can be further manipulated to for example split it into smaller ::/64 subnets.

New ipaddr() query type has been added - you can now specify positive or negative numbers in a query, for example {{ '192.168.0.1/24' | ipaddr('-1') }} will return last IPv4 address from a specified subnet. It's an easy way to define DHCP dynamic ranges in dnsmasq configuration.

New filter, ipsubnet() has been added. It lets you manipulate IPv4 and IPv6 subnets; given a subnet and CIDR prefix you can check the number of subnets that it can be divided into, adding an index number to the query lets you get a specific subnet. You can also check the biggest subnet an address can be in by specifying the smallest prefix you're interested in.

You can now pass a list to ipaddr() filter and it will return only items that pass specified criteria, for example returns only list of IP addresses and subnets by default, or only IPv6 addresses and subnets, etc. It's not yet 100% correct all the time and not all queries work (or make sense in this context).

2014-10-31

Playbook updates

New filter, split() has been added into filter plugins. It lets you split strings into a list on a specified separator (by default, space). I'm amazed it hasn't been included yet in core Ansible. :-) split() filter has been written by Tim Raasveld and is included with his blessing, thanks!

ipaddr() filter will from now on correctly handle false values like False and "" by returning False when encountered. It also gained new query type, '6to4' which lets you convert public IPv4 addresses into 6to4 IPv6 addresses or check if a specified IPv6 address/network is in 2002::/16 address range.

2014-10-28

Role updates

APT repository management in debops.apt role has been rewritten. Now role supports multiple APT mirrors, as well as custom lists of repositories dependent on the current distribution (repository lists for Debian and Ubuntu are included). Configuration of default APT repositories has been moved from a separate config file in /etc/apt/sources.list.d/ directly to /etc/apt/sources.list, original configuration file is preserved using dpkg-divert. Additionally, if debops.apt cannot recognize current distribution, it won't modify the default sources.list file, this can also be enforced manually if needed.

2014-10-17

Role updates

Many more roles have now partial or full tests on Travis-CI, more to come.

Default version of Etherpad installed by debops.etherpad role has been changed from 1.4.0 to develop, because current stable release does not recognize new npm installed in Debian. It will be switched to the next stable release when it's available.

Because of the recent IPv6 changes in debops.nginx, management of nginx configuration and daemon had to be changed slightly. Role will try to automatically pick a sane server as the "default server", if none are marked as one, due to ipv6only=off parameter tied to default_server parameter. Another added functionality is full nginx server restart when configuration symlinks in /etc/nginx/sites-enabled/ directory are added or removed - this should help with requirement to restart the service on interface changes.

Default admin username and SSH keys are now exposed as defaults/ variables in debops.openvz role; SSH keys are also sourced from ssh-agent instead of directly from the ~/.ssh/id_rsa.pub file.

2014-10-10

Playbook updates

Maciej Delmanowski wrote a set of custom filter plugins for Ansible which let you manipulate IPv4 and IPv6 addresses. You can test if a string is a valid IP address or convert them between various formats.

2014-10-09

Role updates

IPv6 firewall has been enabled by default in debops.ferm after all roles that configure ferm directly had their configuration files fixed to support both iptables and ip6tables commands.

debops.boxbackup has been finally converted from a "common" role (run from common.yml playbook) to a group-based role. First host in debops_boxbackup will be configured as the BoxBackup server and the rest will be set up as its clients.

2014-10-07

Role updates

debops.ferm role is now IPv6-aware and can generate rules for iptables and ip6tables at the same time. The way you use the role as a dependency hasn't changed at all, so if you use dependent variables in your roles, you should be fine. However, because some roles are managing their firewall rules by themselves, IPv6 support is disabled by default - this will change when all roles are updated to be IPv6-aware.

debops.nginx also gained support for IPv6 and will now listen for connections on both types of networks by default. If you have an already running nginx server, it will require manual restart for the new configuration to take effect.

2014-10-05

All role README files have been converted to reStructuredText format. Unfortunately, Ansible Galaxy does not support README.rst files at this time, so role information cannot be updated there.

2014-10-02

Role updates

debops.nginx role has been updated. Most changes are either cleanup (change names of some internal role files, remove unused redundant variables, etc.).

/etc/nginx/http-default.d/ directory has been renamed to /etc/nginx/site-default.d/ which hopefully better shows the purpose of this directory in relation to nginx server configuration. Old directories haven't been removed; if you use it, you will need to move the configuration files manually.

Support for map { } configuration sections has been added. It works similarly to upstreams and servers, that means you can define your maps in hashes and enable them using nginx_maps list. More information about nginx map module can be found at the nginx website.

You can now remove configuration of servers, upstreams and maps from hosts by adding delete: True to the configuration hashes.

Old remnants of the fastcgi_params configuration files are now automatically removed by the nginx role. This is the second step of the switch from custom to stock configuration file. Task which removes these old files will be removed in the future.

2014-09-29

"{{ lookup('file','~/.ssh/id_rsa.pub) }}" considered harmful

The lookup above is common through Ansible playbooks and examples, and it is used as a prime method of accessing SSH public keys of current account on Ansible Controller host to, for example, install them on remote hosts using authorized_key Ansible module.

However, this is by no means a portable solution. Users can have public SSH key files with completely different names, or don't even have them at all and instead use other means of SSH authentication, like GPG keys or smartcards.

Because of that, I'm changing the way that SSH public keys will be accessed by default in DebOps. For now, only playbooks/bootstrap.yml playbook will be updated (this playbook is used to bootstrap new hosts and get them ready for Ansible management), changes in other roles will come later. I hope that authors of other roles will follow suit.

New way of accessing SSH keys will use SSH agent (or its alternatives): instead of accessing the keys directly, Ansible will request a list of currently enabled public keys from the SSH agent using "{{ lookup('pipe','ssh-add -L') }}" lookup. Because that lookup can return an empty value which will not create an error, you want to safeguard against that in a key configuration task using failed_when: condition. Look in playbooks/bootstrap.yml to see how it's used with authorized_key task.

2014-09-22

inventory.secret is renamed to secret

If you use DebOps, or at least some roles from it, you probably are familiar with debops.secret role, which makes handling sensitive and confidential data easier within Ansible playbooks and roles. I'm mentioning this because secret variable is used through the DebOps project and this change will be significant - that's why I want to do it right away instead of changing the role suddenly some time down the line.

Previously debops.secret role created directory for secrets adjacent to the Ansible inventory directory. Because it was assumed that inventories are kept in the same directory, debops.secret automatically took the name of the inventory directory and appended .secret suffix to it, making the resulting directory inventory.secret/.

Now, because each DebOps project lives in its own directory, this feature is no longer needed. Additionally in the current state secret directory is kind of a show stopper, interfering for example with <Tab>-completion. Because of that, I'm changing the "formula" to instead just use the secret/ directory by default. It will be still created beside the inventory/ directory.

All DebOps scripts will be updated at the same time, and should work with new directory name. However, existing directories will need to be renamed manually, otherwise DebOps might create new certificates, passwords, etc.

inventory.secret directory becomes secret.

If you use debops-padlock script, then .encfs.inventory.secret directory becomes .encfs.secret.

2014-09-21

Role updates

  • debops.postfix has been cleaned up, all Ansible tasks have been rewritten from "inline" syntax to YAML syntax. Task conditions have been rearranged, now almost all of them can be found in tasks/main.yml file instead of in the file that are included.
  • The way that Postfix configuration files (main.cf and master.cf) are created by Ansible has been changed - instead of templating individual pieces on the remote servers and assembling them to finished files, configuration file templates are generated on Ansible Controller from parts included by Jinja and then templated on the servers as a whole. This makes the process much faster and easier to manage.
  • Postfix role has gained a new capability, archive. If it's enabled, each mail that passes through the SMTP server is blind carbon-copied to a separate archive mail account on local or remote SMTP server. This function is configured automatically by the role, but can be modified using inventory variables. Archive account and/or archive server need to be configured separately by the system administrator.

2014-09-19

Role updates

  • debops.postfix role has gained support for SMTP client SASL authentication, in other words the ability to send mail through remote relay MX hosts with client authentication, like public or commercial SMTP servers. You can either configure one username/password pair for a specified relayhost, or enable sender dependent authentication and specify relayhost, user and password for each sender mail address separately. Passwords are never stored in the inventory; instead Postfix role uses debops.secret role to store user passwords securely.

2014-09-18

Role updates

  • debops.kvm role has been cleaned up from old and unused code, tasks were put in order and list of administrator accounts that should have access to libvirt group changed name from auth_admin_accounts to kvm_admins (Ansible account is enabled automatically).
  • debops.lxc role has been updated with changes to the LXC 1.0.5 package from Debian Jessie (some package dependencies and build requirements were changed). You can read more in the lxc package changelog.

2014-09-17

Playbook updates

  • You can now disable early APT cache update using apt_update_cache_early variable from debops.apt role. This is useful in rare case when your APT mirror suddenly catches fire, and you need to switch to a different one using Ansible.

Role updates

  • debops.ferm role has gained new list variable, ferm_ansible_controllers, which can be used to configure CIDR hostnames or networks that shouldn't be blocked by ssh recent filter in the firewall. This is useful in case you don't use DebOps playbook itself, which does that automatically. In addition, debops.ferm saves list of known Ansible Controllers using local Ansible facts, and uses it to enforce current configuration.
  • similar changes as above are now included in debops.tcpwrappers role, you can specify a list of Ansible Controllers in tcpwrappers_ansible_controllers list variable.
  • Debian bug #718639 has been fixed which results in changes to several configuration files, including /etc/nginx/fastcgi_params and inclusion of a new configuration file /etc/nginx/fastcgi.conf. debops.nginx role will now check the version of installed nginx server and select correct file to include in PHP5-based server configuration.

2014-09-14

New roles

  • debops.elasticsearch is a role written to manage Elasticsearch clusters, either standalone or on multiple hosts separated and configured using Ansible groups. Author: Nick Janetakis.
  • debops.golang role can be used to install and manage Go language environment. By default it will install packages present in the distribution, but on Debian Wheezy a backport of golang package from Debian Jessie can be automatically created and installed.

Role updates

  • debops.ruby role has changed the way how different Ruby versions can be selected for installation. By default, ruby_version: 'apt' variable tells the role to install any Ruby packages available via APT (by default 1.9.3 version will be installed on most distributions). If you change the value of ruby_version to 'backport', a backported Ruby 2.1 packages will be created if not yet available, and installed.
  • Also in debops.ruby, rubygems-integration package is installed separately from other packages and can be disabled using ruby_gems_integration: False variable (this option was required for backwards compatibility with Ubuntu 12.04 LTS (Precise Pangolin) distribution).