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

    add boot menu to deploy associated image

    Scheduled Pinned Locked Moved Solved
    Feature Request
    5
    21
    5.8k
    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.
    • L
      lebrun78
      last edited by

      Hello,

      I would like to add to boot menu a choice to deploy the image associated with the host. Actually, with the menu deployimage, all the images are proposed.
      How could I do ?

      Fog Version: Fog 1.5.10
      Server OS: AlmaLinux release 8.8

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

        The “Deploy image” selector will select the Image associated to a host IF a host is associated, and default to deploying that image if no button is pressed.

        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

        george1421G 1 Reply Last reply Reply Quote 1
        • george1421G
          george1421 Moderator @Tom Elliott
          last edited by

          @Tom-Elliott Could a “feature” be added to only display the image that is defined for that image? I can see this being a global setting.

          This way the IT tech could only quick deploy an image that the FOG IT admin defined for that target computer and no other?

          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!

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

            The image assigned to the host is already pre-selected. If no key is pressed, the timeout will run down and the assigned image is used.

            Changing this would require a lot of code changes. Perhaps that could be worked into the new access control plugin @Fernando-Gietz ??

            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/

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @Wayne Workman
              last edited by

              @Wayne-Workman It more to the point, if I set a specific image for a system, I don’t want someone picking something else (maybe a dev image that hasn’t been approved yet). There are other use cases, but that is the most common.

              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!

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

                @george1421 I think such things should be enforced by rules, policy, communication, and punnishment - rather than with code, personally.

                Not up to me though. I would bet that @Fernando-Gietz could probably do something in the access control plugin for it.

                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
                • x23piracyX
                  x23piracy
                  last edited by x23piracy

                  Why should only show associated image require a lot of code changes? @Tom-Elliott @Wayne-Workman
                  Is there no easy way to say make everything else not showing up in that list without association?

                  I really would also like to have that option.

                  I have some notebooks out there where the employees reset to a default image again when they make test installation of our own software. Actually they can pick up every image that is on the node, and i like to prevent them from choosing what ever they want.

                  Regards X23

                  ║▌║█║▌│║▌║▌█

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

                    This isn’t about the difficulty in adding this, that’s simple. It’s we keep getting people who wanted one thing then later, it seems, they want it back to how it was.

                    Deploy image use to do exactly what’s wanted here until it was requested to allow the ability to select their own image. It was requested so often that I made the change. Now we’re here.

                    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

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

                      While it’s not a perfect system, I’ve moved this into Feature requests and asked as a question and solved it.

                      Why did I solve it? Because I’ve adjusted to code to allow users to decide if they want a list of images or not. A new item in FOG Settings under FOG Boot Settings will allow you to display the images as a list or not.

                      The way the code is laid out, if this box is checked (it is enabled by default now), it will present a list of images as you see today. This list will be preset on registered, or non-registered hosts.

                      If this box is not checked, there will still be a “list” but it will only contain the device’s assigned image and return to menu items. If the host is not registered, or does not have an image associated to it, it will present you with an error. The error will be:

                      Host is not valid, host has no image assigned, or there are no images defined on the server.
                      

                      Hopefully this appeases everybody.

                      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

                      george1421G 2 Replies Last reply Reply Quote 1
                      • x23piracyX
                        x23piracy @Tom Elliott
                        last edited by

                        @Tom-Elliott so please give us the option to choose in settings what we need.

                        ║▌║█║▌│║▌║▌█

                        1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @Tom Elliott
                          last edited by

                          @Tom-Elliott Sweet that will solve both requests

                          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!

                          1 Reply Last reply Reply Quote 1
                          • george1421G
                            george1421 Moderator @Tom Elliott
                            last edited by

                            @x23piracy Tom said in add boot menu to deploy associated image:

                            A new item in FOG Settings under FOG Boot Settings will allow you to display the images as a list or not.

                            It sounds like there is now a global option to do this.

                            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!

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

                              @george1421 I should clarify, there “will be” the ability to make this choice when I push up the next RC.

                              If you all want to use this now, please install the working branch.

                              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
                              • george1421G
                                george1421 Moderator
                                last edited by george1421

                                We all must understand the impact of turning on (or off depending on the logic used) this function. With the display only defined images enabled you will not be able to do a quick image on an unregistered host. Because an unregistered host will not be in fog so there will be nothing to display in that quick image menu. If you turn this feature off then you will be able to quick image any unregistered system, but you will also see all possible images when you try to quick image a registered host.

                                This is a handy feature as long as you understand the caveats of it being enabled/disabled.

                                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!

                                Tom ElliottT 1 Reply Last reply Reply Quote 2
                                • Tom ElliottT
                                  Tom Elliott @george1421
                                  last edited by

                                  @george1421 That’s precisely what my logic flow is.

                                  If the image list is enabled, show a list of all defined images. This will work for unregistered and registered hosts. If a host is registered, the associated image will be selected for the user and will automatically begin imaging after the PXE Timeout period.

                                  If the image list is disabled, it will only present a registered host it’s associated image and will begin imaging after the PXE Timeout period. If a registered host has no image associated, it will print the error. If an unregistered host selects the deploy image item, it will print the error.

                                  In ALL cases (On or off) if you have no images defined it will print the error.

                                  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

                                  x23piracyX 1 Reply Last reply Reply Quote 0
                                  • x23piracyX
                                    x23piracy @Tom Elliott
                                    last edited by

                                    @Tom-Elliott don’t slap me but where exactly is the option located?

                                    ║▌║█║▌│║▌║▌█

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

                                      @x23piracy

                                      @Tom-Elliott said in add boot menu to deploy associated image:

                                      A new item in FOG Settings under FOG Boot Settings will allow you to display the images as a list or not.

                                      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

                                      x23piracyX L 2 Replies Last reply Reply Quote 0
                                      • x23piracyX
                                        x23piracy @Tom Elliott
                                        last edited by

                                        @Tom-Elliott thanks, tested it’s working as expected. Thank You!

                                        ║▌║█║▌│║▌║▌█

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          lebrun78 @Tom Elliott
                                          last edited by

                                          @Tom-Elliott
                                          I checked, but I get this message,
                                          “Host is not valid, host has no image assigned, or there are no images defined on the server.”
                                          But I have a image assigned to this host, win10-3
                                          alt text

                                          Fog Version: Fog 1.5.10
                                          Server OS: AlmaLinux release 8.8

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

                                            @lebrun78 Then something is wrong with your configuration.

                                            The message will only happen in the cases I described.

                                            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

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

                                            228

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project