add details for netiface script

Change-Id: I0b5c9286e2f94929b44581a53bf32ec7e33a6e63
This commit is contained in:
Wahlstedt, Walter (ww229g) 2023-06-26 16:33:34 -04:00
parent 565d20ee18
commit 0f4677c041
2 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,7 @@
apiVersion: v1 apiVersion: v1
description: Chart to run Canonical MaaS description: Chart to run Canonical MaaS
name: maas name: maas
version: 0.1.4 version: 0.1.5
home: https://docs.ubuntu.com/maas home: https://docs.ubuntu.com/maas
sources: sources:
- https://git.launchpad.net/maas - https://git.launchpad.net/maas

View File

@ -194,9 +194,12 @@ function configure_boot_sources {
function create_extra_commissioning_script { function create_extra_commissioning_script {
cat > /tmp/script.sh << 'EOF' cat > /tmp/script.sh << 'EOF'
#!/bin/bash #!/bin/bash -e
set -e # --- Start MAAS 1.0 script metadata ---
# name: 99-netiface-names
# title: Network slot to port mapping
# description: Network slot to port mapping
# --- End MAAS 1.0 script metadata ---
output="" output=""
for net_iface in /sys/class/net/ens* for net_iface in /sys/class/net/ens*
do do
@ -209,7 +212,7 @@ echo $output
EOF EOF
maas "${ADMIN_USERNAME}" commissioning-scripts create name='99-netiface-names.sh' content@=/tmp/script.sh maas "${ADMIN_USERNAME}" commissioning-scripts create name='99-netiface-names' content@=/tmp/script.sh
rm /tmp/script.sh rm /tmp/script.sh
} }