inspec/test/cookbooks/os_prepare/recipes/os_env.rb
Tim Smith 4b3095dac2 Further modernize the cookbook and remove legacy setup
Remove container setup that comes for free with the dokken containers now
Use the new openssl resource names
Remove all the encoding statements that even rubocop doesn't recommend anymore
Remove some compatibility with centos-5 and ubuntu 15.10

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 21:50:33 -08:00

14 lines
363 B
Ruby

# author: Omar Irizarry
#
# change a few Windows registry keys for testing purposes
if node['platform_family'] == 'windows'
powershell_script 'Write User TEMP' do
code <<-EOH
[System.Environment]::SetEnvironmentVariable('TEMP', 'C:\\TEMPUSER', [System.environmentVariableTarget]::User)
EOH
end
env 'TEMP' do
value 'C:\TEMPSYSTEM'
end
end