Changeset - ba3f7dcdd68b
[Not reviewed]
0 3 0
Branko Majic (branko) - 6 years ago 2018-07-23 12:46:44
branko@majic.rs
MAR-130: Reduce frequency of running pip requirements upgrade checks to once per day.
3 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
docs/releasenotes.rst
Show inline comments
 
@@ -23,12 +23,17 @@ Breaking changes:
 

	
 
New features/improvements:
 

	
 
* Tests have been updated to work with latest Molecule/Testinfra as
 
  part of the Ansible upgrade process.
 

	
 
* ``common`` role
 

	
 
  * The ``pip`` requirements upgrade checks are now performed once per
 
    day instead of once per hour.
 

	
 

	
 
2.0.0
 
-----
 

	
 
Upgrade to Ansible 2.3.x, minor bug fixes and updates needed for the upgrade.
 

	
docs/rolereference.rst
Show inline comments
 
@@ -295,13 +295,13 @@ The role implements the following:
 
  ``.in`` files should contain only the top-level packages (no
 
  dependencies). Avoid hard-coding versions in the ``.in`` file unless really
 
  needed. For packages where you want to stick to stable/LTS version branch, you
 
  should be able to use ``~=`` operator (for example ``django~=1.8.0``. Checks
 
  are implemented via `pip-tools <https://github.com/jazzband/pip-tools>`_ and a
 
  custom script that outputs diffs if upgrades are available. Script is run via
 
  cronjob on hourly basis, and any output will be delivered to local ``root``
 
  cronjob on daily basis, and any output will be delivered to local ``root``
 
  user.
 
* Optionally configures time synchronisation using NTP (if
 
  ``ntp_servers`` parameter is set).
 

	
 

	
 
Role dependencies
roles/common/files/cron_check_pip_requirements
Show inline comments
 
MAILTO=root
 
0 * * * * pipreqcheck /usr/local/bin/pip_check_requirements_upgrades.sh -q -V /var/lib/pipreqcheck/virtualenv /etc/pip_check_requirements_upgrades
 
0 0 * * * pipreqcheck /usr/local/bin/pip_check_requirements_upgrades.sh -q -V /var/lib/pipreqcheck/virtualenv /etc/pip_check_requirements_upgrades
0 comments (0 inline, 0 general)