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

    Adding custom task to Fog Server

    Scheduled Pinned Locked Moved Solved
    General
    5
    37
    12.3k
    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.
    • Tom ElliottT
      Tom Elliott @csa
      last edited by

      @csa Can you provide an exact diagram of what needs to happen?

      Using the system you have now, it seems to try to do what you’re wanting to do via the FOS systems, but you really have your own environment.

      I can probably help much better if I know exactly what you’re trying to accomplish (and even attempt to replicate so I can test and give a more suitable answer.)

      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

      C 1 Reply Last reply Reply Quote 0
      • C
        csa @Tom Elliott
        last edited by

        @Tom-Elliott
        All I wanted to do is to call the custom menu that I created via custom task.

        Thank you
        Chakri

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

          @csa But the custom task, is it using fos environment to perform the task? What is the task actually going to do?

          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

          C 1 Reply Last reply Reply Quote 0
          • C
            csa @Tom Elliott
            last edited by

            @Tom-Elliott
            The custom menu is doing kickstart installation ( just like the default memory test that comes with fog ). I can see the menu when I pxe boot just like any other menu. ( again same like memory test) but that is a manual process especially when I want to manage large number of hosts.
            All I wanted to do now is to create a custom task ( which calls the custom menu ). So I can assign the task to a host that is registered.

            Thank you
            Chakri

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

              Did you install the task type plugin?

              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

              C 1 Reply Last reply Reply Quote 0
              • C
                csa @Tom Elliott
                last edited by

                @Tom-Elliott

                Yes I installed task type plugin. Like I shared the snapshots in the initial conversation. I can create a custom task but that isn’t calling the menu. That is where I needed help on how call my custom menu. If you can’t find the snapshot in the beginning of this tickets. I will re-post it.

                Thank you
                Chakri

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

                  @csa I was right. There is a hook already for this.

                  The hook to call is:

                  IPXE_EDIT
                  

                  The Particular variable will be:

                  $arguments['Send']['task']
                  

                  That’s called within the hook.

                  Can you post what the sequence to that tasking will be to boot it INTO the tasking?

                  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

                  C 1 Reply Last reply Reply Quote 1
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    https://fog.mastacontrola.com/service/ipxe/boot.php?mac=00:0c:29:bd:f2:ba

                    Does this look right for tasking?

                    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

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      csa @Tom Elliott
                      last edited by

                      @Tom-Elliott

                      Sorry I am little confused on following your instructions but here is a screen shot of “Task Type Management” of my custom task. So can you tell me which field gets the “IPXE_EDIT” and which the arguments?
                      0_1464366778958_Screen Shot 2016-05-27 at 11.31.19 AM.png

                      Once again thank you so much for your time and effort.

                      Thank you
                      Chakri

                      1 Reply Last reply Reply Quote 0
                      • C
                        csa @Tom Elliott
                        last edited by

                        @Tom-Elliott

                        Yes that is correct. I use that entries in my custom menu that I call manually. It works like a champ. Now I need to do the same in my tasking or call the menu from tasking.

                        Thank you
                        Chakri

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

                          @csa I’m trying to chat with you.

                          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

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            csa @Tom Elliott
                            last edited by

                            @Tom-Elliott
                            Fixed the password issues and upgrade to the latest revision. Switched the flag in “/var/www/fog/lib/hooks/boottask.hook.php to true”.

                            Do you have couple of min to chat.

                            1 Reply Last reply Reply Quote 0
                            • Y
                              YYoudi @csa
                              last edited by

                              @csa Did you had success making your own custom task type ?

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

                              182

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project