Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fips flag to boostrap #337

Merged
merged 1 commit into from
Jan 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/chef/knife/bootstrap_windows_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ def self.included(includer)
:description => "Comma separated list of tags to apply to the node",
:proc => lambda { |o| o.split(/[\s,]+/) },
:default => []

option :fips,
:long => "--fips",
:description => "Set openssl to run in fips mode",
:boolean => true
end
end

Expand Down
4 changes: 4 additions & 0 deletions lib/chef/knife/core/windows_bootstrap_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def config_content
client_rb << %Q{trusted_certs_dir "c:/chef/trusted_certs"\n}
end

if @config[:fips]
client_rb << %Q{fips true\n}
end

escape_and_echo(client_rb)
end

Expand Down