Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Which server automation tools do you run with Cloudron?

Which server automation tools do you run with Cloudron?

Scheduled Pinned Locked Moved Discuss
8 Posts 5 Posters 513 Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oatmealdegree
    wrote on last edited by
    #1

    Hey everyone!

    I'm curious about the kinds of tools you're running alongside Cloudron to help with sysadmin tasks, especially those related to automation and orchestration.

    Are you integrating external tools for things like:

    Server patching?

    Config backups?

    Scripted provisioning?

    Multi-app deployment?

    Would love to learn what works best for your setup — CLI tools, platforms, custom scripts, anything goes!

    1 Reply Last reply
    1
    • SansGuidonS Offline
      SansGuidonS Offline
      SansGuidon
      wrote on last edited by
      #2
      • ci/cd pipelines my app custom scripts, configs and cron jobs are managed via ci/cd pipelines using Cloudron CLI/API. That's what I'm most happy with.
      • auto-repair scripts for application that can crash (without restarting) in Cloudron, so this will in fact monitor some apps every x minutes and restart them if they timeout for too often/long.
      • monitoring of UI notifications via changedetection because it works best than monitoring via API.
      • monitoring of my apps via uptime kuma

      other stuff I do

      • automated server backups of course
      • manual backups before/after big configuration changes

      stuff I want to improve

      • deployment of custom apps : still via CLI for now whereas I want to use ci/cd
      • monitoring of remaining disk space (still manual)
      • monitoring of app logs (still manual for now) to check for weird behaviors

      About me / Now

      timconsidineT 1 Reply Last reply
      2
      • T Offline
        T Offline
        tilerseem
        wrote on last edited by
        #3

        Cool topic! I’ve tried a bunch of stuff to streamline my infra, especially when juggling multiple servers.

        Some things I rely on:

        Puppet: still my go-to for config management and app bootstrapping.

        Cronicle: great for scheduling and logging tasks that don’t need a full CI/CD pipeline.

        Attune: lets you write scripts and orchestrate them across machines.

        Restic for backups, especially when paired with rclone.

        Would be awesome if Cloudron supported hooks into these kinds of tools natively someday!

        1 Reply Last reply
        2
        • SansGuidonS SansGuidon
          • ci/cd pipelines my app custom scripts, configs and cron jobs are managed via ci/cd pipelines using Cloudron CLI/API. That's what I'm most happy with.
          • auto-repair scripts for application that can crash (without restarting) in Cloudron, so this will in fact monitor some apps every x minutes and restart them if they timeout for too often/long.
          • monitoring of UI notifications via changedetection because it works best than monitoring via API.
          • monitoring of my apps via uptime kuma

          other stuff I do

          • automated server backups of course
          • manual backups before/after big configuration changes

          stuff I want to improve

          • deployment of custom apps : still via CLI for now whereas I want to use ci/cd
          • monitoring of remaining disk space (still manual)
          • monitoring of app logs (still manual for now) to check for weird behaviors
          timconsidineT Online
          timconsidineT Online
          timconsidine
          App Dev
          wrote on last edited by
          #4

          @SansGuidon said in Which server automation tools do you run with Cloudron?:

          monitoring of remaining disk space (still manual)

          I use ntfy (here on Cloudron) and a small script run via cron.

          SansGuidonS 1 Reply Last reply
          2
          • timconsidineT timconsidine

            @SansGuidon said in Which server automation tools do you run with Cloudron?:

            monitoring of remaining disk space (still manual)

            I use ntfy (here on Cloudron) and a small script run via cron.

            SansGuidonS Offline
            SansGuidonS Offline
            SansGuidon
            wrote on last edited by SansGuidon
            #5

            @timconsidine said in Which server automation tools do you run with Cloudron?:

            @SansGuidon said in Which server automation tools do you run with Cloudron?:

            monitoring of remaining disk space (still manual)

            I use ntfy (here on Cloudron) and a small script run via cron.

            Yes that looks like a good idea, I would need to spend some time to glue all this in a proper script.

            About me / Now

            timconsidineT 1 Reply Last reply
            1
            • SansGuidonS SansGuidon

              @timconsidine said in Which server automation tools do you run with Cloudron?:

              @SansGuidon said in Which server automation tools do you run with Cloudron?:

              monitoring of remaining disk space (still manual)

              I use ntfy (here on Cloudron) and a small script run via cron.

              Yes that looks like a good idea, I would need to spend some time to glue all this in a proper script.

              timconsidineT Online
              timconsidineT Online
              timconsidine
              App Dev
              wrote on last edited by
              #6

              @SansGuidon I have a basic script (nb basic) which I will dig out

              1 Reply Last reply
              2
              • SansGuidonS Offline
                SansGuidonS Offline
                SansGuidon
                wrote on last edited by
                #7

                Thanks, in the meantime I cooked something like this that I put under some /app/data/scripts/cloudron folder in some LAMP server

                check_storage.sh
                ---
                #!/usr/bin/env bash
                set -euo pipefail
                
                CONFIG_FILE="/app/data/scripts/cloudron/cloudron_monitor.env"
                [ -f "$CONFIG_FILE" ] || { echo "Missing config file: $CONFIG_FILE" >&2; exit 1; }
                source "$CONFIG_FILE"
                
                CLOUDRON_URL="https://my.cloudronsrv.tld"
                NTFY_URL="https://ntfy.cloudronsrv.tld"
                ALERT_THRESHOLD=75 # %
                
                # get raw JSON from Cloudron
                disk_json=$(curl -sS -H "Authorization: Bearer ${CLOUDRON_TOKEN}" \
                    -H "Content-Type: application/json" \
                    "$CLOUDRON_URL/api/v1/system/disk_usage")
                
                # parse and alert if needed
                alerted=0
                echo "$disk_json" | jq -r '
                  .usage.filesystems
                  | to_entries[]
                  | {fs: .key, cap: (.value.capacity * 100 | floor)}
                  | select(.cap >= '"$ALERT_THRESHOLD"')
                  | "\(.fs): \(.cap)% used"
                ' | while read -r line; do
                    # Send alert via ntfy
                    curl -sS -u "$NTFY_USER:$NTFY_PASS" \
                      -H "Title: Disk usage alert" \
                      -H "Tags: warning,disk" \
                      -d "$line" \
                      "$NTFY_URL/disk-alert"
                    alerted=1
                done
                
                exit "$alerted"
                
                
                ---
                cloudron_monitor.env.template
                ---
                NTFY_PASS='xxxxxxxxx'
                NTFY_USER='yyyyyyyyy'
                CLOUDRON_TOKEN='xxxx'
                

                which does the job

                About me / Now

                1 Reply Last reply
                2
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by joseph
                  #8

                  I have a custom bash script which copies /home/yellowtent/appsdata/* into an external disk every week or so. Just to add another layer of backup on top of Cloudron backups. So far, I haven't needed to use it, but you never know .

                  edit: also copies /home/yellowtent/boxdata

                  1 Reply Last reply
                  2
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search