Sha256: db4d4ffd9f7794845b7b2f6a402c59b00457c637bfa6ccedf7ed7b7b533da816
Contents?: true
Size: 937 Bytes
Versions: 8
Compression:
Stored size: 937 Bytes
Contents
module Vagrant module Provisioners class IronfanChefClient < Vagrant::Provisioners::ChefClient class Config < Vagrant::Provisioners::ChefClient::Config attr_accessor :upload_client_key end def self.config_class() Config ; end def upload_validation_key super() if config.upload_client_key # env[:ui].info I18n.t("vagrant.provisioners.chef.upload_client_key") host_client_key = File.expand_path(config.upload_client_key) env[:vm].channel.upload(host_client_key, tmp_client_key_path) env[:vm].channel.sudo("mv #{tmp_client_key_path} #{config.client_key_path}") env[:vm].channel.sudo("chown root #{config.client_key_path}") env[:vm].channel.sudo("chmod 600 #{config.client_key_path}") end end def tmp_client_key_path File.join(config.provisioning_path, "client.pem") end end end end
Version data entries
8 entries across 8 versions & 1 rubygems