ocf / puppet

Puppet config for OCF servers and lab machines
https://www.ocf.berkeley.edu/
31 stars 71 forks source link

Chrome filesystem usage fix #1404

Closed lharriscal closed 11 months ago

lharriscal commented 11 months ago

Added code to clear google chrome cache and config upon xsession cleanup (ie user logging out).

This should fix an issue with chrome cache and config taking up too much space to the point of crashing the desktops.

Does remove persistance of config between user sessions, but it is chrome specific, and we do not explicitly support such persistance anyways.

Tested on my laptop with lightdm and works. Tested on OCF desktop by trinity. ``

ocfjenkins[bot] commented 11 months ago

Errored hosts (0)

Changed hosts (29)

Unaffected hosts (37)


Changed hosts
diff for acid.ocf.berkeley.edu, arsenic.ocf.berkeley.edu, asteroid.ocf.berkeley.edu, avalanche.ocf.berkeley.edu, bigbang.ocf.berkeley.edu, blackout.ocf.berkeley.edu, blight.ocf.berkeley.edu, blizzard.ocf.berkeley.edu, chaos.ocf.berkeley.edu, cyanide.ocf.berkeley.edu, cyclone.ocf.berkeley.edu, destruction.ocf.berkeley.edu, drought.ocf.berkeley.edu, famine.ocf.berkeley.edu, firewhirl.ocf.berkeley.edu, hailstorm.ocf.berkeley.edu, headcrash.ocf.berkeley.edu, heatwave.ocf.berkeley.edu, hurricane.ocf.berkeley.edu, invasion.ocf.berkeley.edu, madcow.ocf.berkeley.edu, meteorstorm.ocf.berkeley.edu, outbreak.ocf.berkeley.edu, plague.ocf.berkeley.edu, sinkhole.ocf.berkeley.edu, surge.ocf.berkeley.edu, venom.ocf.berkeley.edu, volcano.ocf.berkeley.edu, wildfire.ocf.berkeley.edu ```diff ******************************************* File[/etc/lightdm/session-cleanup] => parameters => content => @@ -8,3 +8,7 @@ fi _ +# Cleanup Chrome filesystem usage +rm -rf "$HOME/.cache/google-chrome" +rm -rf "$HOME/.config/google-chrome" + sudo -u ocfstats /opt/stats/update-delay.sh cleanup & ******************************************* ```
Unaffected hosts ``` anthrax.ocf.berkeley.edu autocrat.ocf.berkeley.edu bedbugs.ocf.berkeley.edu bermudatriangle.ocf.berkeley.edu biohazard.ocf.berkeley.edu corruption.ocf.berkeley.edu coup.ocf.berkeley.edu dataloss.ocf.berkeley.edu deadlock.ocf.berkeley.edu death.ocf.berkeley.edu dementors.ocf.berkeley.edu democracy.ocf.berkeley.edu dev-death.ocf.berkeley.edu fallingrocks.ocf.berkeley.edu firestorm.ocf.berkeley.edu flood.ocf.berkeley.edu fraud.ocf.berkeley.edu frostbite.ocf.berkeley.edu gridlock.ocf.berkeley.edu hal.ocf.berkeley.edu implosion.ocf.berkeley.edu lethe.ocf.berkeley.edu lightning.ocf.berkeley.edu maelstrom.ocf.berkeley.edu pestilence.ocf.berkeley.edu quarantine.ocf.berkeley.edu reaper.ocf.berkeley.edu riptide.ocf.berkeley.edu scurvy.ocf.berkeley.edu segfault.ocf.berkeley.edu supernova.ocf.berkeley.edu thunder.ocf.berkeley.edu tornado.ocf.berkeley.edu tsunami.ocf.berkeley.edu vampires.ocf.berkeley.edu whiteout.ocf.berkeley.edu windshear.ocf.berkeley.edu ```

Jenkins