Hello,

I am testing the puppet forge module hiera-mysql. It works well but if I 
search for value that includes dots than parameter is truncated. See an 
example below.

Here you can see my hiera.yaml config.

hiera.yaml

---
:backends:
  - mysql

:mysql:
   :host: dbserver
   :user: dbusr
   :pass: password
   :database: db
   :port: 3306
   :query: SELECT ADSITE FROM puppetdb.ALL_SERVERS_ADSITE where 
servername='%{key}'
:logger: console


here is hiera lookup.

root@ubuntu:/etc/puppetlabs/code# hiera* czserver1.cl.domain.com* --debug
DEBUG: 2015-11-19 16:42:17 +0100: mysql_backend initialized
DEBUG: 2015-11-19 16:42:17 +0100: JDBC mode false
DEBUG: 2015-11-19 16:42:17 +0100: Using Hiera 1.x backend API to access 
instance of class Hiera::Backend::Mysql_backend. Lookup recursion will not 
be detected
DEBUG: 2015-11-19 16:42:17 +0100: mysql_backend invoked lookup
DEBUG: 2015-11-19 16:42:17 +0100: resolution type is priority
DEBUG: 2015-11-19 16:42:17 +0100: Executing SQL Query: SELECT ADSITE FROM 
puppetdb.ALL_SERVERS_ADSITE where servername='*czserver1*'
DEBUG: 2015-11-19 16:42:18 +0100: Mysql Query returned 0 rows
nil


Thanks

Karel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f03e2193-db4a-42f0-aadf-3608d0606867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to