summaryrefslogtreecommitdiff
path: root/lib/chef/dist.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/dist.rb')
-rw-r--r--lib/chef/dist.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/chef/dist.rb b/lib/chef/dist.rb
index baf43c9127..f5f63103fa 100644
--- a/lib/chef/dist.rb
+++ b/lib/chef/dist.rb
@@ -1,20 +1,27 @@
class Chef
class Dist
+ require "chef-config/dist"
+ require "chef-config/config"
+
# This class is not fully implemented, depending on it is not recommended!
# When referencing a product directly, like Chef (Now Chef Infra)
PRODUCT = "Chef Infra Client".freeze
+ # A short designation for the product, used in Windows event logs
+ # and some nomenclature.
+ SHORT = ChefConfig::Dist::SHORT.freeze
+
# The name of the server product
SERVER_PRODUCT = "Chef Infra Server".freeze
# The client's alias (chef-client)
- CLIENT = "chef-client".freeze
+ CLIENT = ChefConfig::Dist::CLIENT.freeze
# name of the automate product
AUTOMATE = "Chef Automate".freeze
# The chef executable, as in `chef gem install` or `chef generate cookbook`
- EXEC = "chef".freeze
+ EXEC = ChefConfig::Dist::EXEC.freeze
# product website address
WEBSITE = "https://chef.io".freeze
@@ -34,15 +41,18 @@ class Chef
# The chef-shell executable
SHELL = "chef-shell".freeze
+ # The chef-apply executable
+ APPLY = "chef-apply".freeze
+
# Configuration related constants
# The chef-shell configuration file
SHELL_CONF = "chef_shell.rb".freeze
# The configuration directory
- CONF_DIR = "/etc/#{Chef::Dist::EXEC}".freeze
+ CONF_DIR = ChefConfig::Config.etc_chef_dir.freeze
# The user's configuration directory
- USER_CONF_DIR = ".chef".freeze
+ USER_CONF_DIR = ChefConfig::Dist::USER_CONF_DIR.freeze
# The server's configuration directory
SERVER_CONF_DIR = "/etc/chef-server".freeze