# ls -sk /var/rudder/ldap/openldap-data/ total 5176356 5176352 data.mdb 4 lock.mdb
ls -alh /var/rudder/ldap/openldap-data/total 5,0G
drwxr-xr-x. 2 rudder-slapd rudder-slapd 38 23 sept. 08:07 .
drwxr-xr-x. 4 rudder-slapd rudder-slapd 41 2 sept. 2019 ..
-rw-------. 1 rudder-slapd rudder-slapd 100G 23 sept. 13:16 data.mdb
-rw-------. 1 rudder-slapd rudder-slapd 17K 23 sept. 13:16 lock.mdb
@ncharles my commands:
ls -sk /var/rudder/ldap/openldap-data/
18921444 data.mdb 8 lock.mdb
ls -alh /var/rudder/ldap/openldap-data/
drwxr-xr-x 2 rudder-slapd rudder-slapd 38 Sep 23 10:02 .
drwxr-xr-x 3 rudder-slapd rudder-slapd 27 Sep 24 2020 ..
-rw------- 1 rudder-slapd rudder-slapd 19G Sep 23 10:37 data.mdb
-rw------- 1 rudder-slapd rudder-slapd 8.0K Sep 23 10:37 lock.mdb
⚠️ 🔒️ On September 30 2021 (next Thursday), the old root certificate previously used by Let’s Encrypt (DST Root CA X3), now replaced by ISRG Root X1 (which is now widely trusted) will expire. See the official announcement for details.
As the whole Rudder infrastructure uses Let’s Encrypt certificates, you may be affected by this change. It is very unlikely to be a problem for our websites, but may be for older operating systems interacting with our servers, which happens for:
In case you see a certificate verification error you have several options:
ca-certificatespackage on most Linux distributions) to get the correct root certificate.
Please contact us if you have questions or issues regarding this change.
I need help with replacing the lines in exact file.
So I have to comment out the exact line in the /etc/fstab, but the thing is that I don't know how that line looks like, all I know is that the line containes certain keyword.
I've made my own directive, that includes several different generic methods, but now I see that there is in built directive "File content", that offers option of replacing lines using REGEX. The first line defines the Regex that will match the line, and in the second line we have to define the "replacment line". As I said before I don't know the content of the line, all I have to do is to "fetch" the line and replace it with the same exacit line, but commented (#).
But I don't see that this is possible using inbuilt directives? I would like to avoid using command execution methods and capturing their variables.
I've found the solutions.
It is explained here: https://docs.rudder.io/rudder-by-example/current/files/edition-replace-line.html
There is option to capture the line that is matching the regex, and that capture is "stored to variable"
Oct 03 12:52:02 hv1 systemd: Started CFEngine file server. Oct 03 12:52:02 hv1 systemd: rudder-cf-serverd.service: Succeeded. Oct 03 12:52:02 hv1 systemd: rudder-cf-serverd.service: Service RestartSec=100ms expired, scheduling restart. Oct 03 12:52:02 hv1 systemd: rudder-cf-serverd.service: Scheduled restart job, restart counter is at 4. Oct 03 12:52:02 hv1 systemd: Stopped CFEngine file server.