Puppet3.6環境のpuppet.confでmodulepathがdeprecatedとなっている件
puppet-masterのversion3.6.2をセットアップしていて、
Jul 29 14:47:20 localhost puppet-master[2042]: Setting modulepath is deprecated in puppet.conf. See http://links.puppetlabs.com/env-settings-deprecations
と怒られたので
http://links.puppetlabs.com/env-settings-deprecations
にアクセスするも
Access not possible
となりなんの情報も得られず。
Puppet3.6のドキュメントを読むと
http://docs.puppetlabs.com/puppet/latest/reference/config_file_main.html
に普通にmodulepathが設定されていたのでなんだこれと思っていた。
よく調べてみるとここにあった。
Config File Environments Are Deprecated
If your puppet.conf file:
Contains any environment config blocks
Sets global values for the manifest, modulepath, or config_version settings…then the puppet master will log deprecation warnings. (Interpolating the $environment variable won’t log warnings, since it’s benign without the global settings and is useful in environment.conf files.)
In a future version of Puppet (probably Puppet 4), directory environments will always be enabled, and the default production environment will take the place of the global manifest/modulepath/config_version settings.
When you have time, you should read up on directory environments and start using them.
http://docs.puppetlabs.com/puppet/latest/reference/environments_classic.html
Config File Environments(従来の設定方法)をやめてDirectory Environmentsに移れということらしい。
Directory Environmentsの説明はこちら。
http://docs.puppetlabs.com/puppet/latest/reference/environments.html