Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    inamati
    @inamati:undebug.com
    [m]
    Not even close. I just have one file.
    And I installed from apt
    Nicolas Charles
    @ncharles
    Is /opt/rudder/share/initial-promises empty too?
    inamati
    @inamati:undebug.com
    [m]
    I dont know I reverted the VMS and am testing alternatives
    But I would like thank everyone for trying to help. I really appreciate it
    Nicolas Charles
    @ncharles
    it might be a packaging issue on our side - we need to double check the ubuntu20 package
    sumeshkanayi
    @sumeshkanayi
    Hi I am playing with rudder and want to know if i will be able to add custom node properties from node file system .I tried to add it through /var/rudder/cfengine-community/inputs/properties.json and even through /var/rudder/local/properties.d/custom_config.json but didnt see it updating on rudder itself
    Nicolas Charles
    @ncharles
    Hi ! /var/rudder/local/properties.d/*.json is for local override: it locally replace the the variables from the servers (like, if you need to change something temporarly on a node)
    To add properties on the node and have them on Rudder server itself, you need to extend inventories, like described here: https://docs.rudder.io/rudder-by-example/current/system/extend-inventories.html
    sumeshkanayi
    @sumeshkanayi
    nice ,thanks @ncharles
    Nicolas Charles
    @ncharles
    @inamati:undebug.com I checked on the ubuntu20 server, and i do have multiples files on masterfiles (most notably, the promises.cf)
    with a 6.2.9 on Ubuntu20
    sumeshkanayi
    @sumeshkanayi
    Hi Team, from where does rudder pick the environment variables ? I want to push few extra env variables to the agents , can some one help me with this
    czantoine
    @czantoine

    Hi all,
    I try to do something in Techniques with Command execution. I would like run shell on my servers like that :
    hostname=$(hostname)
    echo "$hostname" > text.txt

    The code work fine but on my dashboard I have a error statut.
    How can I return that all is well ?

    Nicolas E
    @necar_gitlab
    Hello guys, long time no see, I hope you're all OK, sound and safe, after these complex times.
    Here in Grenoble, back to business with a technical question about Oracle Linux 8.x : I see that the yum package manager is using python (and more specifically a wrapper to detect python2 or 3) and it's failing on my host. Obviously, this comes from python{2 or 3} is not installed by default. After a quick "dnf module install python36", my directives are running nicely. Do you think it could be worth mentioning it somewhere in the doc, or is Oracle Linux considered too a-side (not strictly supported) to bother?
    (wtf, my original login was necarnot... Well, it's still me :) )
    Domagoj Bazina
    @dbazina-dev
    Hello guys,
    Is there generic method or technique that can be used for mounting directories or files?
    Thanks :)
    Nicolas Charles
    @ncharles
    Hi !
    @necar_gitlab yes, it would definitively make sense. Could you open a ticket on the bugtracker? that would be great
    @dbazina-dev There aren't any generic method for that. We used to have a technique for that, but it turned out there were so many edge cases to manage that technique wasn't the best approach. What would you like to mount ?
    Domagoj Bazina
    @dbazina-dev
    @ncharles samba directory
    Nicolas E
    @necar_gitlab

    @necar_gitlab yes, it would definitively make sense. Could you open a ticket on the bugtracker? that would be great

    Hello @ncharles . Here it is : https://issues.rudder.io/issues/19904

    Nicolas Charles
    @ncharles
    @necar_gitlab awesome
    @dbazina-dev interesting - do you knwo which options would be useful for you in mounting it ?
    Domagoj Bazina
    @dbazina-dev
    @ncharles Hmm probably combination of commands. First I'm going to use "directory present", to check whether directory exists, then I'm going to add line in /etc/fstab, so whenever pc boot it will mount the samba directory, probably going to use (file line present). After that i m going to use mount -a
    Domagoj Bazina
    @dbazina-dev
    Is there generic methods, that check content of file, or if some line is present in file?
    czantoine
    @czantoine

    Hi all,
    I try to do something in Techniques with Command execution. I would like run shell on my servers like that :
    hostname=$(hostname)
    echo "$hostname" > text.txt

    The code work fine but on my dashboard I have a error statut.
    How can I return that all is well ?

    Anyone ?

    Nicolas Charles
    @ncharles
    @dbazina-dev yes, file line present ensure that a file contain a line.
    Hi @czantoine - what's the error message?
    czantoine
    @czantoine
    On the compliance reports, status show " missing"
    and i would like resutlt conditions prompt " Success "
    Nicolas Charles
    @ncharles
    I suspect that it's because of the $() - agent tries to evaluate it as variable
    czantoine
    @czantoine
    ok but i need to put this variable. How can I do ?
    Nicolas Charles
    @ncharles
    i'm checking
    czantoine
    @czantoine
    thank you !
    Nicolas Charles
    @ncharles
    if it's only hostname, you can use on of the built-in variable in rudder to get the hostname
    czantoine
    @czantoine
    no it was just an example, i want to do it with other things
    Domagoj Bazina
    @dbazina-dev

    I have one more question :D

    Each generic method has result condition, and there are 3 different cases:

    success
    repaired
    error

    After i run the agent, I can see 3 different "reports":

    compliant

    n/a - not applicable

    error

    repaired

    Is there any connection between these reports? I guess that repaired is when the task is done, compliant is when "state" is equal to desired one, error is self-explanatory?

    Nicolas Charles
    @ncharles
    Yes, success is when it's compliant (all was correct); repaired is something needed to be done to reach desire state, error is for error reports, or non-compliant report (in audit mode)
    Not applicable is when it's not applicable (like a policy for Debian on a RedHat system)
    So, I cannot manage to make it work with a SOMETHING=$(command)
    evaluation of command + evaluation of something that looks like a variable make it too complex to workaround
    HOWEVER, there's a generic method calls Variable string from command that will probably do what you want
    Domagoj Bazina
    @dbazina-dev
    @ncharles thank you :)
    Domagoj Bazina
    @dbazina-dev
    Where can I find deleted technique?
    czantoine
    @czantoine
    clic on technique -> actions -> delete
    Domagoj Bazina
    @dbazina-dev

    Hello guys !
    I wonder, are there any defined variables in rudder server, that can be used in technique-s?
    e.g. Every node has defined Hostname, Node_ID. So can I create technique, that as parameter uses e.g. $(hostname) and on execution for each node it will use hostname or Node_ID defined on Node summary page?

    I know how to define parameter in technique, and then declare it in Directive, but insted of declearing I want to forward that "global variable" defined for each node.

    Nicolas Charles
    @ncharles
    Hello
    This message was deleted
    you have the ${node.inventory[xxx]} values