Comments (4)
The contrib scripts are more of a recommendation and should be customised depending on your situation. If you're running patching once per month you could always remove the -%d
from the tag from each of the scripts.
from auter.
Hi @ThomBell,
Thanks for pointing this out however please note that this situation has been specifically highlighted in the "Configsnap options used" section of the configsnap readme (https://github.com/rackerlabs/auter/blob/master/contrib/configsnap/README.md)
As stated int the main contrib readme (See the Warning section of https://github.com/rackerlabs/auter/blob/master/contrib/README.md) these scripts are provided as-is and should be reviewed before implementing.
To address your issue, there are a few options available:
- As @nrhodes91 pointed out, if you are running auter on a monthly schedule then you could simply use a different date format ie:
-t auter-configsnap-"$(date +%Y-%m)"
- You could use a more generic tag like
-t auter-configsnap
and create an additional postscript (to be run as the last script of the last stage of your patching plan ie: post-reboot.d) to rename that configsnap directory to include a date ie:
/etc/auter/post-reboot.d/99-rename-configsnap-dir.sh:
#!/bin/bash
mv /root/auter-configsnap /root/auter-configsnap-"$(date +%Y-%m-%d)"
The contrib scripts are provided as a guideline and example however should always be reviewed and adjusted according to your specific requirements. If you do have any ideas for improvements we would be happy to discuss them but we also welcome any contributions via pull requests.
from auter.
Just to continue with the suggestions - an option I looked into the other day would be to run the following cron job:
0 23 1-7 * Sat root RUN="first" /usr/bin/auter --apply
0 23 8-15 * Sat root RUN="second" /usr/bin/auter --apply
And then use $RUN
in the configsnap pre/post scripts -t auter-configsnap-"$(date +%Y-%m)-$RUN"
.
from auter.
Closing this out as the contrib scripts should be altered for each Auter deployment and are there as a guide.
from auter.
Related Issues (20)
- Auter should have a --maxdelay flag for running from the command line HOT 3
- Ubuntu 'apply' fails with cron HOT 1
- Yum in RHEL <=6.6 doesn't have --downloadonly HOT 2
- Update release process documentation
- auter --prep and auter --apply should log how many packages downloaded/installed. HOT 5
- Remove the 01-spellcheck.sh test script HOT 1
- check_package_manager_lock should run inside SLEEP_DELAY HOT 4
- check_package_manager_lock can fail when yum is not running due to stale pid file HOT 1
- Add final STATUS line to 'output files' i.e. /var/lib/auter/last-{phase}-output-default HOT 4
- Auter may reinstall a package during --apply which has been uninstalled since --prep
- Auter not available on CentOS 8? HOT 4
- Record status of pre and post steps in /var/lib/auter status files HOT 1
- Auter Pre & Post Snapshot conflict (with timestamps) HOT 2
- Multilib/arch rpms may fail the "is this an update" test HOT 1
- auter-updater.com website dead HOT 1
- auter-updater.com site does not support https HOT 2
- Is this project being maintained? HOT 1
- Request Maintainer status HOT 4
- Prepare for DNF 5 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auter.