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

    Don't re-write the .fogsettings file

    Scheduled Pinned Locked Moved Solved
    Feature Request
    2
    9
    4.1k
    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.
    • Wayne WorkmanW
      Wayne Workman
      last edited by Wayne Workman

      I am working on a little add-on thing for FOG, I originally was putting extra settings into the .fogsettings file.

      I just found out that the latest FOG Trunk installer throws out my custom settings in the .fogsettings file.

      Is there any way to leave unknown settings in there alone?

      There’s a script here, that’s what I’m working on:
      https://forums.fogproject.org/topic/6378/changing-ip-address-post-fog-install-is-problematic/23

      It adds bldnsmasq and dodnsmasq to the .fogsettings file.

      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
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        I worked around the issue by creating a secondary settings file - so don’t worry about 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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

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

          I have made some strides towards getting this as it does make sense. New installs will now have a start and end line indicator as well.

          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 0
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            It works - the settings that my script puts in there are not being thrown out now. 🙂

            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
            • Wayne WorkmanW
              Wayne Workman
              last edited by

              The .fogsettings file is no longer being totally re-written, but something is funky when I add my own parameters to it.

              I’ve added bldnsmasq and dodnsmasq, but when I do this, the password and ftp password get re-written over and over at the bottom of the file. See below.

              ## Start of FOG Settings
                      ## Created by the FOG Installer
                      ## Version: 6269
                      ## Install time: Sat 13 Feb 2016 08:25:58 AM CST
              
                      ipaddress='10.0.0.4'
                      interface='ens3'
                      submask='255.255.0.0'
                      routeraddress='10.0.0.1'
                      plainrouter='10.0.0.1'
                      dnsaddress='208.67.222.222'
                      dnsbootimage='208.67.222.222'
                      password='x4Nd8pKtliYg+pTAHL/jYNeVEPA21JiR/NRWrgRdoCs='
                      osid='1'
                      osname='Redhat'
                      dodhcp='n'
                      bldhcp='0'
                      blexports='1'
                      installtype='N'
                      snmysqluser=''
                      snmysqlpass=''
                      snmysqlhost=''
                      installlang='0'
                      donate='0'
                      storageLocation='/images'
                      fogupdateloaded=1
                      storageftpuser='fog'
                      storageftppass='m4g9HHtgfIgTdr8dvhNjy/9NLaKXvLO83Un1+620qCE='
                      docroot='/var/www/html/'
                      webroot='fog/'
                      caCreated='yes'
                      startrange='10.0.0.10'
                      endrange='10.0.255.254'
                      bootfilename='undionly.kpxe'
                      packages='httpd php php-cli php-common php-gd mariadb mariadb-server dhcp-server tftp-server nfs-utils vsftpd net-tools wget xinetd tar gzip make m4 gcc gcc-c++ lftp php-mysqlnd curl php-mcrypt php-mbstring mod_ssl php-fpm php-process'
                      noTftpBuild=''
                      notpxedefaultfile=''
                      dodnsmasq='0'
                      bldnsmasq='1'
                      ## End of FOG Settings
              
              ## Version: 6269
              password='x4Nd8pKtliYg+pTAHL/jYNeVEPA21JiR/NRWrgRdoCs='
              storageftppass='m4g9HHtgfIgTdr8dvhNjy/9NLaKXvLO83Un1+620qCE='
              

              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/

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

                @Wayne-Workman What’s your scripts looking like?

                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

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

                  @Tom-Elliott https://github.com/wayneworkman/FOGUpdateIP

                  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
                  • Wayne WorkmanW
                    Wayne Workman
                    last edited by

                    right now my scripts just stick the new settings at the very end of the .fogsettings file, and the installer will repeat the passwords settings. I’ve also just manually placed the additional settings within the defined start/finish area of the file with the same results.

                    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
                    • Wayne WorkmanW
                      Wayne Workman
                      last edited by

                      It might be a better idea to just add the settings to the DB instead… thoughts?

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

                      184

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project