Coder Social home page Coder Social logo

Comments (4)

nrhodes91 avatar nrhodes91 commented on August 13, 2024

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.

reaperzn avatar reaperzn commented on August 13, 2024

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:

  1. 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)"
  2. 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.

nrhodes91 avatar nrhodes91 commented on August 13, 2024

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.

nrhodes91 avatar nrhodes91 commented on August 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.