Skip to content

Commit

Permalink
[fips-proxy] addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Nov 6, 2023
1 parent 06c8429 commit ac751d0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
3 changes: 0 additions & 3 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
# 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'] = 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 All @@ -56,8 +55,6 @@
# retries and retry_delay for package download/install
default['datadog']['agent_package_retries'] = nil
default['datadog']['agent_package_retry_delay'] = nil
default['datadog']['fips_proxy_package_retries'] = nil
default['datadog']['fips_proxy_package_retry_delay'] = nil

# Allow downgrades of the agent (Linux only)
# Note: on apt-based platforms, this will use the `--force-yes` option on the apt-get command. Use with caution.
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'Apache-2.0'
description 'Installs/Configures datadog components'
version '4.20.0'
version '4.18.0'
chef_version '>= 12.7'
source_url 'https://github.com/DataDog/chef-datadog'
issues_url 'https://github.com/DataDog/chef-datadog/issues'
Expand Down
23 changes: 13 additions & 10 deletions recipes/_install-fips-proxy-linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

package_action = node['datadog']['fips_proxy_package_action']

package_retries = node['datadog']['fips_proxy_package_retries']
package_retry_delay = node['datadog']['fips_proxy_package_retry_delay']
package_retries = node['datadog']['agent_package_retries']
package_retry_delay = node['datadog']['agent_package_retry_delay']

# Install the regular package
case node['platform_family']
Expand Down Expand Up @@ -65,12 +65,15 @@
end
end
when 'suse'
zypper_package dd_fips_proxy_package_name do # ~FC009
version dd_fips_proxy_version
retries package_retries unless package_retries.nil?
retry_delay package_retry_delay unless package_retry_delay.nil?
action package_action # default is :install
# allow_downgrade is only suported for zypper_package since Chef Client 13.6
allow_downgrade node['datadog']['fips_proxy_allow_downgrade'] if respond_to?(:allow_downgrade)
end
raise 'SuSE currently unsupported for the datadog FIPS proxy.'

## Uncomment code below once SuSE support is added for FIPS proxy
# zypper_package dd_fips_proxy_package_name do # ~FC009
# version dd_fips_proxy_version
# retries package_retries unless package_retries.nil?
# retry_delay package_retry_delay unless package_retry_delay.nil?
# action package_action # default is :install
# # allow_downgrade is only suported for zypper_package since Chef Client 13.6
# allow_downgrade node['datadog']['fips_proxy_allow_downgrade'] if respond_to?(:allow_downgrade)
# end
end
2 changes: 1 addition & 1 deletion recipes/dd-fips-proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

is_windows = platform_family?('windows')

# Install the agent
# Install the fips-proxy
if is_windows
raise 'Windows currently unsupported for the datadog FIPS proxy.'
else
Expand Down

0 comments on commit ac751d0

Please sign in to comment.