Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    JulianWeis
    @JulianWeis
    @Fdall But still there is no report showing up!
    JulianWeis
    @JulianWeis
    @Fdall thanx for your help. I checked the DNS-Server - there was no entry for the missing node.
    Rana Masud
    @mrana_dev_gitlab
    Is there anyone can teach me Rudder? I really want to learn and willing to pay for your time. Thank you
    Alexis Mousset
    @amousset:matrix.org
    [m]
    Hi @mrana_dev_gitlab, sure, we do Rudder training sessions (on-site or remote). You can contact us through https://www.rudder.io/contact/ to get more information.
    Rana Masud
    @mrana_dev_gitlab
    Thanks @amousset:matrix.org , remote will work for me.
    @amousset:matrix.org I submitted my request, don't know how soon I'll get response.
    Elenui
    @Elenui
    Hello rudder's team !
    I currently trying to use the templating technique to push on my client snmpd.conf. Nonetheless my agent failed to deploy it with message : " Jinja templating failed with the following error: "
    Except that there is no error :'(
    I tried to have the simplest file with no jinja. And the verbose mode is not really helping me :'(
    Fdall
    @Fdall
    Hi @Elenui does running it in "info" mode using rudder agent run -i help?
    If not, verify that the template is well deployed to your node and that jinja2 is installed. If you want to be sure that your template is deployed on the agent, the best way is to create a technique via the technique editor, and attach the template as a resource to it.
    Elenui
    @Elenui
    Hum... I'm a fool Jinja2 wasn't here
    Now it work like a charm. But isn't strange that rudder didn't tell me ?
    Thanks Fdall for your help :)
    Elenui
    @Elenui
    I may need another advice. I'm trying to do something only if a package is installed. I used the package check installed. And if the package is present my file is copy to my server. Nonetheless if the package is not installed I get an error. The job works but on my display I have some "non" error. Any idea?
    Fdall
    @Fdall
    Currently Rudder does not offer a pretty way to use a method as an audit condition, which means you won't easily be able to do that. You have 2 solutions here:
    • use the package_check_install method in the technique editor, but I am pretty sure that it is based on our old package lib which is not super reliable and will soon be deprecated.
    • The other solution is to define a group based on the presence of the package on the nodes, and use a dedicated rule to apply the configuration to this group. The drawback is that the groups are based on the inventories which is only run one time per day. So this will induce a potential initial delay in your config deployment if you do not force an inventory after the installation of this pakcage.
    Elenui
    @Elenui

    I see. Is it possible to use a property from my node as a condition to deploy or not the file ? The idea is to configure all my snmpd's conf. So create a dédicated rule for each type of server seem pretty overkill and a pain to maintain.

    So far the package_check_install works like a charm except the error if the package is not present. Note that it does what I want but the dashboard is not clean XD.

    Thanks again @Fdall for your help. And thanks the team for this absolute gem :)
    Fdall
    @Fdall
    You can define properties on a global/group/node basis. There is a hierarchical inheritance between the elements at generation time.
    If you want to define conditions usable anywhere in a technique (and not just in a template), to prevent the execution of some methods in it for instance, you can try to use the condition_from_variable_* methods. They are a bit tricky but they are well documented.
    Try to use those and a set of templates if the configuration is pretty complex. Let me know if you find a pretty way configure it.
    Elenui
    @Elenui
    ohh interesting. Didn't see this one. I'll try Monday. Forgot to take pro laptop.
    Thanks again @Fdall :)
    Elenui
    @Elenui
    Hello, so I tried with condition from variable and check path exist. If the path / var match it's ok. But if not it trow a error
    I'll keep that way. It's not pretty but it work.
    Fdall
    @Fdall
    Great :thumbsup: the error should only be thrown if the variable does not exist at all. It is avoidable but quite tricky and ugly. In 7.0 you will be able to disable the reporting of specific method calls so do not worry too much, it should be easily fixable in the near future.
    Elenui
    @Elenui
    Noice :p
    In the version 7, will be a way to upload a file from the agent to the rudder ? I know there is a method with uid. But I think it wont work for my purpose. The idea is to get all ssl certificate create by letsencrypt and upload it to the agent to be deploy on each haproxy node ^^"
    Fdall
    @Fdall
    No idea there, maybe @amousset:matrix.org might be more familiar with this subject
    Elenui
    @Elenui
    ah :o
    lpwevers
    @lpwevers

    Hi,

    I'm not sure if this is the right place to ask, but as of today I found that there seems to be an issue with the SLES15 repository for installing the rudder agent. When trying to install I get this error message:

    Retrieving repository 'Rudder' metadata ...................................................................[error]
    Repository 'Rudder' is invalid.
    [Rudder|http://repository.rudder.io/rpm/latest/SLES_15/] Valid metadata not found at specified URL
    History:

    • File './repodata/14905c9aca00db9cada7f0ba89e8d9f3dd3a670f1e1e02e67bc0fbab0ab49583-primary.xml.gz' not found on medium 'http://repository.rudder.io/rpm/latest/SLES_15/'
    • Can't provide ./repodata/14905c9aca00db9cada7f0ba89e8d9f3dd3a670f1e1e02e67bc0fbab0ab49583-primary.xml.gz

    It looks like the primary.xml.gz was replaced with c558b0dc22b12134408b6e1baf7e2c369b45c3dd23e1247fe4c533a11467e4e0-primary.xml.gz.

    Can this please be fixed?

    Vincent Membré
    @VinceMacBuche
    Hello @lpwevers You're definitely in the right place (or at least, one of them) !
    Can you run zypper refresh before installing ? does the repository was installed more than a week ago ?
    14905c9aca00db9cada7f0ba89e8d9f3dd3a670f1e1e02e67bc0fbab0ab49583-primary.xml.gz was made for 6.2.10 release of Rudder
    we released a 6.2.11 last week and thus, the metadata has chanegd (latest repository is updated with the latest available version )
    lpwevers
    @lpwevers
    Hi, @VinceMacBuche. Thanks for your prompt reply. This was a new and fresh installation. For some reason it's working now. I have a feeling the proxy server on our side used a cached value for the old repository. The repository is working for 6.2.11 now as it should.
    Vincent Membré
    @VinceMacBuche
    Great! you're welcome! Yes probably a cached value somewhere ...
    Benjamin Dupalut
    @binibitobi_gitlab
    Hi everyone,
    I am coming to ask you for help. I don't know how to verify that a file has a specific string. I can check if an entire line exists but not just a string.
    Elenui
    @Elenui
    Hello, not an expert, but maybe u can use a command execution
    with a little script
    If string exit 0 ; else exit 2
    Maybe with this instruction ?
    image.png
    Elenui
    @Elenui
    but maybe there is another way to do it cleaner ^^"
    Nicolas Charles
    @ncharles
    Hi @binibitobi_gitlab . Is it a specific string as in a key=value to check a value, or something else ?
    if the format is normalized, you may want to have a look at augeas method
    if it's in a key=value type of context, you can check all the file key value methods (there are multiple variations)
    Benjamin Dupalut
    @binibitobi_gitlab

    Hello @ncharles ,

    Thanks for your feedback.

    Currently, I am trying to verify that our rsyslog server is configured correctly in our clients' /etc/rsyslog.conf file. So I need to make sure that the @ syslog.xxxxxx.xxx: 514 string is present in the file.

    I tried using the augeas method but whether the string is present or not, it shows me "Compliant".

    Elenui
    @Elenui
    why are you not using the template for your rsyslog ?
    that way you will be sure that your file is setup the right way.