Skip to content

Commit

Permalink
omnibus: reorder depencencies (#31802)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette authored Dec 6, 2024
1 parent 35675c3 commit 4daa586
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 46 deletions.
29 changes: 8 additions & 21 deletions omnibus/config/projects/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,17 @@
# ------------------------------------

if do_build
# Include traps db file in snmp.d/traps_db/
dependency 'snmp-traps'

# Datadog agent
dependency 'datadog-agent'

# This depends on the agent and must be added after it
if ENV['WINDOWS_DDPROCMON_DRIVER'] and not ENV['WINDOWS_DDPROCMON_DRIVER'].empty?
dependency 'datadog-security-agent-policies'
end

# System-probe
if sysprobe_enabled?
dependency 'system-probe'
Expand All @@ -237,27 +245,6 @@

if linux_target?
dependency 'datadog-security-agent-policies'
if fips_mode?
dependency 'openssl-fips-provider'
end
end

# Include traps db file in snmp.d/traps_db/
dependency 'snmp-traps'

# Additional software
if windows_target?
if ENV['WINDOWS_DDNPM_DRIVER'] and not ENV['WINDOWS_DDNPM_DRIVER'].empty?
dependency 'datadog-windows-filter-driver'
end
if ENV['WINDOWS_APMINJECT_MODULE'] and not ENV['WINDOWS_APMINJECT_MODULE'].empty?
dependency 'datadog-windows-apminject'
end
if ENV['WINDOWS_DDPROCMON_DRIVER'] and not ENV['WINDOWS_DDPROCMON_DRIVER'].empty?
dependency 'datadog-windows-procmon-driver'
## this is a duplicate of the above dependency in linux
dependency 'datadog-security-agent-policies'
end
end

# this dependency puts few files out of the omnibus install dir and move them
Expand Down
22 changes: 0 additions & 22 deletions omnibus/config/software/agent-dependencies.rb

This file was deleted.

38 changes: 37 additions & 1 deletion omnibus/config/software/datadog-agent-dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,47 @@

description "Enforce building dependencies as soon as possible so they can be cached"

# Linux-specific dependencies
if linux_target?
dependency 'procps-ng'
dependency 'curl'
if fips_mode?
dependency 'openssl-fips-provider'
end
end

# Bundled cacerts file (is this a good idea?)
dependency 'cacerts'

# External agents
dependency 'jmxfetch'

if linux_target?
dependency 'sds'
end

# version manifest file
dependency 'version-manifest'

# Used for memory profiling with the `status py` agent subcommand
dependency 'pympler'

dependency 'datadog-agent-integrations-py3-dependencies'

dependency "systemd" if linux_target?

dependency 'libpcap' if linux_target? and !heroku_target? # system-probe dependency
dependency 'libpcap' if linux_target? and !heroku_target? # system-probe dependency

# Additional software
if windows_target?
if ENV['WINDOWS_DDNPM_DRIVER'] and not ENV['WINDOWS_DDNPM_DRIVER'].empty?
dependency 'datadog-windows-filter-driver'
end
if ENV['WINDOWS_APMINJECT_MODULE'] and not ENV['WINDOWS_APMINJECT_MODULE'].empty?
dependency 'datadog-windows-apminject'
end
if ENV['WINDOWS_DDPROCMON_DRIVER'] and not ENV['WINDOWS_DDPROCMON_DRIVER'].empty?
dependency 'datadog-windows-procmon-driver'
end
end

1 change: 0 additions & 1 deletion omnibus/config/software/datadog-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# especially at higher thread counts.
dependency "libjemalloc" if linux_target?

dependency 'agent-dependencies'
dependency 'datadog-agent-dependencies'

source path: '..'
Expand Down
1 change: 0 additions & 1 deletion omnibus/config/software/snmp-traps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# Needs the configuration folder as created in datadog-agent
dependency 'datadog-agent'
always_build true # For cache related purposes, it comes after datadog-agent

source :url => "https://s3.amazonaws.com/dd-agent-omnibus/snmp_traps_db/dd_traps_db-#{version}.json.gz",
:sha256 => "04fb9d43754c2656edf35f08fbad11ba8dc20d52654962933f3dd8f4d463b42c",
Expand Down

0 comments on commit 4daa586

Please sign in to comment.