Upgrade notes¶
This document contains information and notes about any changes that are required in the Ansible inventory or the IT infrastructure managed by DebOps to perform the upgrades between different stable releases.
Unreleased¶
v2.1.0 (2020-06-21)¶
Inventory variable changes¶
Some variables in the debops.ntp role have been removed:
Old variable name New variable name Changed value ntp__timezonetzdata__timezoneNo
v2.0.0 (2020-01-30)¶
General¶
Official DebOps roles have been renamed and the
debops.prefix has been dropped from the directory names. The custom playbooks and role dependencies that use DebOps roles will have to be updated accordingly to function correctly again.The variables in various roles that hold the automatically generated passwords stored in the
secret/directory have been modified to use theinventory_hostnamevariable instead of theansible_fqdnvariable as a part of the path to the password file. The roles where these changes happened are:- debops.apt_cacher_ng
- debops.librenms
- debops.mailman
- debops.nginx
- debops.owncloud
- debops.phpipam
- debops.postgresql_server
- debops.preseed
- debops.roundcube
These changes will result in existing passwords or other generated data being automatically regenerated by Ansible on the next run of a given role. This might affect access to the services from other hosts if the new passwords are not applied everywhere. Make sure to re-run the affected roles on all relevant hosts in your infrastructure to update the passwords where necessary.
LDAP¶
The values of the
authorizedServiceandhostLDAP attributes expected by various DebOps roles have been changed. You will need to update your LDAP directory entries for the new values to take effect before applying these changes to the remote hosts, otherwise users and services might stop working correctly.Changes in the
authorizedServiceattribute:Old value New value Notes * all Grants access to all services web-public web:public Grants access to publicly-reachable web services None shell Grants access to UNIX environment over SSH protocol Changes in the
hostattribute:Old value New value Notes * posix:all Grants access to POSIX environment on all hosts <fqdn> posix:<fqdn> Grants access to POSIX environment on a specific host based on its FQDN *.<domain> posix:*.<domain> Grants access to POSIX environment on a specific host based on its domain <hostname> Removed This scheme has been replaced by a more general purpose "URN-like" scheme. See Host-based access control for more details.
Inventory variable changes¶
Some variables in the debops.docker_server role have been renamed:
Old variable name New variable name Changed value docker_server__graphdocker_server__data_rootNo A few of the default variables in the debops.dovecot role have been renamed. Additionally some variables related to the Sieve plugin configuration also changed:
Old variable name New variable name Changed value dovecot_ssl_protocolsdovecot_ssl_min_protocolNo dovecot_firewallRemoved, see "Firewall configuration" No dovecot_mail_locationdovecot_mail_locationYes dovecot_sievedovecot_sieve_active_scriptNo dovecot_managesieve_config_mapdovecot_managesieve_config_mapYes dovecot_lda_config_mapdovecot_lda_config_mapYes Some of the variables in the debops.roundcube role have been renamed:
Old variable name New variable name Changed value roundcube__default_hostroundcube__imap_serverNo roundcube__domainroundcube__fqdnYes, a string roundcube__local_config_maproundcube__configurationYes roundcube__group_local_config_maproundcube__group_configurationYes roundcube__host_local_config_maproundcube__host_configurationYes roundcube__git_destroundcube__git_dirNo roundcube__git_checkoutroundcube__git_destNo roundcube__default_pluginsThe same Yes, check variable Due to the change in the installation method, the Roundcube installation needs to be done from scratch. Before the role can work correctly, you should remove (or move aside) the source and installation directories. In the default setup you can run on a host:
rm -rf /srv/www/sites/roundcube/public /usr/local/src/roundcubeThis will remove the installation and source directories, after which the role should be able to install Roundcube without issues. Remember to create backups in case of errors, especially if you use the SQLite database as backend since by default it is located inside of the installation directory.
v1.2.0 (2019-12-01)¶
Role configuration changes¶
- In the debops.dnsmasq role, dnsmasq__interfaces variable
configuration, the
router_enabledparameter has been renamed to therouter_stateparameter, with changed value type. - In the debops.golang role, the
golang__*_packagesvariables are used to define Go packages instead of simple list of APT packages, with entirely new syntax. Existing roles that rely on these variables might need to be updated. See the golang__packages documentation for more details.
Inventory variable changes¶
The debops.gitlab role has an improved LDAP support that uses the debops.ldap role infrastructure. Due to that, some of the default variables have been changed:
Old variable name New variable name Changed value gitlab_ldap_activedirectorygitlab__ldap_activedirectoryNo gitlab_ldap_enablegitlab__ldap_enabledNo gitlab_ldap_basedngitlab__ldap_base_dnYes gitlab_ldap_binddngitlab__ldap_binddnYes gitlab_ldap_domainRemoved No gitlab_ldap_hostgitlab__ldap_hostNo gitlab_ldap_labelgitlab__ldap_labelNo gitlab_ldap_manageRemoved No gitlab_ldap_methodgitlab__ldap_encryptionYes gitlab_ldap_passwordgitlab__ldap_bindpwYes gitlab_ldap_password_fileRemoved No gitlab_ldap_portgitlab__ldap_portNo gitlab_ldap_uidgitlab__ldap_account_attributeYes The location of the GitLab LDAP account object in the LDAP directory tree as well as the object class and its attributes has been changed, see the debops.gitlab LDAP DIT documentation page for more details.
Some of the default configuration options have been changed to better integrate GitLab with the LDAP environment managed by DebOps:
Variable name Old value New value gitlab__ldap_user_filternot defined too large; see the variable gitlab__ldap_labelldap.{{ ansible_domain }}LDAPThe debops.owncloud role has an improved LDAP support that uses the debops.ldap role infrastructure. Due to that, some of the default variables have been changed:
Old variable name New variable name Changed value owncloud__ldap_create_userRemoved No owncloud__ldap_domainRemoved No owncloud__ldap_basednowncloud__ldap_base_dnYes owncloud__ldap_conf_mapowncloud__ldap_default_configYes owncloud__ldap_hostowncloud__ldap_primary_serverYes owncloud__ldap_passwordowncloud__ldap_bindpwYes owncloud__ldap_password_fileRemoved No The location of the Nextcloud LDAP account object in the LDAP directory tree as well as the object class and its attributes has been changed, see the debops.owncloud LDAP DIT documentation page for more details.
The default connection method used by Nextcloud to connect to the LDAP directory has been changed from
ssltotls.The LDAP configuration method was rewritten and now uses custom DebOps filter plugins to allow merging of configuration from the role defaults and inventory variables. See owncloud__ldap_config for more details.
Some of the default configuration options have been changed to better integrate Nextcloud with the LDAP environment managed by DebOps:
Variable name Old value New value owncloud__ldap_login_filter(&(|(objectclass=inetOrgPerson))(uid=%uid))too large; see the variable owncloud__ldap_group_filter(&(|(objectclass=posixGroup)))too large; see the variable owncloud__ldap_group_assoc_attributememberUidmemberSupport for the memberOf overlay has also been enabled by default, since the overlay is included in debops.slapd role.
In the debops.ferm role, some of the connection tracking parameters have been renamed:
Old parameter name New parameter name Changed value item.active_targetitem.tracking_active_targetNo item.invalid_targetitem.tracking_invalid_targetNo item.moduleitem.tracking_moduleNo See The 'connection_tracking' type for more details about connection tracking.
v1.1.0 (2019-08-25)¶
GPG key management changes¶
The debops.keyring centralizes management of the APT keyring and various GPG keyrings in unprivileged UNIX accounts. Various DebOps roles have been modified to use this role instead of performing the GPG key management on their own. If you use custom Ansible playbooks with these roles, you will need to update them to include the debops.keyring role.
List of modified DebOps roles:
- debops.ansible
- debops.cran
- debops.docker_registry
- debops.docker_server
- debops.elastic_co
- debops.gitlab_runner
- debops.hashicorp
debops.hwraid- debops.icinga
- debops.mariadb
- debops.mariadb_server
- debops.mosquitto
- debops.nginx
- debops.nodejs
- debops.owncloud
- debops.php
- debops.postgresql
- debops.postgresql_server
- debops.rstudio_server
- debops.salt
- debops.yadm
debops-contrib.bitcoinddebops-contrib.neurodebiandebops-contrib.x2go_server
NodeJS and NPM changes¶
By default, the debops.nodejs role will install the NodeJS and NPM packages from the OS (Debian or Ubuntu) repositories. On the Debian Oldstable release (currently Stretch), the packages backported from the Stable release will be used. The role supports an automatic upgrade to the upstream NodeJS package when the support for NodeSource repositories is enabled using the
nodejs__node_upstreamvariable.On existing installations, status of the upstream APT repository should be preserved, however note that the Ansible local fact name that tracks this has been changed to
ansible_local.nodejs.node_upstream, along with the default variable name. You might want to update the Ansible inventory to reflect the desired status of the NodeJS and NPM upstream support.
Inventory variable changes¶
The debops.rsnapshot role has been redesigned and all of its
rsnapshot_*variables have been renamed torsnapshot__*to contain them in their own namespace. You will have to update your inventory.The configuration of the hosts to back up has also been redesigned; the role does not use Ansible inventory groups to define the hosts to back up implicitly; you now have to explicitly specify hosts to back up using the rsnapshot__hosts variables. There is a way to replicate the previous usage of inventory groups to define hosts to back up as well, see the provided examples.
The
debops.dockerrole has been renamed to debops.docker_server. Thedocker__*variables have been renamed todocker_server__*. You will have to update your inventory variables and move all hosts to the new inventory group[debops_service_docker_server]to continue using this role.Also, the Docker server no longer listens on a TCP port by default, even if debops.pki is enabled. You must set
docker_server__tcptoTrueand configure an IP address whitelist indocker_server__tcp_allowif you want to connect to the Docker server over a network. It is recommended to use debops.pki to secure the connection with TLS.The debops.lxc role uses different names of the container configuration options depending on the LXC version used on the host. The
nameparameters used in the configuration might change unexpectedly between LXC versions, which might lead to wrong configuration entries being merged and broken LXC configuration.If you have configured lxc__configuration variables in the Ansible inventory, review them before applying the role configuration on LXC hosts. You can check the
lxc__default_configurationvariable to see whichnameparameters can change.The
lxc__net_interface_fqdnvariable has been renamed tolxc__net_fqdnto conform to the variable naming scheme for domain and FQDN names used in different DebOps roles. The new variable defines the FQDN name of thelxcbr0interface. Thelxc__net_domainvariable which has done that previously is now used to define the DNS domain for the internal LXC subnet, and the newlxc__net_base_domainvariable defines the base DNS domain for thelxc.subdomain.The debops.ipxe role default variables have been renamed to move them to their own
ipxe__*namespace; you will have to update the Ansible inventory.The
core__keyservervariable and its corresponding local fact have been replaced by thekeyring__keyserverwith a corresponding local fact.The debops.nginx role no longer defaults to limiting the allowed HTTP request methods to GET, HEAD and POST on PHP-enabled websites. Use the
item.php_limit_exceptparameter if you want to keep limiting the request methods.The
nodejs__upstream*variables in the debops.nodejs role have been renamed tonodejs__node_upstream*to better indicate their purpose and differentiate them from thenodejs__yarn_upstream*variables.The
dokuwiki__main_domainvariable has been renamed todokuwiki__fqdnto fit the naming scheme in other DebOps roles.
v1.0.0 (2019-05-22)¶
Redesigned OpenLDAP support¶
- The debops.slapd role has been redesigned from the ground up, everything is new. Existing OpenLDAP servers/clusters will break if the new role is applied on them, don't do it. Set up a new OpenLDAP server/cluster and import the LDAP directory afterwards. See the role documentation for more details.
Changes to the UNIX group and account management¶
The debops.users Ansible role has been modernized and it now uses the custom Ansible filter plugins included in DebOps to manage the UNIX groups and accounts. The group and account management now uses the same merged list of entries, which means that two new parameters have been added to control when groups or accounts are created/removed. You might need to update your inventory configuration if you use the role to create UNIX groups without corresponding accounts, or you put UNIX accounts in shared primary groups.
By default, debops.users will create user private groups if
item.groupparameter is not specified; if you want to add accounts to theusersprimary group, you need to specify it explicitly.The
userparameter can be used to disable the account management, so that only UNIX group is created. Theprivate_groupparameter controls the management of the UNIX group for a given configuration entry. See the role documentation for more details.The
users__default_systemvariable has been removed from the debops.users role. The UNIX groups and accounts created by the role on hosts with the LDAP support will be normal accounts, not "system" accounts, and will use UID/GID >= 1000. This can be controlled per-user/per-group using theitem.systemparameter.The
item.createhomeparameter has been renamed toitem.create_homein accordance with the renamed parameter of theuserAnsible module.The
users__resources,users__group_resourcesandusers__host_resourcesvariables have been removed. Their functionality has been reimplemented as theitem.resourcesparameter of theusers__*_accountsvariables. See the role documentation for more details.The management of the admin accounts has been removed from the debops.users role and is now done in the debops.system_users role. See the
system_users__default_accountsfor a list of the default admin accounts created on the remote hosts.
Inventory variable changes¶
The debops.phpipam has been refactored. Now the variables have been renamed from
phpipam_*tophpipam__*The debops.auth default variables related to LDAP client configuration have been removed; the functionality is now managed by the debops.ldap, debops.nslcd and debops.nsswitch Ansible roles. The table below shows the old variable names and their new equivalents:
Old variable name New variable name Changed value auth_ldap_confldap__enabledFalseby defaultauth_ldap_conf_domainldap__domainNo auth_ldap_conf_hostdnRemoved No auth_ldap_conf_urildap__servers_uriBased on DNS SRV records auth_ldap_conf_tls_cacertRemoved In ldap__default_configurationauth_ldap_conf_tls_reqcertRemoved In ldap__default_configurationauth_ldap_conf_optionsRemoved In ldap__default_configurationauth_nsswitchRemoved Replaced by debops.nsswitch auth_nslcd_confRemoved Replaced by debops.nslcd auth_nslcd_domainRemoved No auth_nslcd_ldap_serverRemoved No auth_nslcd_uriRemoved In nslcd__default_configurationauth_nslcd_basenslcd__ldap_base_dnBased on debops.ldap facts auth_nslcd_tls_reqcertRemoved In nslcd__default_configurationauth_nslcd_tls_cacertfileRemoved In nslcd__default_configurationauth_nslcd_bind_host_basednnslcd__ldap_device_dnBased on debops.ldap facts auth_nslcd_bind_host_cnnslcd__ldap_self_rdnYes, different attribute, different value source auth_nslcd_bind_host_dnnslcd__ldap_binddnNo auth_nslcd_bind_host_basepwnslcd__ldap_bindpwNo auth_nslcd_bind_host_passwordRemoved No auth_nslcd_bind_host_hashRemoved No auth_nslcd_password_lengthRemoved No auth_nslcd_optionsRemoved No auth_nslcd_nss_min_uidRemoved In nslcd__default_configurationauth_pam_mkhomedir_umasknslcd__mkhomedir_umaskNo auth_nslcd_pam_authz_searchRemoved No auth_nslcd_pam_authz_search_hostRemoved No auth_nslcd_pam_authz_search_serviceRemoved No auth_nslcd_pam_authz_search_host_and_serviceRemoved No The
sshd__default_allow_groupsdefault variable has been changed to an empty list. The group-based access control has been moved to a PAM access control rules defined in thesshd__pam_access__dependent_rulesvariable.Access to the OpenSSH service by the
admins,sshusersandsftponlyUNIX groups members should work the same as before. Access to therootaccount has been limited to hosts in the same DNS domain. UNIX accounts not in the aforementioned UNIX groups can access the OpenSSH service from hosts in the same DNS domain (other restrictions like public key presence still apply). See debops.pam_access documentation for more details about defining the PAM access rules.The default variables in the debops.sshd role related to LDAP support have been modified:
Old variable name New variable name Changed value sshd__authorized_keys_lookupNot modified Based on debops.ldap facts sshd__authorized_keys_lookup_userNot modified Yes, to sshdsshd__authorized_keys_lookup_groupRemoved No sshd__authorized_keys_lookup_homeRemoved No sshd__authorized_keys_lookup_typeNot modified Yes, sssincluded by defaultsshd__ldap_domainRemoved No sshd__ldap_basesshd__ldap_base_dnBased on debops.ldap facts sshd__ldap_bind_basednsshd__ldap_device_dnBased on debops.ldap facts sshd__ldap_bind_cnsshd__ldap_self_rdnYes, different attribute, different value source sshd__ldap_bind_dnsshd__ldap_binddnYes sshd__ldap_bind_bind_pwsshd__ldap_bindpwYes, different password path sshd__ldap_bind_basepwRemoved No sshd__ldap_password_lengthRemoved No The management of the
rootaccount dotfiles has been removed from the debops.users role and is now included in the debops.root_account role. The dotfiles are managed using yadm script, installed by the debops.yadm role. Theusers__root_accountslist has been removed.
v0.8.1 (2019-02-02)¶
Subordinate UID/GID ranges for root¶
The debops.root_account role will register a set of UID/GID ranges for the
rootaccount in the/etc/subuidand/etc/subgiddatabases. Depending on the OS distribution and release, these databases might contain existing UID/GID ranges which might interfere with the default set of 100000-165536 UID/GID range selected for therootaccount.In that case you should either disable this functionality, or recreate the host, at which point the UID/GID ranges for
rootwill be reserved first, and any new accounts created by the system will use subsequent UIDs/GIDs. You can also update the UID/GID ranges manually, or select different UID/GID ranges for therootaccount in the role defaults.
Changes to Redis support in GitLab¶
- The Redis support has been removed from the debops.gitlab playbook. Since GitLab still requires Redis to work properly, you need to enable debops.redis_server role explicitly for the GitLab host. GitLab installation instructions have been updated to reflect this fact.
- To manage Redis on existing GitLab installations, you should enable the debops.redis_server role on them and run the Redis and GitLab playbooks afterwards. The existing Redis instance will be stopped and new Redis instance will be set up, with the same TCP port and password. Since the database will be empty, Gitaly service might stop working. After running the Redis Server and GitLab playbooks, restart the entire GitLab slice to re-populate Redis. You might expect existing GitLab sessions to be invalid and users to have to log in again.
- The debops.redis_server role will configure APT preferences on Debian
Stretch to install Redis from the
stretch-backportsrepository. The playbook run on existing installations will not upgrade the packages automatically, but you might expect it on normal system upgrade.
Redesigned DNSmasq support¶
- The debops.dnsmasq role has been redesigned from the ground up. The configuration is now merged from multiple sources (role defaults, Ansible inventory), role defines separate subdomains for each of the network interfaces, and automatically enables support for local Consul DNS service or LXC subdomain if they are detected on the host.
- Most of the
dnsmasq__*default variables that defined the dnsmasq configuration have been removed. Their functionality is exposed either as parameters of network interface configuration, or can be easily changed via the main configuration pipeline. See the documentation of dnsmasq__configuration or dnsmasq__interfaces for more details. If you use DNSmasq on a host managed by DebOps, you will have to modify your Ansible inventory. - The generated dnsmasq configuration has been split from a single
00_main.confconfiguration file into multiple separate files stored in the/etc/dnsmasq.d/directory. The old00_main.confconfiguration file will be automatically removed if found, to avoid issues with duplicated configuration options. - The role provides an easy to use way to define DHCP clients with IP address reservation, as well as DNS resource records. See dnsmasq__dhcp_hosts, dnsmasq__dns_records documentation for examples and more details.
- The configuration of TCP Wrappers for the TFTP service has been removed from the debops.dnsmasq role, and is now done via the debops.tcpwrappers Ansible role and its dependent variables.
Inventory variable changes¶
The debops.grub role was redesigned, most of the
grub_*default variables have been removed and the new configuration method has been implemented. The role variables have been namespaced, the role now usesgrub__*variable naming scheme. Check the role documentation for details about configuring GRUB via Ansible inventory.Variables related to dhcp_probe in the debops.dhcpd role have been replaced with the variables from the debops.dhcp_probe role. They are now namespaced and mostly with the same value types.
The new debops.dhcp_probe role utilizes systemd templated instances, and might not work correctly on older Debian/Ubuntu releases.
The variables related to packet forwarding in the debops.ferm role and related roles have been removed:
ferm__forwardferm__forward_acceptferm__external_interfacesferm__internal_interfaceslibvirtd__ferm__forwardlxc__ferm__forward
The related Ansible local fact
ansible_local.ferm.forwardhas also been removed.You can use the debops.ifupdown role to configure packet forwarding per network interface, in the firewall as well as via the kernel parameters.
Host and domain management has been removed from the
debops.bootstraprole. This functionality is now done via the debops.netbase role, included in the bootstrap playbook. Some of the old variables have their new equivalents:Old variable name New variable name Changed value bootstrap__hostname_domain_config_enablednetbase__hostname_config_enabledNo bootstrap__hostnamenetbase__hostnameNo bootstrap__domainnetbase__domainNo bootstrap__etc_hostsRemoved No bootstrap__hostname_v6_loopbackRemoved No Support for configuring IPv6 loopback address has been removed entirely. This was required when some of the DebOps roles relied on the
ansible_fqdnvalue for task delegation between hosts. Since then, task delegation has been updated to use theinventory_hostnamevalues and ensuring that the IPv6 loopback address resolves to a FQDN address of the host is no longer required.The
netbase__*_hostsvariables in the debops.netbase role have been redesigned to use YAML lists instead of dictionaries. See netbase__hosts for more details.The
resources__group_namevariable has been removed in favor of using all the groups the current hosts is in. This change has been reflected in the updated variableresources__group_templates. If you need to use a specific group update theresources__group_templatesaccordingly. Read the documentation about resources__templates for more details on templating with debops.resources.
v0.8.0 (2018-08-06)¶
UNIX account and group configuration¶
- Configuration of UNIX system groups and accounts included in the
adminsUNIX group has been removed from the debops.auth role. This functionality is now done by the debops.system_groups role. The variable names and their values changed, see the debops.system_groups role documentation for details.
GitLab gitaly installation¶
The debops.gitlab role will now build and install the gitaly service using unprivileged
gitUNIX account instead ofroot. To perform the update correctly, you might need to remove directories/usr/local/src/gitlab/gitlab.com/gitaly.git/ /var/local/git/gitaly/
Some files in these directories are owned by
rootand that can prevent the correct build of the Go binaries. You might also want to stop thegitlab-gitaly.serviceservice and start it afterwards.The above steps shouldn't impact new GitLab installations.
UTF8 encoding in MariaDB¶
- The debops.mariadb_server and debops.mariadb roles will now use
the
utf8mb4character encoding by default. This encoding is the real UTF-8 encoding and not the internal MySQL encoding. This change might impact existing MySQL databases; you can read an UTF-8 conversion guide to check if your database needs to be converted.
Inventory variable changes¶
The
console_preferred_editorslist has been removed, configuration of the preferred vim editor is now done in the debops.apt_install role which also installs it.The
console_custom_filesvariable has been removed along with the functionality indebops.consolerole. Use the debops.resources role variables to copy custom files instead. The role is also included in the common playbook, although a bit earlier, which shouldn't impact normal use cases.The management of the
/etc/hostsfile has been removed from thedebops.consolerole and is now done via the debops.netbase role which has to be enabled through the Ansible inventory. The variables have been renamed:Old variable name New variable name Changed value console_hostsnetbase__hostsNo console_group_hostsnetbase__group_hostsNo console_host_hostsnetbase__host_hostsNo Configuration of the APT autoremove options has been moved from the debops.apt role to the debops.apt_mark role, because the latter role has more specific scope. The variable names as well as their default values have been changed to correctly reflect the meaning of the corresponding APT configuration options:
Old variable name New variable name Changed value apt__autoremove_recommendsapt_mark__autoremove_recommends_importantYes, to Trueapt__autoremove_suggestsapt_mark__autoremove_suggests_importantYes, to TrueBy default the APT packages installed via Recommends or Suggests dependencies will not be considered for autoremoval. If the user sets any package configuration via debops.apt_mark role, the autoremoval will be enabled automatically.
The
bootstrap__sudoandbootstrap__sudo_groupvariables have been removed from thedebops.bootstraprole. Thebootstrap.ymlplaybook now uses the debops.sudo role to configure sudo service on a host, use its variables instead to control the service in question.The
bootstrap__admin_groupsvariable will now use list of UNIX groups withrootaccess defined by the debops.system_groups via Ansible local facts.The contents of the
sshd__allow_groupsvariable have been moved to the newsshd__default_allow_groupsvariable. The new variable also uses the debops.system_groups Ansible local facts as a data source.The
bootstrap__rawandbootstrap__mandatory_packagesvariables have been removed. See the debops.python role documentation for their equivalents.The
apt_install__python_packagesvariable has been removed from the debops.apt_install role. Use the debops.python Ansible role to install Python packages.The
nodejs__upstream_versionvariable has been renamed tonodejs__node_upstream_releaseto better represent the contents, which is not a specific NodeJS version, but a specific major release.The
gitlab_domainvariable, previously used to set the FQDN of the GitLab installation, now only sets the domain part; it's value is also changed from a YAML list to a string.The
gitlab__fqdnvariable is now used to set the GitLab FQDN and uses thegitlab_domainvalue as the domain part.
v0.7.2 (2018-03-28)¶
No changes.
v0.7.1 (2018-03-28)¶
X.509 certificate changes¶
The debops.pki role now generates the default X.509 certificate for the
domainPKI realm with a wildcard entry for the host's FQDN (for example,*.host.example.org). This will be true by default on new hosts introduced to the cluster; if you want your old hosts to have the new X.509 certificates, you need to recreate thedomainPKI realm by removing the/etc/pki/realms/domain/directory on the remote hosts and re-running the debops.pki role against them.The change is done in the
pki_default_realmsvariable, if you redefined it in the Ansible inventory, you might want to update your version to include the new SubjectAltName entry.The latest acme-tiny Python script uses ACMEv2 API by default, and the debops.pki role is now compatible with the upstream changes. The ACME certificates should work out of the box in new PKI realms, after the acme-tiny installation is updated.
The existing PKI realms will stop correctly regenerating Let's Encrypt certificates, because their configuration is not updated automatically by the role. The presence of the
acme/error.logfile will prevent the acme-tiny script from requesting the certificates to not trip the Let's Encrypt rate limits.Easiest way to fix this is to remove the entire PKI realm (
/etc/pki/realms/*/directory) and re-run the debops.pki role against the host. The role will create a new PKI realm based on the previous configuration and ACME certificates should start working again. Services like nginx that have hooks in the/etc/pki/hooks/directory should be restarted automatically, you might need to manually restart other services as needed.Alternatively, you can update the Let's Encrypt API URL in the realm's
config/realm.conffile by replacing the line:config['acme_ca_api']='https://acme-v01.api.letsencrypt.org'
with:
config['acme_ca_api']='https://acme-v02.api.letsencrypt.org/directory'
This should tell the pki-realm script to send requests for new certificates to the correct URL. You still need to run the debops.pki role against the host to install the updated pki-realm script and update the acme-tiny script.
Role changes¶
The debops.debops role now uses the debops.ansible role to install Ansible instead of doing it by itself. The relevant code has been removed, see the debops.ansible role documentation for new variables.
The
debops-contrib.kernel_modulerole has been replaced by the debops.kmod role. All of the variable names have been changed, as well as their usage. See the documentation of the new role for more details.The debops.proc_hidepid role was modified to use a static GID
70for theprocadminsgroup to allow synchronization between host and LXC containers on that host. The role will apply changes in the/etc/fstabconfiguration file, but it will not change existing/procmount options. You need to remount the filesystem manually, with a command:ansible all -b -m command -a 'mount -o remount /proc'The
/procfilesystem mounted inside of LXC containers cannot be remounted this way, since it's most likely mounted by the host itself. You will need to check the LXC container configuration in the/var/lib/lxc/*/configfiles and update the mount point options to use the new static GID. Restart the LXC container afterwards to remount the/procfilesystem.You will also need to restart all services that rely on the
procadminsgroup, for example snmpd, to activate the new GID.The debops.sysctl configuration has been redesigned. The role now uses YAML lists instead of YAML dictionaries as a base value of the
sysctl__*_parametersdefault variables. The kernel parameter configuration format has also been changed to be easy to override via Ansible inventory. Role can now configure multiple files in/etc/sysctl.d/directory. Refer to the role documentation for details.
Inventory variable changes¶
The debops.netbox role has been updated, some variable names were changed:
Old variable name New variable name Changed value netbox__config_netbox_usernamenetbox__config_napalm_usernameNo netbox__config_netbox_passwordnetbox__config_napalm_passwordNo The variables that specify files to ignore in the new debops.etckeeper role have been renamed from their old versions in
debops-contrib.etckeeperrole, and their value format changed as well. See the documentation of the new role for details.
v0.7.0 (2018-02-11)¶
This is mostly a maintenance release, dedicated to reorganization of the DebOps git repository and expanding documentation.
Role changes¶
- The debops.nodejs role now installs NPM using a script in upstream git repository. This might cause issues with already installed NPM package, because of that it will be automatically removed by the role if found. You should verify that the role behaves correctly on existing systems before applying it in production.
- The debops.gunicorn role has rewritten configuration model based on systemd instanced units. The existing configuration shouldn't interfere, however you might need to update the Ansible inventory configuration variables to the new syntax.
Inventory variable changes¶
The localization configuration previously located in the
debops.consolerole is now located in the debops.locales role. List of default variables that were affected:Old variable name New variable name Changed value console_localeslocales__default_listNo console_locales_defaultlocales__system_langNo There are also new localization variables for
all hosts,group of hosts,specific hostsanddependent roles.The
/etc/issueand/etc/motdconfiguration has been removed from thedebops.consolerole and is now done by the debops.machine role. List of default variables that were affected:Old variable name New variable name Changed value console_issuemachine__organizationNo console_motdmachine__motdNo The support for dynamic MOTD has been implemented by the debops.machine role, you might want to use that instead of the static MOTD file.
Configuration of the
/prochidepid=option has been removed from thedebops.consoleand is now available in the new debops.proc_hidepid Ansible role. List of default variables that were affected:Old variable name New variable name Changed value console_proc_hidepidproc_hidepid__enabledNo console_proc_hidepid_levelproc_hidepid__levelNo console_proc_hidepid_groupproc_hidepid__groupNo The logic to enable/disable the
hidepid=configuration has been moved to theproc_hidepid__enabledvariable to be more accessible. The role creates its own set of Ansible local facts with new variable names, you might need to update configuration of the roles that relied on them.Configuration of the
sysnewspackage has been removed from thedebops.consolerole, it's now available in the debops.sysnews Ansible role. There were extensive changes in the variable names and parameters, read the documentation of the new role for details.
v0.6.0 (2017-10-21)¶
This is an initial release based off of the previous DebOps roles, playbooks and tools located in separate git repositories. There should be no changes needed between the old and the new infrastructure and inventory.