Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Matthew Frost
    @mattronix
    ah
    Fdall
    @Fdall
    \o/ it's working on my machine now, will try to do a patch today
    Matthew Frost
    @mattronix
    :)
    you
    are
    awesome
    thanks for all the support so far this means the POC will sail though
    Matthew Frost
    @mattronix
    
    function is_ec2 { 
      $UUID = Get-WmiObject -query "select uuid from Win32_ComputerSystemProduct" | Select -ExpandProperty UUID  | Out-String
    
      if ($UUID.Substring(0,3) -ne "EC2") {
        return $False    
      }
    
      $MetaEndpoint = Invoke-webRequest -Uri $METAURL
      return $MetaEndpoint.StatusCode  -eq "200"
    
      }
    rewriting aws.py to powershell step 1 lol
    Alexis Mousset
    @amousset
    \o/
    Matthew Frost
    @mattronix
    im going to 1:1 rewrite it
    asking the prospect if i can o/s it back to rudder
    Alexis Mousset
    @amousset
    That would be great :)
    Matthew Frost
    @mattronix
    added the file you sent :)
    get some erros stull :(

    Node uuid: 6106d7f0-9636-457c-8df7-6f3a669e83cc
    Start execution with config [20191114-102046-8993c7ea]

    Mode State Technique Component Key Message
    fusioninventory-agent.bat : print() on closed filehandle $fh at ../agent/FusionInventory/Agent/Task/Inventory/Generic/Rudder.pm line 158.
    At C:\Program Files\Rudder\policy\resources\inventory.ps1:25 char:7

    • & "c:\Program Files\FusionInventory-Agent\fusioninventory-agent ...
    • ~~~~~~~~~~~~~~~
      • CategoryInfo : NotSpecified: (print() on clos...er.pm line 158.:String) [], RemoteException
      • FullyQualifiedErrorId : NativeCommandError

    Odd number of elements in anonymous hash at ../agent/FusionInventory/Agent/Task/Inventory/Win32/Users.pm line 56.
    The inventory has been successfully sent

    think its due to my ps1 script :)
    to works \O/
    it works*
    great work !!!
    SUPER HAPPY!
    WHOOP WHOPP
    Alexis Mousset
    @amousset
    :fireworks:
    matrixbot
    @matrixbot
    realitygaps (@realitygaps:chat.weho.st) \o/
    pablo-qb
    @pablo-qb
    Hello, doesn't rudder automatically update a node IP address on search nodes / network interfaces section?
    I mean, I added a node to rudder the monday, and it had X IP. Now, its IP address changed to Y and rudder still shows X IP address
    Alexis Mousset
    @amousset
    it should be updated, but it requires a new inventory. One is made every night, so if the change happened today it's normal (and you can trigger the update with rudder agent inventory on the node)
    pablo-qb
    @pablo-qb
    That's kinda true! Thank you so much Alexis!
    What happen if the node is powered off when the inventory update have to trigger?
    Will it be triggered when node is powered on on its first run?
    Alexis Mousset
    @amousset
    nope, it is only time-based
    pablo-qb
    @pablo-qb
    Can't I change the hour of the daily inventory?
    Matthew Frost
    @mattronix
    yep
    you can in settings
    as far as i remember at least
    hrrm
    i see i am wrong
    thats the agent run time
    pablo-qb
    @pablo-qb
    Yeah, I can create a cron job anyway
    Matthew Frost
    @mattronix
    also true
    pablo-qb
    @pablo-qb
    Thank you!
    Matthew Frost
    @mattronix
    $metadict = [PSCustomObject]@{
     'dynamic' = [PSCustomObject]@{ }
     'meta-data' = [PSCustomObject]@{ }
     }
    powershell is not really object friendly XD
    this is a dict XD
    Fdall
    @Fdall
    yep casting custom object to proper powershell dict can be painful, and I am pretty sure that json reading outputs PSCustomObject instead of Dict
    Matthew Frost
    @mattronix
    :P
    have to say tho im getting there
    load is done ish
    ec2 check is done
    and halfway though the dataparase function