Commit b27cd3c5 authored by Tim Smith's avatar Tim Smith
Browse files

Fix failures on Windows nodes



Properly default the owner of the files to Administrator on Windows and
root anywhere else
Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 305f13b1
......@@ -7,7 +7,7 @@ property :path, String, name_property: true
property :key_length, equal_to: [1024, 2048, 4096, 8192], default: 2048
property :key_pass, String
property :key_cipher, String, default: 'des3', equal_to: OpenSSL::Cipher.ciphers
property :owner, String, default: 'root'
property :owner, String, default: node['platform'] == 'windows' ? 'Adminstrator' : 'root'
property :group, String, default: node['root_group']
property :mode, [Integer, String], default: '0640'
property :force, [true, false], default: false
......
......@@ -4,7 +4,7 @@ property :path, String, name_property: true
property :private_key_path, String
property :private_key_content, String
property :private_key_pass, String
property :owner, String, default: 'root'
property :owner, String, default: node['platform'] == 'windows' ? 'Adminstrator' : 'root'
property :group, String, default: node['root_group']
property :mode, [Integer, String], default: '0640'
......
include OpenSSLCookbook::Helpers
property :path, String, name_property: true
property :owner, String, default: 'root'
property :owner, String, default: node['platform'] == 'windows' ? 'Adminstrator' : 'root'
property :group, String, default: node['root_group']
property :expire, Integer
property :mode, [Integer, String], default: '0644'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment