• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Start in a special menu for a group or just an hosts

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    5
    373
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      endia
      last edited by

      Hello,

      First, im sorry if my english is a little bad, i dont like to use google translate and other thing like that.

      Im actually working in a datacenter and i would like to use FOG as PXE server for start in two different rescue mode (consummers and admin rescue) and in a hdd.
      The problem is i need to start automatically in these rescue.
      I already created an interface who add the consummers server in fog databases, but, it have no options in hosts manager for start in a specially menu.
      Do u know if its possible and how i can do this ?

      Amically, Endia.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @endia Do you mean some servers need to start in the consumers rescue mode and others need to start in admin rescue mode but both should default to boot from HDD if rescue is not selected?

        How are consumer servers from admin servers I need to ask? Are they within different IP address ranges?

        If I get this all right then I have to say that FOG is not made for such a requirement. I think you would need to modify it (plugin or maybe even need to touch the core code) to make this work.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • E
          endia
          last edited by

          @Sebastian-Roth
          Yes that absolutely that. When a consummers dont renew his services (or need to reinstall the OS), we say to the server boot on the admin rescue. And when a consummers have some problems on his server, he can choose to boot on consummers rescue. I already try to use the “show the menu for registered hosts” and set it as default and it work. I want to know how i can adapt this system for the groups (create two groups, RescueAdmin and RescueConsummers) and show the menu only for a group, do u have an idea ?

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Tom-Elliott might now more about this but I fear that @endia needs to get into the code for that.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @Sebastian Roth
              last edited by

              @Sebastian-Roth Yeah, this isn’t something readily available in the code.

              @endia If you’re at least semi familiar with code, you might look into /var/www/fog/lib/fog/bootmenu.class.php

              This isn’t currently coded for, but you might even be able to do what you want using a simple (relatively speaking) hook to alter the boot menu system.

              There’s a template hook already created that should help get you started. By creating a hook, you aren’t altering the core code within FOG. Hooks are meant as a means to inject custom data specifically around what you’re requesting to happen.

              The hook that’s setup is located in /var/www/fog/lib/hooks/bootitem.hook.php

              Ultimately what you would do is make your changes and set the active flag to true. (it’s a variable named active)

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post

              209

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project