Skip to content

Instantly share code, notes, and snippets.

@lutter
Created June 7, 2016 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lutter/e22e87574481a8efead3c104adc85e7b to your computer and use it in GitHub Desktop.
Save lutter/e22e87574481a8efead3c104adc85e7b to your computer and use it in GitHub Desktop.
Puppet augeas and ODBC inst
> 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
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