Hi everyone,
I'm setting in my Puppet the MySQL module with Hiera but when i run the 
node agent i give the error. 

--------------
[root@node1 ~]# puppet agent --test
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: wrong header line 
format
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
--------------

My configuration is the next 

My site.pp

--------------
node 'node1.example.com'  {
        hiera_include('classes')
}
--------------

And my hiera node file (yaml) 

--------------
[root@master puppet]# cat hieradata/nodesdb/node1.example.com.yaml  (only 
have this node)
---
classes: mysql
mysql::server::root_password: 'mypassword'
mysql::server::override_options:
   max_connections: '1024'  
   query_cache_size: '64M'
[root@master puppet]# 
--------------

I try change the value "classes" from classes: mysql to classes: 'mysql' 
but i have the same result.

When i check the value is ok, for example:
--------------
[root@master nodesdb]# hiera mysql::server::override_options 
fqdn=node1.example.com
[{"max_connections"=>"1024"}, {"query_cache_size"=>"64M"}]
--------------

And my syntax
--------------
[root@master nodesdb]# ruby -e "require 'yaml'; 
YAML.parse(File.open('node1.example.com.yaml'))" ### is ok, no error. 
--------------

Thanks.


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/fcadb632-1d75-4c39-84da-34aac14d1d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to