1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

155 Commits

Author SHA1 Message Date
Jake Buchholz Göktürk
3ea8b15de0 cloud via cmdline / move autodetect 2024-11-14 01:22:48 +00:00
Jake Buchholz Göktürk
0548b418ec enact /usr merge 2024-11-07 16:21:05 +00:00
Jake Buchholz Göktürk
8355e324af Update/Tweak Docs 3.0.8 2024-11-04 18:08:45 +00:00
Jake Buchholz Göktürk
1ea16dc7b3 Update/Tweak Docs 2024-11-04 17:47:30 +00:00
Jake Buchholz Göktürk
b8218bd1f0 split alpine-config out of cloud-config 2024-11-04 17:05:50 +00:00
Jake Buchholz Göktürk
e75ec5b4f6 Remove Deprecated Network and Hotplug Stuff 2024-10-19 18:04:45 -07:00
Jake Buchholz Göktürk
b1ae3ab611 Makefile & tests for new clouds 2024-10-19 16:12:22 -07:00
Natanael Copa
34681ae220 Implement doas for users
Add config line for doas under user creation
2024-07-31 23:48:36 +02:00
Natanael Copa
e791e0494d Implement primary_group for users 2024-07-31 23:48:36 +02:00
Natanael Copa
7492d6f128 Implement groups for users
Allows created (or existing) user to be added to existing groups.
2024-07-31 23:48:36 +02:00
Natanael Copa
0abcf08262 Implement no_create_home for users 2024-07-31 23:48:36 +02:00
Natanael Copa
69c9545144 Implement system in users
Makes the created user a system user
2024-07-31 23:48:36 +02:00
Natanael Copa
0faaee62a4 Implement lock_passwd=false for user 2024-07-31 23:48:30 +02:00
Natanael Copa
4caf5eee18 Implement ssh_authorized_keys for created users
fixes https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud/-/issues/57
2024-07-31 23:44:51 +02:00
Natanael Copa
b366e4e3f7 Implement user creation for alpine-config
ref: https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud/-/issues/35
2024-07-31 23:44:09 +02:00
Natanael Copa
8303a4a3f2 Support disable the default user creation
Setting `users: []` should disable the creation of default user.

Setting `users: [default] should enable it.
2024-07-31 23:43:15 +02:00
Natanael Copa
115dafdfa0 Add support for groups in alpine-config
Only support creating empty groups for now

ref: https://cloudinit.readthedocs.io/en/latest/reference/modules.html#users-and-groups
2024-07-31 15:09:34 +02:00
Natanael Copa
b2821a7a69 imds: read autodetected cloud provider 2024-07-26 22:33:56 +00:00
Natanael Copa
7a87dfe08d Ensure autodetect script is executable 2024-07-26 22:32:52 +00:00
Natanael Copa
f3712b6ffc make: install incus files 2024-07-26 22:32:52 +00:00
Natanael Copa
874335d788 Don't try expand a non-existing device
In system containers, like incus, the root device may not exist. Avoid
return error in this case.
2024-07-25 20:38:57 +02:00
Natanael Copa
9d1d448a16 Add incus autodetect 2024-06-28 12:32:59 +02:00
Natanael Copa
966f0bb2a4 Get ssh key from user-data with incus
incus has no way to set ssh key in meta-data, instead we can set it in
user-data.

This means that we cannot set ssh key if user-data is a shell script.
2024-06-28 12:22:29 +02:00
Natanael Copa
3197427cb3 Add incus support
Incus provides meta-data via unix socket /dev/incus/sock
https://linuxcontainers.org/incus/docs/main/dev-incus/
2024-06-28 11:40:22 +02:00
Natanael Copa
abe98e6cbf Improve readability and fix quoting in fake netcat
No functional changes.
2024-06-27 22:11:51 +02:00
Natanael Copa
11789c272f Autodetect nocloud if CLOUD is unset
Set default CLOUD to 'auto', which will try autodetect the cloud
provider.

Each cloud can have an autodetect script which should print:
  <priority> <cloud>
if cloud was detected.
2024-06-27 21:56:51 +02:00
Natanael Copa
d0a39db18d Automatically setup apk repositories if not specified
Configure network repositories with setup-apkrepos if no repositories
file exists.
2024-06-27 17:49:40 +00:00
Natanael Copa
cd385f5610 Add initial support for alpine autoinstall
Run setup-disk on the biggest empty disk found when autoinstall: true is
set.
2024-06-27 17:27:03 +00:00
Natanael Copa
c39a3a4228 Fix make install
Alpine is no longer a "provider". Adjust the makefile accordingly.

Fixes commit 239cb59a133d (Move alpine provider into nocloud)
2024-06-26 16:23:42 +02:00
Natanael Copa
9d08ab2dbf ci: add test that ensures that we can install 2024-06-26 16:19:52 +02:00
Natanael Copa
239cb59a13 Move alpine provider into nocloud 2024-06-23 20:26:22 +00:00
Natanael Copa
e402fe63e7 Use grep -E instead of egrep 2024-05-25 19:42:25 +00:00
Hugo Rodrigues
2713aac43f Added support to Hetzner 2024-03-10 22:28:36 +00:00
Hugo Rodrigues
119d7a686e Add scaleway support 2024-02-14 15:05:52 +00:00
Natanael Copa
0013a775c6 Fix ephemeral network udhcpc call 3.0.7 2024-01-18 19:49:55 +00:00
Natanael Copa
45cc24696b Configure ephemeral network if needed
Add ipv4 address from dhcp if datasource is from https and no ipv4
address is configured.
3.0.6
2024-01-18 04:02:50 +00:00
Jake Buchholz Göktürk
ac08790a9a OCI userdata needs to be base64 decoded 3.0.5 2024-01-14 00:47:50 +00:00
Jake Buchholz Göktürk
72b419d799 Fix OCI IMDS_USERDATA string 2024-01-14 00:05:27 +00:00
Natanael Copa
e6fb222af3 nocloud: support set data source via smbios in qemu 2023-12-14 00:00:48 +00:00
Natanael Copa
6fb5fa088b Support disabling tiny-cloud via /etc/tiny-cloud.disabled
ref: https://gitlab.alpinelinux.org/alpine/mkinitfs/-/merge_requests/133
ref: https://cloudinit.readthedocs.io/en/latest/howto/disable_cloud_init.html
3.0.4
2023-11-28 15:56:35 +01:00
Guido Trotter
8091e3ed84 user-data/alpine-config: remove duplicate declaration 3.0.3 2023-10-14 19:48:26 +00:00
Guido Trotter
2f3ef42d9b Fix typo in sbin/tiny-cloud --disable 2023-10-12 21:16:10 +00:00
Jake Buchholz Göktürk
79e770a8fc Fail on Init Action Failure
* If an init action fails, tiny-cloud should terminate instead of proceeding.
* Also, if bootstrap is incomplete, always re/load user-data, even if user-data file exists.
3.0.2
2023-09-25 18:09:44 +00:00
Jake Buchholz Göktürk
e628e9817d Replace Broken --setup With Working --enable and --disable 2023-06-16 10:04:36 -07:00
Natanael Copa
e7ea0e9e1b nocloud: hide yx errors
hide error message in case key does not exist.
3.0.1
2023-06-12 16:32:35 +02:00
Natanael Copa
d30d2555df Implement ssh_authorized_keys 2023-06-09 14:23:51 +00:00
Natanael Copa
e36abdef4a replace set_nocloud_meta with fake_metadata_nocloud
remove redundand test code
2023-06-07 14:15:07 +02:00
Jake Buchholz Göktürk
d5a5e88b6a Tiny Cloud 3.0.0 (final!) 3.0.0 2023-05-30 16:59:06 -07:00
Jake Buchholz Göktürk
475c3d4642 fix /etc/runlevel --> /etc/runlevels 3.0.0_rc7 2023-05-29 23:21:10 +00:00
Jake Buchholz Göktürk
96e36c251d Final Bits Before 3.0.0 2023-05-29 22:39:36 +00:00