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

    Adding complete custom task

    Scheduled Pinned Locked Moved
    General
    2
    3
    1.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.
    • F
      fishfox
      last edited by fishfox

      I have added the Task Types plugin and have a working task that boots me into an ISO.

      I have accomplished this by putting this into the kernel arguments: && imgfree && initrd http://${fog-ip}/fog/isoimg/LiteTouchPE_x64.iso && chain memdisk iso raw

      My understanding is that this effectively “hijacks” the boot sequence by slipping in my ISO after FOS loads successfully.

      Is there a way that I can can mark the task complete right before I boot into the ISO?

      Where can I find the existing tasks so I can view the source?

      Thanks!

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

        @fishfox Maybe think about using the API? There is a good post on this in the forum: https://forums.fogproject.org/topic/10036/api

        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

        F 1 Reply Last reply Reply Quote 0
        • F
          fishfox @Sebastian Roth
          last edited by fishfox

          @sebastian-roth Not a bad thought.

          I enabled the API in FOG Configuration > Fog Settings > API Enabled > Update and copied the API key.
          I then created a new user and got their API key.
          I am trying this:

          curl -H 'fog-api-token: <server token>' -H 'fog-user-token: <user token>' -H 'Content-Type: application/json' -X GET http://fog.home/fog/system/info
          

          And I get a 404:

          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
          <html><head>
          <title>404 Not Found</title>
          </head><body>
          <h1>Not Found</h1>
          <p>The requested URL /fog/system/info was not found on this server.</p>
          <hr>
          <address>Apache/2.4.33 (Ubuntu) Server at fog.home Port 80</address>
          </body></html>
          

          Something else I need to do to enable?

          EDIT:
          Switched to working branch as per this, no luck: https://forums.fogproject.org/topic/11764/api-broken-after-update-to-1-5-2
          Same issue when trying via IP instead of DNS name.

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

          190

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project