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
  • 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. Feature Requests
  3. Unattended install?

Unattended install?

Scheduled Pinned Locked Moved Feature Requests
16 Posts 6 Posters 2.3k Views 6 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.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by nebulon
    #4

    Great you brought this up. We had a few attempts for this in the past, mostly around cloud-init scripts, but due to lack of ongoing customer interest, we never really followed through with this. So currently there is no support for such setup configs, but due to the Cloudron REST api one has to fallback to custom scripts for the moment.

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #5

      A while ago, we wrote https://git.cloudron.io/cloudron/cloudron-sysadmin which is basically an unattended install. That script most likely won't work / is obsolete.

      If there's interest, I can write a quick doc on how to write this script. It's really just a bunch of API calls to automate everything. Fee free to automate in the language of your choice.

      robiR BrutalBirdieB 2 Replies Last reply
      2
      • girishG girish

        A while ago, we wrote https://git.cloudron.io/cloudron/cloudron-sysadmin which is basically an unattended install. That script most likely won't work / is obsolete.

        If there's interest, I can write a quick doc on how to write this script. It's really just a bunch of API calls to automate everything. Fee free to automate in the language of your choice.

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #6

        @girish This sounds like the perfect start of a Cloudron Deployer App which can be used to build a series/cluster of Cloudrons, all from one place.

        Conscious tech

        girishG 1 Reply Last reply
        1
        • robiR robi

          @girish This sounds like the perfect start of a Cloudron Deployer App which can be used to build a series/cluster of Cloudrons, all from one place.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #7

          @robi We also tinkered with automating it in cloudron.io, but that requires the user to give us ssh access to the server (atleast, for the duration of deployment) to setup stuff.

          Would that be interesting? Login to Cloudron.io, add an IP address and some deployment parameters and it will go deploy. Underneath, it's probably only web-ifying the deploy script.

          robiR potemkin_aiP 2 Replies Last reply
          1
          • girishG girish

            @robi We also tinkered with automating it in cloudron.io, but that requires the user to give us ssh access to the server (atleast, for the duration of deployment) to setup stuff.

            Would that be interesting? Login to Cloudron.io, add an IP address and some deployment parameters and it will go deploy. Underneath, it's probably only web-ifying the deploy script.

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #8

            @girish Yes, if you solve the self-revoking SSH key workflow to an admin account which you can use as deployment credentials (separate from personal credentials).

            Conscious tech

            1 Reply Last reply
            1
            • girishG girish

              @robi We also tinkered with automating it in cloudron.io, but that requires the user to give us ssh access to the server (atleast, for the duration of deployment) to setup stuff.

              Would that be interesting? Login to Cloudron.io, add an IP address and some deployment parameters and it will go deploy. Underneath, it's probably only web-ifying the deploy script.

              potemkin_aiP Offline
              potemkin_aiP Offline
              potemkin_ai
              wrote on last edited by
              #9

              @girish I don't really like the idea of sharing my SSH key to anyone; nor I like the fact I need to SSH to the new server, but it's really not that much a problem.

              As @nebulon mentioned, I would rather prefer to call it through cloud-init, but every provider is different in this regards, so it sounds like a headache.

              I also feel that Cloudron is more for SMB, mostly for small business - and I doubt small business would install hundres of Cloudrons - please, correct me if I'm wrong (I would be also happy for you to be wrong!).

              girishG 1 Reply Last reply
              0
              • potemkin_aiP potemkin_ai

                @girish I don't really like the idea of sharing my SSH key to anyone; nor I like the fact I need to SSH to the new server, but it's really not that much a problem.

                As @nebulon mentioned, I would rather prefer to call it through cloud-init, but every provider is different in this regards, so it sounds like a headache.

                I also feel that Cloudron is more for SMB, mostly for small business - and I doubt small business would install hundres of Cloudrons - please, correct me if I'm wrong (I would be also happy for you to be wrong!).

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #10

                @potemkin_ai yes, there is no use case to deploy 100s of cloudrons. For the big providers, we have 1-click images but those don't require automation of the configuration.

                1 Reply Last reply
                0
                • girishG girish

                  A while ago, we wrote https://git.cloudron.io/cloudron/cloudron-sysadmin which is basically an unattended install. That script most likely won't work / is obsolete.

                  If there's interest, I can write a quick doc on how to write this script. It's really just a bunch of API calls to automate everything. Fee free to automate in the language of your choice.

                  BrutalBirdieB Offline
                  BrutalBirdieB Offline
                  BrutalBirdie
                  Partner
                  wrote on last edited by
                  #11

                  If the need is big enough I could write an ansible module for cloudron.
                  Which would also be mostly API calls.

                  Like my work? Consider donating a drink. Cheers!

                  potemkin_aiP 2 Replies Last reply
                  3
                  • BrutalBirdieB BrutalBirdie

                    If the need is big enough I could write an ansible module for cloudron.
                    Which would also be mostly API calls.

                    potemkin_aiP Offline
                    potemkin_aiP Offline
                    potemkin_ai
                    wrote on last edited by
                    #12

                    @brutalbirdie thank you very much, appreciate that!
                    The need is not big enough, at least not for now, let me revert back to you, if it will appear to be so

                    1 Reply Last reply
                    1
                    • BrutalBirdieB BrutalBirdie

                      If the need is big enough I could write an ansible module for cloudron.
                      Which would also be mostly API calls.

                      potemkin_aiP Offline
                      potemkin_aiP Offline
                      potemkin_ai
                      wrote on last edited by
                      #13

                      @BrutalBirdie thank you again for your offer.
                      I'm not yet familiar with CloudRon API and I'm considering creating a manage / hosted solution with cloudron at it's heart - could you probably help me by pointing out some ready to use scripts or like Insomnia pre-sets, for a quick-start?

                      BrutalBirdieB 1 Reply Last reply
                      0
                      • potemkin_aiP potemkin_ai

                        @BrutalBirdie thank you again for your offer.
                        I'm not yet familiar with CloudRon API and I'm considering creating a manage / hosted solution with cloudron at it's heart - could you probably help me by pointing out some ready to use scripts or like Insomnia pre-sets, for a quick-start?

                        BrutalBirdieB Offline
                        BrutalBirdieB Offline
                        BrutalBirdie
                        Partner
                        wrote on last edited by
                        #14

                        @potemkin_ai not really.
                        Best way to get started would be install postman and import the api and just play around.
                        https://docs.cloudron.io/api.html

                        Like my work? Consider donating a drink. Cheers!

                        BrutalBirdieB 1 Reply Last reply
                        1
                        • BrutalBirdieB BrutalBirdie

                          @potemkin_ai not really.
                          Best way to get started would be install postman and import the api and just play around.
                          https://docs.cloudron.io/api.html

                          BrutalBirdieB Offline
                          BrutalBirdieB Offline
                          BrutalBirdie
                          Partner
                          wrote on last edited by
                          #15

                          @potemkin_ai
                          Another thing that is also very useful for understanding how to use the api, or find out any missing things in the doc.
                          You can open your browser debugger network tab and click any button in the cloudron dashboard and click a button.
                          Then you can see the API calls. Also useful for copy-paste API JSON bodys.

                          Example Question you could ask your self - How do I disable an app auto backup?

                          18240128-93a0-452c-abcb-0b00d0409139-grafik.png

                          Then you could copy the POST as cURL and see you self:

                          curl 'https://my.DOMAIN.TLD/api/v1/apps/0c81e720-ab79-414e-9e6d-dbdbbaab6e30/configure/automatic_backup' -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en,en-US;q=0.7,de;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Referer: https://my.DOMAIN.TLD/' -H 'Authorization: Bearer REDACTED' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://my.DOMAIN.TLD' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'TE: trailers' --data-raw '{"enable":false}'
                          

                          The last part --data-raw is the body, if you switch the false to true and send this the auto backup for the app is enabled again.

                          Doc to that API call: https://docs.cloudron.io/api.html#tag/Apps/paths/~1apps~1{appid}~1configure~1automatic_backup/post

                          But now you also know a way to figure it out yourself.

                          Like my work? Consider donating a drink. Cheers!

                          potemkin_aiP 1 Reply Last reply
                          2
                          • BrutalBirdieB BrutalBirdie

                            @potemkin_ai
                            Another thing that is also very useful for understanding how to use the api, or find out any missing things in the doc.
                            You can open your browser debugger network tab and click any button in the cloudron dashboard and click a button.
                            Then you can see the API calls. Also useful for copy-paste API JSON bodys.

                            Example Question you could ask your self - How do I disable an app auto backup?

                            18240128-93a0-452c-abcb-0b00d0409139-grafik.png

                            Then you could copy the POST as cURL and see you self:

                            curl 'https://my.DOMAIN.TLD/api/v1/apps/0c81e720-ab79-414e-9e6d-dbdbbaab6e30/configure/automatic_backup' -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en,en-US;q=0.7,de;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Referer: https://my.DOMAIN.TLD/' -H 'Authorization: Bearer REDACTED' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://my.DOMAIN.TLD' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'TE: trailers' --data-raw '{"enable":false}'
                            

                            The last part --data-raw is the body, if you switch the false to true and send this the auto backup for the app is enabled again.

                            Doc to that API call: https://docs.cloudron.io/api.html#tag/Apps/paths/~1apps~1{appid}~1configure~1automatic_backup/post

                            But now you also know a way to figure it out yourself.

                            potemkin_aiP Offline
                            potemkin_aiP Offline
                            potemkin_ai
                            wrote on last edited by
                            #16

                            @BrutalBirdie thank you very much!!

                            1 Reply Last reply
                            0
                            • BrutalBirdieB BrutalBirdie referenced this topic on
                            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