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
    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 ?
    norbertoaquino
    @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
    Waccabac
    @Waccabac_twitter
    Nicolas Charles
    @ncharles
    you can use the technique in Normation/rudder-techniques#1621 to fix your issue
    pmg
    @pmg7557_twitter
    Hi All, I come back with "job scheduling" pb (see https://issues.rudder.io/issues/18203) and seem to find similar pb with "cron directive", but I have difficulties to analyse. With "normal cron", to test I setup the next launch the next minute; but with "rudder cron directive" I don't known how to do.I have 3 questions :
    Let's say I setup a rudder cron job to start at t1, what I have to do to be sure that the job should run at t1 in a specific node (rudder agent update and rudder agent run before t1?)
    Let's say I setup a rudder cron job to run hourly, when I'll be sure that the job should have run of a node (after rudder agent upate, rudder agent run and one hour later?)
    In both case, I touch a file to see when the job run, but except this, where can I find the running cron job in the log?
    Thanks in advance.
    pmg
    @pmg7557_twitter
    I have a status error :
    32377fd7-02fd-43d0-aab7-28460a91347b / c37f4a6d-8e11-4888-aa56-dd1e2e95aad2; cause was: Unexpected: Unexpected: Inconsistant policy mode: both audit and enforce applied
    Strange? How can I find the cause?
    pmg
    @pmg7557_twitter
    Status error : solved : disabled / re-enabled some directives by group ... no modification ! ... Really strange ...
    Nicolas Charles
    @ncharles
    Hi. The cron technique edits the /etc/cron.d files
    a cron hat's scheduled to be run every hour will use the prefix 0 * * * * for the job
    a cron hourly will simply be a sript added in /etc/cron.hourly
    pmg
    @pmg7557_twitter
    @ncharles Thanks, in fact, the 'cron pb' was due to the 'status error', policies were note updated, but I have no explanation for the status error ...
    Nicolas Charles
    @ncharles
    if you click on it, you can see the details
    it ought to be self explanatory
    (but sometimes it is not so clear as to why