lib/kitchen/provisioner/chef_base.rb
# Generates a Hash with default values for a solo.rb or client.rb Chef
# configuration file.
#
# @return [Hash] a configuration hash
# @api private
Generates a Hash with default values for a solo.rb or client.rb Chef
configuration file.
Generates a Hash with default values for a solo . rb or client . rb Chef configuration file .
def default_config_rb 
        root = config[:root_path].gsub("$env:TEMP", "\#{ENV['TEMP']\}")
        {
          :node_name        => instance.name,
          :checksum_path    => remote_path_join(root, "checksums"),
          :file_cache_path  => remote_path_join(root, "cache"),
          :file_backup_path => remote_path_join(root, "backup"),
          :cookbook_path    => [
            remote_path_join(root, "cookbooks"),
            remote_path_join(root, "site-cookbooks")
          ],
          :data_bag_path    => remote_path_join(root, "data_bags"),
          :environment_path => remote_path_join(root, "environments"),
          :node_path        => remote_path_join(root, "nodes"),
          :role_path        => remote_path_join(root, "roles"),
          :client_path      => remote_path_join(root, "clients"),
          :user_path        => remote_path_join(root, "users"),
          :validation_key   => remote_path_join(root, "validation.pem"),
          :client_key       => remote_path_join(root, "client.pem"),
          :chef_server_url  => "http://127.0.0.1:8889",
          :encrypted_data_bag_secret => remote_path_join(
            root, "encrypted_data_bag_secret"
          )
        }
      end
def default_config_rb root = config [ :root_path ] . gsub ( "$env:TEMP" , "\#{ENV['TEMP']\}" ) { :node_name => instance . name , :checksum_path => remote_path_join ( root , "checksums" ) , :file_cache_path => remote_path_join ( root , "cache" ) , :file_backup_path => remote_path_join ( root , "backup" ) , :cookbook_path => [ remote_path_join ( root , "cookbooks" ) , remote_path_join ( root , "site-cookbooks" ) ] , :data_bag_path => remote_path_join ( root , "data_bags" ) , :environment_path => remote_path_join ( root , "environments" ) , :node_path => remote_path_join ( root , "nodes" ) , :role_path => remote_path_join ( root , "roles" ) , :client_path => remote_path_join ( root , "clients" ) , :user_path => remote_path_join ( root , "users" ) , :validation_key => remote_path_join ( root , "validation.pem" ) , :client_key => remote_path_join ( root , "client.pem" ) , :chef_server_url => "http://127.0.0.1:8889" , :encrypted_data_bag_secret => remote_path_join ( root , "encrypted_data_bag_secret" ) } end
Generates a Hash with default values for a solo.rb or client.rb Chef
configuration file.
Generates a Hash with default values for a solo . rb or client . rb Chef configuration file .
# rubocop:disable Metrics/MethodLength
a configuration hash
a configuration hash
Hash
api
None