Hello! Is there any way for CloudRon to have unattended install - so that I launch the installation script, specify the file with all of the options and enjoy installation to be up and running in X minutes with all of the configuration and apps installed?
@potemkin_ai This would be an interesting bit - I believe there are imagines on DigitalOcean that can do a basic unattended.
From what you describe, I think the ability to do an "answer-file" type scenario would be best (like how Windows does unattended OOBE installers):
the syntax could be something like:
basic_settings: default_user: "Admin" default_pass: "password" install_domain: "my.example.com" branding: name: "Cloudron Install" footer: "Cloudron Footer" first_domain: name: "example.com" zone_name: "example.com" ssl_provider: "lets_encrypt" dns_provider: "digitalocean" dns_token: "somethingsomething" matrix_location: "" mastodon_location: "" backups: provider: "digitalocean_spaces" location: "cloudron-backups/backup" endpoint: "https://abc123.digitaloceanspaces.com" format: "tgz" secret_key: "password" run_at: "mon,wed,fri@23:00" retention: "1month" settings: cloudron_account: email: "email@example.com" time_zone: "America/New York" language: "english"
@murgero yeah, that would work.
Any ideas if that’s possible with Cloudron?
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.
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.
robi last edited by
@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.
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.
robi last edited by robi
@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).
@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!).
@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.
If the need is big enough I could write an ansible module for cloudron.
Which would also be mostly API calls.
@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