Hi,

I have a Puppet repository using Hiera as a lightweight ENC rather than the 
more traditional init.pp script in the manifests directory. When using 
Vagrant to test my commits work fine before opening a pull request, I've 
encountered the following:

*Error: Could not parse for environment production: Caught 
Encoding::CompatibilityError: incompatible encoding regexp match 
(ASCII-8BIT regexp with UTF-8 string) at 
/tmp/vagrant-puppet-1/manifests/site.pp:2 on node0*

The file - site.pp - only contains one line...

*vagrant ssh node0 -c 'cat -A /tmp/vagrant-puppet-1/manifests/site.pp'*
*import 'nodes'$*

...and looks fine to me, so I've no idea where it's getting line 2 from. 

The file - site.pp - is encoded with the us-ascii charset:

*vagrant ssh node0 -c 'file --mime /tmp/vagrant-puppet-1/manifests/site.pp'*
*/tmp/vagrant-puppet-1/manifests/site.pp: text/plain; charset=us-ascii*

For completeness, nodes.pp is also encoded in us-ascii, and contains:

*vagrant ssh node0 -c 'cat -A /tmp/vagrant-puppet-1/manifests/nodes.pp'*
*# Use hiera as a lightweight ENC.$*
*node default {$*
*  hiera_include('classes')$*
*}$*

I'm running Ruby 1.9.3 locally, and 1.9.2p290 (2011-07-09 revision 32553) 
[x86_64-linux] on the Vagrant host (Ubuntu 12.04 'Precise Pangolin').

I'm a bit stuck - can anyone help?

Thanks in advance,

Andrew

-- 
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/5a177d38-cb4e-465f-9dd7-9ac9e57c7e16%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to