Skip to content

Commit

Permalink
fix: make wired configs work again
Browse files Browse the repository at this point in the history
  • Loading branch information
nis65 committed Aug 1, 2023
1 parent 4d72266 commit 685488e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion container/autoinstall-user-data.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ autoinstall:
hostname: {{ config['initial_hostname'] | default('potoshostname01') }}
password: {{ config['initial_user']['password'] | default('$6$L36BiUuVCSipvlO8$oGI0C.LXZegkbftFkVDXXaasTM6zs9LM71BkqZToKw5aOZ7Yr70pkzH3P9Xz5R.n0ULJ0Zf8v5ZQ/eH8flDR7/') }}
username: {{ config['initial_user']['username'] | default('admin') }}
{% if config['wifi']['ssid'] is defined %}
{% if config['wifi']['interface'] is defined and config['wifi']['interface'] != None %}
early-commands:
- apt-get -y install wpasupplicant
drivers:
Expand Down
6 changes: 3 additions & 3 deletions container/build-iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
config['initial_user']['username'] = ymlconfig.get("initial_user",{}).get('username',"admin")
config['initial_user']['password'] = ymlconfig.get("initial_user",{}).get('password',"$6$L36BiUuVCSipvlO8$oGI0C.LXZegkbftFkVDXXaasTM6zs9LM71BkqZToKw5aOZ7Yr70pkzH3P9Xz5R.n0ULJ0Zf8v5ZQ/eH8flDR7/")
config['wifi'] = {}
config['wifi']['interface'] = ymlconfig.get("wifi",{}).get('interface',"wlan0")
config['wifi']['ssid'] = ymlconfig.get("wifi",{}).get('ssid',"yourwifissid")
config['wifi']['pw'] = ymlconfig.get("wifi",{}).get('pw',"yourwifipassword")
config['wifi']['interface'] = ymlconfig.get("wifi",{}).get('interface')
config['wifi']['ssid'] = ymlconfig.get("wifi",{}).get('ssid')
config['wifi']['pw'] = ymlconfig.get("wifi",{}).get('pw')
config['environment'] = ymlconfig.get("environment","production")
config['first_boot_ansible'] = {}
config['first_boot_ansible']['runtype'] = ymlconfig.get("first_boot_ansible",{}).get('runtype',"setup")
Expand Down

0 comments on commit 685488e

Please sign in to comment.