Puppet provisioner in Vagrant expects site.pp to be US-ASCII, fails with "invalid byte sequence" -
I have a rough box (Ubuntu 14.04 beta) that configures itself using a puppet provision. After "Vagrant up", the shell Provisioner runs, installs the update (including Shell provision is complete without a problem, although the puppet provision fails with: If I immediately I went with Ubu for the first time NTU 13.10, but the installation of environmental variables solved the issue - with 14.04 is not. Has anyone played this before? Thanks for any advice. This is not reading the correct location due to the puppet demon, even if it was first defined by the shell provision Has been done When this puppet daemon runs, it can be reduced by setting The above link also provides a solution. In the problem thread, the workaround is to set the proxy server as env. Variable, but I have modified it to set the By connecting it to the puppet provision of Wagertfile, the language-pack-en ), and sets the locale to
en_US.UTF-8 Is, eg:
export DEBIAN_FRONTEND = non-interactive echo "LC_ALL = en_US.UTF-8" & gt; & Gt; / Etc / environment apt-get update apt-get -y install language-pack-n export LC_ALL = en_US.UTF-8 wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb 2 & gt; And 1 dpkg -i puppetlabs-release-trusty.deb apt-get update apt-get -y upgrade apt-get -y -f to unread puppet hiera ruby-hiera ruby-safe-yaml apt-get -y autoremove apt -get -y install Puppet = 3.4.3-1
Error: Could not parse Environmental output: invalid byte sequence at /tmp/vagrant-puppet-1/manifests/site.pp:1 in US-ASCII
vagrant provision , puppet provision then runs without any issue I suspect that this is not respecting local, I am setting both in
/ etc / environment , and exporting it as an environment variable for good measure (Which was not necessary, this was a troubleshooting step.)
LANG = en_US.UTF-8 , while the current is currently running on the variable variable Passing does not support. This issue has been described here.
LANG in the same way:
Vagrantfile :
config vm.provision: puppet | Puppet | This type of work is almost all around specifying the puppet.factor = {# lang environment variable. #When this issue is correct, the work can be removed https://github.com/mitchellh/vagrant/issues/2270 "hack = hack LANG = en_US.UTF-8 hack" = & gt; "Hack"}
LANG is set correctly, and the puppet is expected to run on the first boot.
Comments
Post a Comment