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
--------------
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:
--------------
[{"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.