-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grub fixes, enable serial over lan, check improvements, dns / resolve…
…r fixes, cloud-init mods
- Loading branch information
Showing
5 changed files
with
83 additions
and
34 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
harmonic/scripts/harmonic-install-scripts/autoinstall.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#cloud-config | ||
autoinstall: | ||
version: 1 | ||
early-commands: | ||
- echo "=====================================================================================" | ||
- echo "Harmonic Installer: Setup" | ||
- echo "=====================================================================================" | ||
- echo "Harmonic Installer: Download 'harmonic-installer.sh' from Artifactory" | ||
- sudo wget https://artifactory.charterlab.com:443/artifactory/upload/harmonic/scripts/harmonic-installer.sh -O /opt/harmonic-installer.sh | ||
- sudo chmod +x /opt/harmonic-installer.sh | ||
- echo "=====================================================================================" | ||
- echo "Harmonic Installer: Running" | ||
- sudo /opt/harmonic-installer.sh -vip | ||
- echo "=====================================================================================" | ||
- echo "Harmonic Installer: Complete" | ||
- echo "=====================================================================================" | ||
- echo "Harmonic Installer: Rebooting System" | ||
- sudo systemctl --message="Harmonic Post-Install Reboot" reboot | ||
- ping -c1 198.162.1.1 | ||
locale: en_US | ||
network: | ||
version: 2 | ||
ethernets: | ||
# opaque ID for physical interfaces, only referred to by other stanzas | ||
eno1: | ||
dhcp4: true | ||
dhcp6: true | ||
nameservers: | ||
search: [charterlab.com, spoc.charterlab.com] | ||
addresses: [172.22.73.19, '2605:1c00:50f2:2800:172:22:73:19'] | ||
proxy: http://proxy4.spoc.charterlab.com:8080 | ||
identity: | ||
password: $6$canonical.$0zWaW71A9ke9ASsaOcFTdQ2tx1gSmLxMPrsH0rF0Yb.2AEKNPV1lrF94n6YuPJmnUy2K2/JSDtxuiBDey6Lpa/ | ||
ssh: | ||
install-server: yes | ||
authorized-keys: | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMeG6n43ekQdEDQAIH4ItQkuCO8KUt10EiIr1Z1psCjG | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF3ooNAnBljFn8SV9XkwrLA2NNtlnmcY3LUews317oGu | ||
allow-pw: yes | ||
user-data: | ||
disable_root: false | ||
preserve_hostname: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 20 additions & 15 deletions
35
harmonic/scripts/harmonic-install-scripts/harmonic.service.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
#!/bin/bash -x | ||
|
||
echo "=====================================================================================" | ||
#!/bin/bash | ||
echo "===================================================================" | ||
echo "Harmonic Installer: Setup" | ||
echo "=====================================================================================" | ||
echo "Harmonic Installer: Download 'harmonic-installer.sh' from Artifactory" | ||
wget https://artifactory.charterlab.com:443/artifactory/upload/harmonic/scripts/harmonic-installer.sh -O /opt/harmonic-installer.sh | ||
chmod +x /opt/harmonic-installer.sh | ||
echo "=====================================================================================" | ||
echo "Harmonic Installer: Running" | ||
/opt/harmonic-installer.sh -vip | ||
echo "=====================================================================================" | ||
echo "Harmonic Installer: Complete" | ||
echo "=====================================================================================" | ||
echo "Harmonic Installer: Rebooting System" | ||
systemctl --message="Harmonic Post-Install Reboot" reboot | ||
echo "===================================================================" | ||
echo "Harmonic Installer: Downloading 'harmonic-installer.sh'" | ||
echo "===================================================================" | ||
if (sudo wget https://artifactory.charterlab.com:443/artifactory/upload/harmonic/scripts/harmonic-installer.sh -O /opt/harmonic-installer.sh && sudo chmod +x /opt/harmonic-installer.sh); then | ||
echo "Harmonic Installer: Running" | ||
else | ||
echo "Harmonic Installer: Failed to download 'harmonic-installer.sh'" | ||
exit 1 | ||
fi | ||
echo "===================================================================" | ||
if (sudo /opt/harmonic-installer.sh -ip); then | ||
echo "===================================================================" | ||
echo "Harmonic Installer: Installation Complete" | ||
else | ||
echo "===================================================================" | ||
echo "Harmonic Installer: Installation Failed" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters