Created
June 7, 2016 21:21
-
-
Save lutter/e22e87574481a8efead3c104adc85e7b to your computer and use it in GitHub Desktop.
Puppet augeas and ODBC inst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> puppet apply /tmp/test.pp | |
Notice: Compiled catalog for host.example.com in environment production in 0.04 seconds | |
Error: /Stage[main]/Main/Augeas[oracle odbc driver config]: Could not evaluate: Saving failed, see debug | |
Notice: Applied catalog in 0.02 seconds | |
# The debug information shows that the tree correctly has a node { "Oracle" { "Driver Logging" = "7" } } | |
# The failure comes from the Augeas ODBC lens which does not allow spaces in the names of the entries. | |
# Please file a bug at https://github.com/hercules-team/augeas/issues to make sure this gets addressed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
augeas { 'oracle odbc driver config': | |
lens => 'Odbc.lns', | |
incl => '/tmp/odbcinst.ini', | |
changes => [ | |
"set Oracle/Description 'ODBC for Oracle 11.2'", | |
"set Oracle/Driver ${libpath}/${libname}", | |
"set Oracle/FileUsage 1", | |
# Augeas allows spaces in paths; we quote so that Puppet uses the whole quoted bit | |
# as the path | |
"set 'Oracle/Driver Logging' 7", | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment