Johannes Zellner
7c27f01ab8
Do not automatically enable root ssh access
...
With our current self-hosting installation process, this
is not longer required. It should be the users responsibility
to gain access to his server. For Cloudron managed hosting,
this does not apply as we always create servers with ssh keys.
Also do not tinker with the sshd configs. The user may choose
to use access via password.
Fixes #104
2016-11-17 16:28:32 +01:00
Johannes
4668e3a771
Rename box-setup to cloudron-system-setup
...
This shell script and the associated systemd service
are hooks to setup the system like swap and volumes
It is part of the base image
2016-11-06 14:30:26 +01:00
Johannes
4f6f5bf3b7
Support --data-file instead of passing JSON as arguments
...
This is required for systemd-run, which limits the process
argument length and makes the data get truncated
https://github.com/coreos/fleet/issues/992
2016-11-06 14:30:26 +01:00
Johannes
50cbae420c
Only retry 10 times in installer.sh
2016-11-06 14:30:26 +01:00
Johannes
a1207de93f
set --unsafe-perm for npm rebuild
2016-11-06 14:30:26 +01:00
Johannes
a6824d8272
Ensure various scripts are run as root
2016-11-06 14:30:26 +01:00
Johannes
f1ab8fde76
Move installer.sh one level up
2016-11-06 14:30:26 +01:00
Johannes
55d11b2832
Remove unused certs/ folder in installer
2016-11-06 14:30:26 +01:00
Johannes
e01da9b065
Add a installer readme
...
This file is to clarify why this folder is special,
what it does and why it is there.
2016-11-06 14:30:26 +01:00
Johannes
78035e0b2e
Remove installer tests
2016-11-06 14:29:41 +01:00
Johannes
c23755c028
Remove all nodejs code from installer
2016-11-06 14:29:41 +01:00
Johannes
586fc4fe2d
Revert "CaaS: bring back the userdata.json provision code path"
...
This reverts commit 830972e8ae .
2016-10-26 10:20:26 +02:00
Johannes
ca22939298
Revert "keep probing for userdata.json like before"
...
This reverts commit f8cc68b78d .
2016-10-26 10:20:20 +02:00
Girish Ramakrishnan
f8cc68b78d
keep probing for userdata.json like before
...
there can be a race between server starting up and the scp happenning
from the appstore
2016-10-25 18:29:43 -07:00
Girish Ramakrishnan
830972e8ae
CaaS: bring back the userdata.json provision code path
2016-10-25 16:24:28 -07:00
Johannes
e94cae88ab
Cleanup package.json from unused node modules
2016-10-25 14:29:04 +02:00
Johannes
049ab4d744
Remove initial install feature in installer
2016-10-25 11:27:41 +02:00
Girish Ramakrishnan
0180dcf0ec
Allow specific version to be installed
2016-10-25 00:01:06 -07:00
Girish Ramakrishnan
37185b1058
Move cloudron-setup script to top level
2016-10-24 14:28:37 -07:00
Johannes
f4aacfa2d0
tls config property is called tlsConfig
2016-10-24 18:04:28 +02:00
Johannes
bc285a0965
Allow tls-provider to be set for development
2016-10-24 17:30:47 +02:00
Johannes
e9a35ec549
Allow to specify box versions url for development
2016-10-24 17:28:40 +02:00
Johannes
235d969890
Add cloudron-setup script
2016-10-24 16:18:02 +02:00
Johannes
e700eb1551
Remove setup webui, we first rely on a shell script with args
2016-10-24 15:51:51 +02:00
Johannes
b7e36a6f33
Retry dns check
2016-10-23 23:10:49 +02:00
Johannes
30e91eb812
Basic ui to wait for dns record
2016-10-23 22:58:56 +02:00
Johannes
468e5e7e89
Add route to check dns record
2016-10-23 22:58:38 +02:00
Girish Ramakrishnan
1244a73a19
run the install web ui on port 80
2016-10-21 16:04:08 -07:00
Johannes Zellner
0c3dda8ee0
Add web ui to create config file
2016-10-21 12:30:47 -07:00
Johannes Zellner
3038521916
Set fallback versions url
2016-10-21 12:27:58 -07:00
Johannes Zellner
d4d3eced56
Wait forever for user data and support js format
2016-10-21 12:21:30 -07:00
Johannes Zellner
2c511ccc5a
Do not create a swap file if swap is already more than physical memory
...
This is the case for example on the default ubuntu 16.04 virtualbox image
2016-10-20 15:32:02 +02:00
Girish Ramakrishnan
5a18c4dc26
in some systems, there is already some swap allocated
2016-10-08 21:55:13 -07:00
Girish Ramakrishnan
0fbe2709ea
bash cannot handle float arithmetic
2016-10-08 21:40:05 -07:00
Girish Ramakrishnan
6fdf5bd7ec
Find rootfs device the hard way
2016-10-08 21:31:11 -07:00
Johannes Zellner
d7245b5e1e
Cleanup the provisioning code
2016-10-06 14:14:48 +02:00
Johannes Zellner
81c443d637
Use the correct callback
2016-10-06 14:08:53 +02:00
Johannes Zellner
84e4c0033e
Do not support meta data api for user data
...
From this version on only a local /root/userdata.json
is supported. We will poll for that file every 5sec
The file is either uploaded via boxtask in caas or
the cli tool
2016-10-06 11:48:17 +02:00
Johannes Zellner
29451f8e07
Remove unused code in installer
2016-10-05 14:35:40 +02:00
Johannes Zellner
29d3ad6cd3
Rename provision.json to userdata.json
2016-10-05 14:31:22 +02:00
Johannes Zellner
4642d4c8c5
First try to get the user data from a local json file
2016-10-05 14:30:37 +02:00
Johannes Zellner
5d3dca6b3f
Set a timeout for the meta data request
...
Part of #37
2016-09-07 14:11:29 +02:00
Girish Ramakrishnan
d60b386bca
Use cloudron.conf file to determine if this is an update
...
The installer determines if it an update based on existence of box dir.
It then calls the nginx splash setup code. The splash setup code relies
on the data directory being setup. Otherwise, it barfs in data/nginx.
This results in a case where restarting cloudron-installer when it is
unpacking the box code results in an error about being unable to write
admin.conf (since the data dir gets setup only in box setup.sh).
So, use cloudron.conf to determine if box was setup and running at some
point (this is already used in the js code)
2016-08-23 17:17:24 -07:00
Girish Ramakrishnan
8ee2a7016d
installer: retry fetching installer data 5 times
...
On some VPS providers, getting the userData is "flaky".
Fixes #3
2016-08-19 17:51:14 -07:00
Girish Ramakrishnan
02c5e731a9
add debug log for already provisioned
2016-08-19 17:33:55 -07:00
Johannes Zellner
621fb6ddce
Ensure root can login via ssh
2016-06-24 15:51:45 +02:00
Johannes Zellner
c24ef743f7
Try to autodectect if running on DO or EC2
2016-06-22 10:21:56 +02:00
Johannes Zellner
96dabc5694
Support ec2 user-data
2016-06-22 10:21:56 +02:00
Girish Ramakrishnan
8db76f6b70
backup swap is not required anymore
2016-04-10 20:55:59 -07:00
Girish Ramakrishnan
83d05c99d3
mount manually instead of fstab because of race
...
I cannot figure how to make the box-setup.service run before the mounting
of a specific mount point. adding a dep on mount.target locks up the system.
2016-03-07 10:48:09 -08:00