Skip to content

Instantly share code, notes, and snippets.

@muhamad-ridwant-tech
Last active August 14, 2025 14:23
Show Gist options
  • Save muhamad-ridwant-tech/cc5b3efdc7dd1fbc892d8ea28ff3775e to your computer and use it in GitHub Desktop.
Save muhamad-ridwant-tech/cc5b3efdc7dd1fbc892d8ea28ff3775e to your computer and use it in GitHub Desktop.
RUN Preseed command to All Node Secara bersama
## SSH Copy ID
[ridwan@WarMachine]$
$ for i in {01,02,03}; do ssh-copy-id root@MicroCloud-${i};done
# SCP File preseed.yml
$ for i in {01,02,03}; do scp preseed.yaml root@MicroCloud-${i}:/root/; done
## RUN Preseed command to All Node Secara bersama
$ for i in {01,02,03}; do ssh root@MicroCloud-${i} "hostname && \
cat preseed.yaml | microcloud preseed > initialize-output.txt"& done
## Read output command
$ for i in {01,02,03}; do ssh root@MicroCloud-${i} "hostname && \
tail initialize-output.txt"; done
### Perhatikan
### Ada perbedaan antara ; dan &
### Pada setelah input do di command di atas
### https://blog.ridwan.pro/2025/08/automated-installation-initialization.html
@muhamad-ridwant-tech
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment