Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cloud-Init

Featured Replies

Hello,

 

I've fairly new to ArmBian and as I'm trying to setup a cluster of Rock64's, I'm wondering if there's any support for using cloud-init (user-data) to be able to setup a board on boot?

 

Thanks!

  • Author

Hi @lanefu,

 

Thanks for the suggestion, I will look into building my own. I dabbled with putting together ARM distros quite a few years back.

 

Regarding the steps (assuming a distribution comes with cloud-init enabled and configured with NoCloud datasource):

- flash tool provided by the Hypriot team allows embedding a user-data yaml file in the boot partition of the flashed sd card (it works with any image, I actually tried with with armbian as well thinking it had cloud-init)

 

In theory, that should be all that's needed so that the SBC's have the user-data steps provided and executed at startup

Edited by austerus

In case anyone else is looking to do this, I was able to compile an ubuntu focal server image with cloud-init with the following (after checking https://docs.armbian.com/Developer-Guide_User-Configurations/):

 

Modify userpatches/lib.config to install the cloud-init package:

PACKAGE_LIST_ADDITIONAL="$PACKAGE_LIST_ADDITIONAL cloud-init"

 

I then added my cloud-init files (user-data and meta-data) to the userpatches/overlay/ directory (I put them in a "cloud-init" folder), and added this to userpatches/customize-image.sh:

cp -r /tmp/overlay/cloud-init /boot/cloud-init
echo "extraargs=ds=nocloud;s=/boot/cloud-init/" >> /boot/armbianEnv.txt

 

Probably some extra customization is warranted (I needed to make some other unrelated changes), but this should be enough to enable cloud-init, and you can modify the arguments passed to /boot/armbianEnv.txt to meet your needs if you need a different datasource/whatever.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.