Automate MaaS (Metal as a Service) PXE Boot Server Install With Ansible

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • Quick Metal as a Service 3.1 server install using ansible playbook. The video covers the following MaaS features.
    - Setup using two CLI commands and an ansible playbook
    - Configuration of the server via the web interface including subnet, DHCP and image configs
    - Deployment of a Ubuntu 22.04 node
    - Remote node access
    Refs:
    Ansible scripts used in the video
    github.com/Wor...
    Work From Home Tech CZcams Channel
    INTRO: / @workfromhometech
    Ubuntu Install: • Quick Ubuntu 20.04 Bas...
    Bare metal Kubernetes hands on tutorial with MAAS and Juju
    • Bare metal Kubernetes ...
    PI-HOLE
    pi-hole.net/
    Hardware
    servermonkey.com
  • Věda a technologie

Komentáře • 20

  • @mioszlinkiewicz4272
    @mioszlinkiewicz4272 Před rokem +2

    You can't even imagine how your video and github repository regarding the topic helped me with my work! I've already managed to create 2 PR with some changes included. Great job!

    • @workfromhometech
      @workfromhometech  Před 11 měsíci

      Happy the video was of use. I also so some git repo comments I need to review.

  • @martindouglas3901
    @martindouglas3901 Před 5 měsíci +1

    Hey there, do you still use Maas? I am having dhcp issues and was curious if you still use Maas or if you found something better?

    • @workfromhometech
      @workfromhometech  Před 5 měsíci +1

      I still use it. I am actually working on an updated video coming out soon. I am using it right now with an external DHCP server if you are interested in doing that. As long as the DHCP server you are using supports TFTP and Secondary boot server options it should work.

  • @event-zero
    @event-zero Před 2 lety +1

    nice work and a nice video.

  • @vinodsahi
    @vinodsahi Před rokem +1

    Hi..
    Very good one.. do we have video on same deployment using terraform

    • @workfromhometech
      @workfromhometech  Před rokem

      Actually, I would love to use Terraform. I normally work with Ansible, but additional AWS support is increasing the priority of Terraform.

  • @sondrekristiansen5294
    @sondrekristiansen5294 Před 5 měsíci +1

    Hello, i am curious if this setup also can boot Windows?

    • @workfromhometech
      @workfromhometech  Před 5 měsíci

      Yes. You can PXE boot Windows, but the image requires more setup work. If you look in the MaaS configuration it even has a section for the Windows license management. I think you will find more info if you go to the MaaS git repo maas.io/docs/how-to-build-a-windows-image

    • @sondrekristiansen5294
      @sondrekristiansen5294 Před 4 měsíci +1

      @@workfromhometech Thank you! i will be taking a look at it :)

  • @rickhernandez2114
    @rickhernandez2114 Před rokem +1

    Been looking for an easy way to do this thank you. I will try the playbook today. I'm not an Ubuntu fan but curious to try Maas.
    On another note, blur out your key dude.

    • @workfromhometech
      @workfromhometech  Před rokem

      I have recently been looking at an easy way to make more images for MAAS.

    • @rickhernandez2114
      @rickhernandez2114 Před rokem +1

      @@workfromhometech Packer, I think, is the way to go. I need to make Rocky and Debian images and will be looking at Packer with MAAS

    • @workfromhometech
      @workfromhometech  Před rokem

      @@rickhernandez2114 I agree on using Packer. I have started testing an initial Rocky 8.6 image and will update the playbook for RPMs. Practical advice on the hiding the SSH key, but I knew I was going to reinstall multiple times.

  • @jackbob9966
    @jackbob9966 Před 8 měsíci +1

    i'm blocking on maas-enlisting-node login. any thing missing?

    • @workfromhometech
      @workfromhometech  Před 8 měsíci

      What OS did you deploy? The user accounts can vary between ubuntu, CentOS, Alpine and root will most likely be disabled.

  • @cleitonpena4578
    @cleitonpena4578 Před rokem +1

    Congratulations on your work. I don't know if you can help me, but I have difficulty booting PXE. The error message is: "NBP filesize is 0 Bytes. NBP filename is ipxelinux.0. PXE-18: server response timeout ". Thank you

    • @workfromhometech
      @workfromhometech  Před rokem +1

      Hello and thanks for the question. Since it sounds like you are getting to the DHCP Boot file options, I ask this question: Would you happen to know if you are using BIOS or UEFI boot mode? Sometimes UEFI and secure boot cause issues.

    • @cleitonpena4578
      @cleitonpena4578 Před rokem

      ​@@workfromhometech I really appreciate your answer. In fact, I tried both, Legacy Only and UEFI First, existing at Asus X-99-Win / IPMI Bios. The return is similar in both Legacy and UEFI. I am grateful for the hypothesis you suggest, and I will now look at that angle of boot security. I wish you success in your work.

    • @workfromhometech
      @workfromhometech  Před rokem +1

      @@cleitonpena4578 There are many points of failure, so I would first isolate the issue to the server or the client first. Then I would try different ones depending on if its the server or client. ISC DHCP and a Nginx web server can replace a PXE boot server. Shoot me a twitter DM and I can attempt more detailed help. Also tcpdump can also occasionally help reveal issues.