• Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. typotony
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 10
    • Best 1
    • Controversial 0
    • Groups 0

    typotony

    @typotony

    3
    Reputation
    1
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    typotony Unfollow Follow

    Best posts made by typotony

    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      Hi @JJ-Fullmer ! That was Chefs Kiss beautifully done. That method is much easier than accessing the db directly and it solves everything I was hoping to achieve. Everything is working as its supposed to and I set it up to run on cronjobs to export and import the imageDefinitions nightly. Hopefully this improves the ability for companies to have various fog servers around their offices without requiring a VPN to sync images. Thanks as well @george1421 and @Sebastian-Roth!

      posted in General
      T
      typotony

    Latest posts made by typotony

    • RE: Host registration error.

      @george1421 Thanks for responding. I’ll go ahead and create a new thread. Thank you!

      posted in FOG Problems
      T
      typotony
    • RE: Host registration error.

      @mbuteyn Hey there, running into this problem myself with Dells. So you installed the realtek drivers for the specific usb-c NIC you’re using? Which bzimge are you using as well? I have March 5, 2023
      5.15.93
      AMD/Intel 64 Bit and 32 bit but no luck.

      posted in FOG Problems
      T
      typotony
    • RE: FOG 1.5.10 officially released

      @Sebastian-Roth Thank you fog team!!!

      posted in Announcements
      T
      typotony
    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      Hi @JJ-Fullmer ! That was Chefs Kiss beautifully done. That method is much easier than accessing the db directly and it solves everything I was hoping to achieve. Everything is working as its supposed to and I set it up to run on cronjobs to export and import the imageDefinitions nightly. Hopefully this improves the ability for companies to have various fog servers around their offices without requiring a VPN to sync images. Thanks as well @george1421 and @Sebastian-Roth!

      posted in General
      T
      typotony
    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      @JJ-Fullmer Wow that is awesome! I just tested it myself and am running into the problem with the initial setup.

      I was able to get pwsh installed on Ubuntu and it seems to be working properly. I have installed and imported the FogApi module.

      My configuration is below. I am running into an positional parameter problem when using ‘Set-FogServer Settings’.

      import-module FogApi
      
      Set-FogServerSettings -fogApiToken 'mytoken' -fogUserToken 'mytoken' fog-server 'http://192.168.150.25';
      
      function Export-FogImageDefinitions {
          [cmdletBinding()]
          param (
              $exportPath = "\home\mydir\"
          )
          $images = Get-FogImages;
          $images | Foreach-object {
              $name = $_.name;
              $_ | ConvertTo-Json | Out-File -encoding oem "$exportPath\$name.json";
          }
      }
      

      PS /home/me> Get-InstalledModule -Name FogApi

      Version Name Repository Description


      2302.5.15 FogApi

      The error i’m seeing.
      | Set-FogServerSettings -fogApiToken 'NmFiMDI4YzAwMmQ3MGUzYTQ3NWEzMDgwN …
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | A positional parameter cannot be found that accepts argument ‘fog-server’.

      posted in General
      T
      typotony
    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      @george1421 Thank you for that. It does make sense and I think its pretty logical as well.

      So to be clear, creating this banded sort of dbs together shouldn’t cause issues if I were to export and import the images table from mysql server to server since each server has its unique block of IDs that it should be using when creating an image.

      I’ll have to test this out but that sounds like the gist of it.

      posted in General
      T
      typotony
    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      @george1421 Thank you for the feedback. Ideally, yes, we would like them to create their own images and sync it back up to cloud storage as well so all of the images from each office are available to each other (things like, keyboard differences, language, etc).

      But yes, maybe having one server create all of the images might be the way to go.

      posted in General
      T
      typotony
    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      @Sebastian-Roth Hey, thanks for responding so quickly. Yes, the script pulls the images from the cloud AWS S3 bucket into /images everynight and skips images that have already exists.

      The import option sounds like it could work. Would I be exporting a csv/db from the root server? So to summarize it sounds like this would be the optimal workflow.

      On the root server

      • Export mysql to csv/db
      • Place file into dir that will be uploaded to cloud storage

      On satellite servers

      • Cronjob pulls images nightly from cloud storage
      • have cronjob to check if sql dump exists in /images dir and then import it, which should update the image definitions within Fog.

      Does that sound right?

      posted in General
      T
      typotony
    • RE: Copy Cloud Storage of /images to Remote Servers Globally

      We have pretty non-technical people in other offices and would like them to not have to do the csv importing/exporting themselves. A small task but a task they wouldn’t do themselves. I appreciate the response.

      posted in General
      T
      typotony
    • Copy Cloud Storage of /images to Remote Servers Globally

      Hi everyone,

      Was trying to find cases similar to mine and was hoping someone has similar experience. I have three servers in different offices around the world. For specific reasons, we cannot have a VPN. What i’ve done is have a cronjob of images stored in /images copied to cloud storage (s3, gcp bucket) and have the other two servers pull the images from there and copy into their own /images dir.

      The issue now is that aside from the server that did the initial copy to the cloud storage, the other two servers images are not showing up when it comes time to deploy, even though its available in /images. Is there a way to have images that are copied to /images automatically be imported so we don’t have to run the manual process myself of exporting and importing CSVs?

      posted in General fogapi-psmodule api automation cloud
      T
      typotony