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

Change default answer of the "Perform Full Host Registration and Inventory"

Scheduled Pinned Locked Moved
General
2
6
863
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.
  • D
    davido38
    last edited by Feb 3, 2021, 8:07 AM

    Fog version 1.5.9
    Debian 10

    Hi

    Is it possible to change the default answer of the “Perform Full Host Registration and Inventory” and how ?

    Thanks.

    G 1 Reply Last reply Feb 3, 2021, 11:14 AM Reply Quote 0
    • G
      george1421 Moderator @davido38
      last edited by Feb 3, 2021, 11:14 AM

      @davido38 The quick answer is yes. But you need to be a bit more descriptive of what you want to change.

      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
      • D
        davido38
        last edited by Feb 3, 2021, 11:58 AM

        I would like to change this :

        Would you like this host to join a domain ? => yes

        Would you like to deploy image to this computer now? (y/N) => yes

        Thanks

        G 2 Replies Last reply Feb 3, 2021, 12:37 PM Reply Quote 0
        • G
          george1421 Moderator @davido38
          last edited by Feb 3, 2021, 12:37 PM

          @davido38 The bit longer answer is yes its possible but you will need to do a setup on your fog server to patch the client image. Its not hard to do, but does have a few steps you must follow.

          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
          • G
            george1421 Moderator @davido38
            last edited by Feb 3, 2021, 12:49 PM

            @davido38 Here is the updated file you need.

            fog.man.reg.txt

            You will need to “Save link As” fog.man.reg (hint remove the .txt from the end) and move it to your fog server into ‘/images/postdownloadscripts’ directory.

            In that ‘/images/postdownloadscripts’ directory create a file called fog.patchregistration

            In that file place the following commands.

            #!/bin/bash
            
            echo "";
            echo "Installing Custom Registration Patch"
            cp -f ${postinitpath}fog.man.reg /bin/fog.man.reg
            echo "Done Patching"
            

            Save the file then edit fog.postinit file and add in the following line

            . ${postinitpath}/fog.patchregistration
            

            And save that change.

            That is all you need to do. First test it to make sure it works as you wanted. Then if you want to change the registration file more all you need to do is just edit the fog.man.reg in the post inits path.

            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
            • D
              davido38
              last edited by Feb 3, 2021, 2:28 PM

              It works great !

              Thanks a lot !

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

              185

              Online

              12.1k

              Users

              17.3k

              Topics

              155.4k

              Posts
              Copyright © 2012-2024 FOG Project