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

    Adding custom task to Fog Server

    Scheduled Pinned Locked Moved Solved
    General
    5
    37
    12.2k
    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.
    • C
      csa @Wayne Workman
      last edited by

      @Wayne-Workman
      Thank you so much, I didn’t even know fog has plugins. Now I installed 3 plugins

      0_1463509023234_Screen Shot 2016-05-17 at 1.15.20 PM.png

      Let me try creating a custom task.

      Thank you
      Chakri

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

        @wayne-workman ,

        So now that I am trying to create a custom task for my “trusty kick start installation” at

        Here is manual menu items entries that work
        0_1463510665232_Screen Shot 2016-05-17 at 1.43.56 PM.png

        How do I add them to this screen?
        0_1463510461807_Screen Shot 2016-05-17 at 1.40.27 PM.png

        • Do I need to lines to a script? if so what kind of script php or bash
        • where shall I put the script? and how can I call.

        Thank you
        Chakri

        Wayne WorkmanW 2 Replies Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @csa
          last edited by

          @csa For that, I’m going to need to ask @Tom-Elliott to assist and clarify, he designed these two plugins (among other things)

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

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

            Wayne Workman,
            Sure thing will wait for Mr Tom’s response. Once again thank you for the help. Fog is a great product.

            Thank you
            Chakri

            1 Reply Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman @csa
              last edited by

              @csa Looking at what you’re putting in the task type, I think what you need instead is a new boot menu entry… fog configuration -> iPXE new menu entry.

              Parameters is your iPXE code, boot options are kernel arguments.

              Maybe those two labels can be better labeled @Tom-Elliott ?

              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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

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

                Wayne Workman
                I already had the new “boot menu entry”. Which works like a champ but I have to manually go to the console and select the option. Instead I want to add this to the task and get it assigned to host like other tasks.

                0_1463515545624_Screen Shot 2016-05-17 at 1.43.56 PM.png

                When booting a server/pc I have to manually go to the console and scroll down to my “trusty” menu. Which is not idle for a remote management environment.

                0_1463515770258_Screen Shot 2016-05-17 at 3.09.15 PM.png

                Thank you
                Chakri

                Wayne WorkmanW Tom ElliottT 2 Replies Last reply Reply Quote 1
                • Wayne WorkmanW
                  Wayne Workman @csa
                  last edited by

                  @csa Ah, that makes sense. We just need to wait to hear back from Tom.

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

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

                    Wayne,

                    Again thank you for leading us to the correct path.

                    Thank you
                    Chakri

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

                      @csa Can you paste the code of your menu entry as text?

                      The parameters should not need the :fog.trusty as you have as it automatically creates the function caller for 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
                        First of all thank you for your time. I added “:fog.trusty” just like you suggested both in Kernel or Kernel Arguments field one at a time. Snap shot as shown

                        0_1463583252521_Screen Shot 2016-05-18 at 9.53.54 AM.png

                        Neither of the settings worked. It says “Fatal Error Unknown request type : Null”

                        0_1463583419767_Screen Shot 2016-05-18 at 9.56.48 AM.png

                        Any ideas?

                        Thank you
                        Chakri

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

                          @csa I stated the :fog.trusty does NOT need to be apart of the arguments OR parameters.

                          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

                            @Tom-Elliott

                            Sorry I misread your response. So if I understand correct

                            Q. Can you paste the code of your menu entry as text?

                            Here is the text from parameters section in the menu entry. I removed “:fog.trusty” in the beginning like you suggested.

                            set path /fog/OS_IMAGES/ubuntu-14.04.3-DVD
                            set nfs_path /images/OS_IMAGES/ubuntu-14.04.3-DVD
                            kernel http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/netboot/ubuntu-installer/amd64/linux || read void
                            initrd http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/netboot/ubuntu-installer/amd64/initrd.gz || read void
                            imgargs linux root=/dev/nfs boot=casper live-installer/net-image=http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/filesystem.squashfs ks=http://fogsrv/fog/OS_IMAGES/kickstarts/precise_ks.cfg ip=dhcp splash quiet – || read void 
                            boot || read void
                            goto start
                            

                            Q. The parameters should not need the :fog.trusty as you have as it automatically creates the function caller for you.

                            Removed “fog.trusty” from the menu entry

                            Q. In the "New Task " how do I call this menu or should directly past the code in the Kernel or kernel parameters. If so can use the same from the “menu entry”

                            Thank you
                            Chakri

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

                              I need a full layout of what it is you’re trying to do.

                              is the “trusty” supposed to load into the FOS System, or is trusty it’s own environment?

                              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

                                Here is what I am trying to do.

                                1. As shown in the menu path. Loaded the trusty ISO contents and created kickstart files. Verified calling via http://fogsrv/OS_IMAGES/ubuntu-14.04.3-DVD/

                                2. Created a new menu entry, like below

                                0_1463585147434_Screen Shot 2016-05-17 at 1.43.56 PM.png

                                1. Registered a client host and pxe booted. From the boot menu, I was able to see the new menu fog entry that I created. Manually selected “Trusty”

                                2. My client host got successfully got kickstart trusty installed and rebooted as per my kickstart instructions.

                                Now the issue that I have is.

                                a. I don’t want to scroll down and select my custom menu on every client host. I want to make this a custom task and assign to any registered host when I want to install trusty.

                                b. With the help of plugins, I came to know that I can create custom tasks.

                                c. Now the question is how can I call my menu or direct code of my trusty install through this custom task.

                                Please let me know if you have any more questions.

                                Thank you
                                Chakri

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

                                  @csa So this is going to take a bit more time as you’re trying to adjust the tasking elements themselves. But your tasking is intended NOT to load into the FOG system, correct? You want the tasking to load into a whole different environment?

                                  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 2 Replies Last reply Reply Quote 0
                                  • C
                                    csa @Tom Elliott
                                    last edited by

                                    @Tom-Elliott

                                    Yes I think that is correct.

                                    Thank you
                                    Chakri

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

                                      @Tom-Elliott

                                      Re-thinking about the question. When I was able to call the kickstart installation via my custom entry. Which is presented by fog menu. Not sure if that is called as a separate environment. Shouldn’t this be like any other “memtest” or diskcleanup task which already there?

                                      Thank you
                                      Chakri

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

                                        I know of a way to get this working, it’s just a bit more involved initially.

                                        Because you want it as a tasking, I need to see if there’s a hook available to operate against the tasking functions.

                                        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 2 Replies Last reply Reply Quote 0
                                        • C
                                          csa @Tom Elliott
                                          last edited by

                                          @Tom-Elliott
                                          Thank you so much for your time. Please let me know. Again loving this product so much and its a great invention.

                                          Thank you
                                          Chakri

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

                                            @csa For automated installs you might want to check out FAI as well. Does PXE boot as well. I am running FOG and FAI alongside on my dev notebook sharing all the common services (NFS, DHCP, PXE, TFTP, …). I am not saying you shouldn’t do this with FOG. It’s probably doable and you’d have it all together in one solution. Just saying that FOG is made for cloning and FAI is made for automated installs.

                                            Looking forward to see if you can make it work within FOG!

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            234

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project