Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Francois Armand
    @fanf
    @JrmChP_twitter depends of your use case. If you reinstalled rudder agent on the same node, and want a different uuid, you can use rudder agent reinit which will reset everything, create a new uuid, and send an inventory. Still, you will have to delete the old node/uuid and accepte the new one.
    _ChezW@m_
    @JrmChP_twitter
    ok thanks. no way to change the uuid on rudder after an os reinstall for example ?
    Francois Armand
    @fanf
    @JrmChP_twitter I don't know what you want to achieve. If it's an OS reinstall, it is a different node, no? Likely, not the same rules/groupes/etc. What would you like to keep from the other node/uuid ?
    _ChezW@m_
    @JrmChP_twitter
    @fanf juste a reinstall of same os / config on a host that was used for test before production. I was lazy and want to avoid declaration of properties :-)
    Francois Armand
    @fanf
    @JrmChP_twitter perhaps you could have used the old uuid, but there is some subtlilies regarding agent keys restoration, not sure it's documented
    _ChezW@m_
    @JrmChP_twitter
    ok thanks @fanf . I finally juste remove and accept nodes again. Only 3 manual properties to apply. by the way, maybe full copying a property from one node to another may be a cool improvements on future release :-)
    Francois Armand
    @fanf
    @JrmChP_twitter datasources plugin allows to copy properties from an end point
    pmg
    @pmg7557_twitter
    Hi All, I want to retrieve a rudder property for all my nodes. Does somebody know the right ldap request?
    Francois Armand
    @fanf
    @pmg7557_twitter not sure why you want to use LDAP ? That's an internal API, not meant to be public. Don't you want to use API for that ? curl -k -H "X-API-TOKEN: ..." -H "Content-Type: application/json" 'https://..../rudder/api/latest/nodes?include=minimal,properties' | jq '.data.nodes[] (here, you can be much more precise with filter on prop name, etc, see: https://stedolan.github.io/jq/manual/
    for example, to get values for all property names "test" in a json array that can be latter post-processed, you can do that :
    .../rudder/api/latest/nodes?include=minimal,properties' | jq '[.data.nodes[] | {"id":.id, "propTest": .properties | map(select(.name == "test"))}]'
    and the result will looks like:
    image.png
    pmg
    @pmg7557_twitter
    @fanf Thanks François. I thought of ldap because I just wanted to do a one quick one shoot test. I never used the API, I 'll see it later because for the moment curl failed due to lack of certifcat.
    Francois Armand
    @fanf
    @pmg7557_twitter even with -k ?
    @pmg7557_twitter also, you have a local token on server: curl -k -H "X-API-Token: $(cat /var/rudder/run/api-token)" ...
    pmg
    @pmg7557_twitter
    @fanf Ok with -k, very easy to use :-) THANKS. Just to fin a little bug in your filter ( bash: erreur de syntaxe près du symbole inattendu « select » )
    Francois Armand
    @fanf
    @pmg7557_twitter du you have single quotes around the whole expression? '[.data.nodes[] | {"id":.id, "propTest": .properties | map(select(.name == "test"))}]'
    bash should not look into it
    pmg
    @pmg7557_twitter
    @fanf Thanks, it works perfectly :-)
    Francois Armand
    @fanf
    :thumbsup:
    Waccabac
    @Waccabac_twitter
    Hi
    Does Rudder agent get Docker informations ?
    Francois Armand
    @fanf
    @Waccabac_twitter what is your use case? Rudder agent in a container?
    Waccabac
    @Waccabac_twitter
    I want to get software informations on container
    but every time the container is rebuild ... Normally Rudder-agent is reset ?
    Francois Armand
    @fanf
    @amousset or @peckpeck perhaps will know
    Waccabac
    @Waccabac_twitter
    hello :)
    Waccabac
    @Waccabac_twitter
    @fanf the Rudder API don't show "software list" of a node ?
    Francois Armand
    @fanf
    @Waccabac_twitter it does, but not by default to avoid perf and bloat pb since results can be huge
    see https://docs.rudder.io/api/#tag/Nodes for the list of things you can get about a node
    with the syntax: .../nodes?include=minimal,software for example
    (or just for a node of course: .../nodes/xxxx-xxxx-xxxx?inlcude=fullfor ex)
    Waccabac
    @Waccabac_twitter
    Yeah ! thanks @fanf !
    Waccabac
    @Waccabac_twitter
    Rudder agent get the docker containers :)
    is it possible to add the name of docker image in the listing ?
    Francois Armand
    @fanf
    @Waccabac_twitter I'm not sure exactly what you are asking for, but you can create "inventory hook" which adds more properties to inventory, and which are later viewable as a node property. There is documentation about inventory hook here (reference): https://docs.rudder.io/reference/6.1/usage/advanced_node_management.html#_creating_a_node_inventory_hook and here (example): https://docs.rudder.io/rudder-by-example/current/system/extend-inventories.html
    Waccabac
    @Waccabac_twitter
    Good !
    Thanks
    pmg
    @pmg7557_twitter
    Hi All, I created a hook to follow the free spaces of partitions. For instance, the output is : {"df_max": "47% /dev/sda7","df_rac": "47"}. But when I look at the properties on the GUI I have :
    df_rac : 47
    that's Ok
    df_max : Use% Filesystem
    What's wrong with the json value of df_max?
    Francois Armand
    @fanf
    @pmg7557_twitter I believe hook execution during agent lead to that output. You can check on the inventory content if you want to be sure about what was received. On root server, it should be in /var/rudder/inventories/received/hostname_uuid.ocs
    pmg
    @pmg7557_twitter
    @fanf Yes, the server recieved the false value, the pb is on the agent.
    pmg
    @pmg7557_twitter
    @fanf Ok, found, pb in my script with locale not setting!
    Francois Armand
    @fanf
    @pmg7557_twitter :thumbsup:
    Waccabac
    @Waccabac_twitter
    Hi
    Have you planned to add Ubuntu 20.x on aptPackageManager ?
    Norberto Aquino
    @norbertoaquino
    Waccabac
    @Waccabac_twitter
    Sorry @norbertoaquino , I asked this about "Package sources and settings (APT)" in Directives
    Alexis Mousset
    @amousset
    @Waccabac_twitter it is indeed missing. Could you open an issue?
    Waccabac
    @Waccabac_twitter
    Yes