Coder Social home page Coder Social logo

autopilot's People

Contributors

amotl avatar tonkenfo avatar

Watchers

 avatar  avatar

autopilot's Issues

Unattended upgrades: Configure different reboot time for hypervisors vs. guests

Currently, the reboot time is configured to be 4 o'clock in the morning for all hosts.

# # Configure reboot time. Default is `04:00`.
# export UNATTENDED_REBOOT_TIME=22:00

# If automatic reboot is enabled and needed, reboot at the specific time.
Unattended-Upgrade::Automatic-Reboot-Time "${UNATTENDED_REBOOT_TIME:-04:00}";

It would be better to determine if the program is running on a hypervisor host vs. a guest machine and configure the reboot time differently. For example, I can imagine configuring the reboot time to 5 o'clock for hypervisor hosts instead.

Unattended upgrades: Whitelist package sources for MariaDB and New Relic

Spotted in the wild.

/etc/apt/sources.list.d/mariadb.list

# MariaDB Server
# To use a different major version of the server, or to pin to a specific minor version, change URI below.
deb [arch=amd64,arm64] https://dlm.mariadb.com/repo/mariadb-server/10.7/repo/debian bullseye main

# MariaDB MaxScale
# To use the latest stable release of MaxScale, use "latest" as the version
# To use the latest beta (or stable if no current beta) release of MaxScale, use "beta" as the version
deb [arch=amd64,arm64] https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye main

# MariaDB Tools
deb [arch=amd64] http://downloads.mariadb.com/Tools/debian bullseye main

/etc/apt/sources.list.d/newrelic.list

deb http://apt.newrelic.com/debian/ newrelic non-free

Comparing software versions on the shell

Just a note to self.

function checkver {
    pkg_name="$1"
    pkg_vmin="$2"
    pkg_vcur=$(dpkg-query -f='${Version}\n' --show "$pkg_name")
    if $(dpkg --compare-versions "$pkg_vcur" "lt" "$pkg_vmin"); then return 1; fi
}

checkver unattended-upgrades 1.12 || (echo "Too old!" && exit 3)

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.