我在用着PuPHPet https://puphpet.com我的测试环境是基于 Vagrant/Puppet+Hiera 的。
在 config.yml (Hiera 配置文件)中,我想添加我的时区部分
and with command vagrant provision setup it properly.
这可能吗?
您可以安装Vagrant 的时区插件 https://github.com/tmatilai/vagrant-timezone (vagrant plugin install vagrant-timezone
)并配置流浪文件通过以下方式:
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-timezone")
config.timezone.value = "UTC"
end
# ... other stuff
end
代替UTC
你也可以使用:host
与主机同步时区。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)