### variable_string_from_augeas Use Augeas binaries to call Augtool commands and options to get a node label's value. Compatible with nodes running Rudder 6.0 or higher. #### Usage Augeas is a tool that provides an abstraction layer for all the complexities that turn around editing files with regular expressions. It's a tree based hierarchy tool, that handle system configuration files where you can securely modify your files. To do so you have to provide the path to the node label's value. Augeas uses lenses which are sort of modules that are in charge of identifying and converting files into tree and back. This way, you can manipulate at first the tree and then save your changes into the configuration files on the actual system. In this method, we introduce using augtool commands and options in order to get the value of a given node's label in the parameters, this can be done by specifying the path to it. The method has in total 5 parameters: variable prefix, variable name, path, lens and file. Actually there is two ways you can use this method, either you simply provide a path to the node's label as a parameter or you specify a file associated with a lens, then you put the regular path. When you only specify the path to the node's label, your request will includes by default Augeas charging all the lenses and files, on the other hand, if you have a specific file, for example, such as a Json file and you want to associate it to the existing Json lens, then in that case, you need to fill in addition the file and the lens parameter, this way Augeas won't load all its files and lenses except the ones you have specified. The generic method will get a node label's value from the agent, otherwise, if Augeas isn't installed on the agent, it will produces an error. #### With autoload Let's consider that you want to obtain the value of the ip address of the first line in the `/etc/hosts` file by indicating the path to it. (Note that the `label` and `value` parameters mentioned are naming examples of `variable prefix` and `variable name`, the path `/etc/hosts/1/ipaddr` represents the `ipaddr` node label's value in the first line in the `/etc/hosts`).