TASK [Ensure replicaset is stable before beginning] **************************************************************************************************************************************
task path: /var/home/attila.pinter/Project/maintenance/mongors_update/mongors_dup.yml:43
280366 1667462506.63087: sending task start callback
280366 1667462506.63095: entering _queue_task() for mongo-1/community.mongodb.mongodb_status
280366 1667462506.63103: Creating lock for community.mongodb.mongodb_status
280366 1667462506.63514: worker is 1 (out of 2 available)
280366 1667462506.63667: exiting _queue_task() for mongo-1/community.mongodb.mongodb_status
280366 1667462506.63876: getting variables
280366 1667462506.63900: in VariableManager get_vars()
Create the update script, nothing fancy. Save it under $HOME/bin. Make it executable.
#!/bin/bash
set -e
echo ================================================================
echo "Updating the TW box"
echo ================================================================
distrobox-enter tw2 -- sudo zypper ref
- Create a systemd service and a timer unit with the below contents
- The unit runs with the user so create the unit and timer under
$HOME/.config/systemd/user/ - Enable the timer only (
systemctl enable --user --now update-user-flatpaks.timer) - Flatpaks will update automatically daily, if an update missed - cause the box was off for instance - it will try it again as soon as it can run again.
Contents of update-user-flatpaks.service:
[Unit]
Description=Update user Flatpaks
- Create a systemd service and a timer unit with the below contents
- The units must run with root so create the units under
/etc/systemd/system/ - Enable the timer only (
systemctl enable --now zypper-dup-download-only.timer) - Use
zypper dupwhenever you ready to update, packages will be cached daily by the units.
Contents of zypper-dup-download-only.service:
[Unit]
Description=Download available updatesUse your service account's key JSON file to get an access token to call Google APIs.
Good for seeing how things work, including the creation of JWT token.
To create a JWT token, you can replace create-jwt-token.sh script with tools like step.
If you just want to get an access token for a service account,
ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4
-r 24- output frame rate-pattern_type glob -i '*.JPG'- all JPG files in the current directory-i DSC_%04d.JPG- e.g. DSC_0397.JPG-s hd1080- 1920x1080 resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # GUI-related packages | |
| pkgs=" | |
| xserver-xorg-video-fbdev | |
| xserver-xorg xinit | |
| gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base | |
| gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa | |
| gstreamer1.0-libav | |
| epiphany-browser |
NewerOlder