Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webapp for self hosted. #78

Open
mocallins opened this issue Nov 23, 2024 · 11 comments
Open

webapp for self hosted. #78

mocallins opened this issue Nov 23, 2024 · 11 comments

Comments

@mocallins
Copy link

Do you have this enabled for a self hosted system, NOT using Docker ?

@MrMEEE
Copy link

MrMEEE commented Jan 14, 2025

@mocallins I have just created a playbook for RHEL..

Take a look if you want:

https://github.com/MrMEEE/netbootxyz-webapp-ansible

@mocallins
Copy link
Author

mocallins commented Jan 14, 2025 via email

@MrMEEE
Copy link

MrMEEE commented Jan 15, 2025

You need the role as well..

Basically just clone the repository (git clone) and run the playbook with:

ansible-playbook -i inventory webapp.xml (supply your own inventory, or leave out "-i inventory" to install on localhost)

Options are in roles/webapp/vars/main.yml

@mocallins
Copy link
Author

Multiple issues getting this to run.

Had to disable nginx.
This didn't exist here: _ roles/webapp/vars/main.yml_
but this does: `cat roles/netbootxyz/vars/main.yml

---`

I finally got it to run with the inventory , but still failed at:

TASK [netbootxyz : Generate checksums] *****************************************
included: /opt/netboot.xyz/roles/netbootxyz/tasks/generate_checksums.yml for localhost

TASK [netbootxyz : Register a listing of all created iPXE bootloaders] *********
changed: [localhost]

TASK [netbootxyz : Generate date] **********************************************
changed: [localhost]

TASK [netbootxyz : Gather stat listing of directory] ***************************
changed: [localhost] => (item=netboot.xyz.dsk)
changed: [localhost] => (item=netboot.xyz.efi)
changed: [localhost] => (item=netboot.xyz.efi.dsk)
changed: [localhost] => (item=netboot.xyz.kpxe)
changed: [localhost] => (item=netboot.xyz.lkrn)
changed: [localhost] => (item=netboot.xyz.pdsk)
changed: [localhost] => (item=netboot.xyz-snp.efi)
changed: [localhost] => (item=netboot.xyz-snp.efi.dsk)
changed: [localhost] => (item=netboot.xyz-snponly.efi)
changed: [localhost] => (item=netboot.xyz-undionly.kpxe)

TASK [netbootxyz : Generate ipxe disk checksums] *******************************
changed: [localhost]

TASK [netbootxyz : Generate site name banner for index] ************************
changed: [localhost]

TASK [netbootxyz : Reset bootloader filename to first in list] *****************
ok: [localhost]

TASK [netbootxyz : Generate netboot.xyz index template] ************************
ok: [localhost]

TASK [netbootxyz : Generate signatures] ****************************************
skipping: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=46   changed=18   unreachable=0    failed=0    skipped=19   rescued=0    ignored=0


PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [webapp : Add the service user] *******************************************
ok: [localhost]

TASK [webapp : Create install path] ********************************************
ok: [localhost]

TASK [webapp : Cloning the netboot.xyz webapp repo] ****************************
ok: [localhost]

TASK [webapp : Install dependencies] *******************************************
[WARNING]: Unable to detect release version (use "releasever" option to specify
release version)
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No group nodejs:22 available.", "results": []}

@mocallins
Copy link
Author

Also what is the port or /dir on the webserver page ?

@MrMEEE
Copy link

MrMEEE commented Jan 17, 2025

  1. I'm not using nginx, i'm using Apache/httpd.. nginx could be added as an option later..
  2. My bad, I meant roles/netbootxyz/vars/main.yml
  3. It seems like you are not using RHEL9? What distribution are you running?
  4. The webinterface should be available on port 3000 (remember to open fw or disable it)

@mocallins
Copy link
Author

mocallins commented Jan 17, 2025 via email

@MrMEEE
Copy link

MrMEEE commented Jan 17, 2025

Wait.. you are not using my playbook.. you are using the netbootxyz playbook.. that doesn't include the gui..

you should do a pull of my playbook:

https://github.com/MrMEEE/netbootxyz-webapp-ansible

and use that

@MrMEEE
Copy link

MrMEEE commented Jan 17, 2025

Besides from that, my playbook only supports RHEL9 at the moment..

@mocallins
Copy link
Author

mocallins commented Jan 17, 2025 via email

@mocallins
Copy link
Author

mocallins commented Jan 17, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants