Skip to content

Commit

Permalink
[dd-fips-proxy] addressing review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Aug 4, 2023
1 parent 2225475 commit 06c8429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
default['datadog']['agent_version'] = nil # nil to install latest
# Agent flavor to install, acceptable values are "datadog-agent", "datadog-iot-agent"
default['datadog']['agent_flavor'] = 'datadog-agent' # "datadog-agent" to install the datadog-agent package
# default['datadog']['fips_proxy_version'] = '0.1.0'
default['datadog']['fips_proxy_version'] = nil
default['datadog']['agent_version'] = nil # nil to install latest
# Datadog FIPS proxy package name:
default['datadog']['fips_proxy_package_name'] = 'datadog-fips-proxy' # "datadog-fips-proxy" to install the datadog-fips-proxy package
Expand Down Expand Up @@ -260,6 +260,12 @@
# Start agent or not
default['datadog']['agent_start'] = true

# Enable the fips-proxy to start at boot.
default['datadog']['fips_proxy_enable'] = true

# Start fips_proxy or not
default['datadog']['fips_proxy_start'] = true

# installation info
default['datadog']['install_info_enabled'] = true

Expand Down
1 change: 1 addition & 0 deletions recipes/dd-fips-proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
mode '0766'
content lazy { ::File.open('/etc/datadog-fips-proxy/datadog-fips-proxy.cfg.example').read }
not_if { ::File.exist?('/etc/datadog-fips-proxy/datadog-fips-proxy.cfg') }
notifies :restart, 'service[datadog-fips-proxy]' if node['datadog']['fips_proxy_start']
action :create
end

Expand Down

0 comments on commit 06c8429

Please sign in to comment.