木偶在错误的地方寻找hiera.yaml

cre*_*tos 4 puppet vagrant

我希望puppet在/ etc中寻找hiera.yaml,但它正在/ etc/puppet中寻找它.我在puppet.conf中添加一行:

hiera_config = /etc/hiera.yaml
Run Code Online (Sandbox Code Playgroud)

但是在运行脚本时仍然给我hiera.yaml更新警告.

我正在从Vagrant 1.2.2运行脚本.使用puppet 3.2.2

我在vm中运行Centos 6.4.

小智 8

我发现流浪汉中的木偶供应者现在支持hiera_config_path它完全符合预期.

config.vm.provision :puppet do |puppet|
  # path on host machine to hiera.yaml
  puppet.hiera_config_path = '/Users/me/vms/hiera/hiera.yaml'
  # This sets the relative path for hiera data directories
  puppet.working_directory = '/Users/me/vms/hiera'
end
Run Code Online (Sandbox Code Playgroud)

这在Vagrant:Up and Running中有记录,但在我开始调查vagrant源以实现此功能之前我没有找到它.