/srv/irclogs.ubuntu.com/2024/11/01/#ubuntu-server.txt

manis05We are planning upgrades for our existing servers with two approaches. Plan A involves taking a snapshot of the current server, creating a DigitalOcean Droplet from it, and performing upgrades on the new Droplet, minimizing downtime and avoiding extensive reconfiguration. Plan B requires creating a new Droplet with an updated OS, migrating applications, and reconfiguring settings, which takes longer but offers a clean environment that re02:09
manis05duces legacy issues. After testing, DNS will be updated to point to the new Droplet. Which option do you think is the most efficient, or is there another option?02:09
blahdeblahmanis05: If you don't have the application configuration defined in a codebase like Ansible or Terraform, I would generally go with upgrading the snapshot.  Ubuntu is designed for upgrades.02:13
blahdeblahThat's not to say that there aren't things that can go wrong, but the upgrade means that you have captured the whole machine's state.02:13
blahdeblahI think people often overstate the value of "clean environment that reduces legacy issues".02:14
patdk-lapit just brings in new issues :)02:15
patdk-lapI normally upgrade one system, then upgrade 2 others, then all the rest02:15
patdk-lapa lot of mine date back to lucid02:16
blahdeblahpatdk-lap: nice :-)02:19
manis05@blahdeblah: Thank you! 02:26
manis05patdk-lap: Thank you!02:27
=== lark_ is now known as lark
=== Wyly7 is now known as Wyly
falzhola. the behaviour of `systemctl status <foo>` being auto piped through `less`, and hence requiring pressing a key to return to a prompt really bugs me. I just found out that one can change the default by doing `export SYSTEMD_PAGER=` (yes blank). what's the best way to set this behavrior systme wide? I dont want to do per users bashrc nor do i want to type --no-pager every time. 14:01
falztos soemthing in /etc/bash-profile.d/ ? unsure14:03
falzer /etc/profile.d/14:04
falzdoesn't seem to work. sadface14:27
tomreyn| cat14:42
tomreynworks everytime. because it will only spawn the pager if you're ready to view it interactively.14:43
tomreynthere is /etc/environment{.d/,} and /etc/security/pam_env.conf14:45
falztrying to not issue more commands. will look at environment.d14:52
falzgood to know |cat works though as its shorter than --no-pager14:52
falzI dont see /etc/environment.d/ existing14:53
tomreynfalz: your ubuntu version might be too old to have it, or (i'd say less likely) it could be debian specific (that's what i was looking at)18:16
JanCfalz: did you start a new login shell after adding it in profile.d/ ?18:39
mgedminif /etc/environment.d doesn't exist, /etc/environment itself ought to suffice18:42
falzJanC: i logged out and back in19:20
falzubuntu 2219:20
falzid rather not touch a system file. seems like /etc/profile.d/blah should work since theres other things in there. shrug19:21
Eickmeyerfalz: Stuff in /etc/profile.d have to have a .sh or .csh or whatever extension otherwise they don't work. I'm not sure as to the "why" on the mechanics, but that's just my experience.19:39
falzroger. mine did. will test more on perhaps a different server 19:44
falzwas eyeballing the half dozen other things in there. they have proper suffix but no shebang19:45
Eickmeyerfalz: Right, no shebang needed there, the daemon (presumably logind?) gets what it needs from the extension. In fact, nothing in there needs the executable bit set.20:30
JanC/etc/profile just sources all *.sh in /etc/profile.d/20:58
JanCthe file has to be readable also20:59
JanCfalz: did you make sure the file you added there was readable by all users that need it?20:59
falzgood call - maybe it was that. i think it's working now: echo "export SYSTEMD_PAGER=" > /etc/profile.d/myorg.sh21:13

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!