In the puppet templates, what we defined is as follow.
....
group_search => {
base_dn => 'OU=X,OU=Y,OU=Enterprise Services,DC=A,DC=B,DC=C',
scope => 'one_level',
},
....
The following is what we get in the generated elasticsearch.yml
....
xpack.security.authc.realms.active_directory.group_search.base_dn: OU=X,OU=Y,OU=Enterprise
Services,DC=A,DC=B,DC=C
....
the space inside "Enterprise Services" in the puppet templates is converted into 'new line (\n)' in the corresponding item inside elasticsearch.yml.
The Puppet module just uses Ruby's built-in hash-to-yaml library to create the Yaml configuration file. If you'd like to enforce that the value be kept in a more strict string, I'd suggest trying to wrap the value in additional quotes, for example:
In some simple testing in ruby, to_yaml doesn't appear to split lines at spaces, so I'm trying to track down what may be different in your environment.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.