Skip to content

Commit

Permalink
Merge pull request #2755 from nickanderson/ENT-10820/master
Browse files Browse the repository at this point in the history
ENT-10820: Added self upgrade support for Amazon Linux 2
  • Loading branch information
nickanderson authored Oct 31, 2023
2 parents 3a252b7 + 7d93ed1 commit a876cf8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions standalone_self_upgrade.cf.in
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ bundle agent cfengine_software
solaris|solarisx86::
"pkg_name" string => "cfengine-nova";

amzn_2::

"package_dir"
string => "amazon_2_$(pkg_arch)";

(debian|ubuntu).64_bit::

"pkg_arch"
Expand Down Expand Up @@ -523,11 +528,12 @@ bundle common cfengine_package_names
"pkg[SuSE_15_x86_64]" string => "$(pkg[redhat_6_x86_64])";
"pkg[opensuse_leap_15_x86_64]" string => "$(pkg[redhat_6_x86_64])";

# Redhat/Centos/Oracle/Rocky 7 use the same package
# Redhat/Centos/Oracle/Rocky 7/Amazon 2 use the same package
"pkg[redhat_7_x86_64]" string => "$(pkg_name)-$(pkg_version)-$(pkg_release).el7.x86_64.rpm";
"pkg[centos_7_x86_64]" string => "$(pkg[redhat_7_x86_64])";
"pkg[oracle_7_x86_64]" string => "$(pkg[redhat_7_x86_64])";
"pkg[rocky_7_x86_64]" string => "$(pkg[redhat_7_x86_64])";
"pkg[amazon_2_x86_64]" string => "$(pkg[redhat_7_x86_64])";

# Redhat/Centos/Oracle/Rocky 8 use the same package
"pkg[redhat_8_x86_64]" string => "$(pkg_name)-$(pkg_version)-$(pkg_release).el8.x86_64.rpm";
Expand Down Expand Up @@ -621,11 +627,12 @@ bundle agent cfengine_master_software_content
"dir[centos_6_x86_64]" string => "$(dir[redhat_6_x86_64])";
"dir[oracle_6_x86_64]" string => "$(dir[redhat_6_x86_64])";

# Redhat/Centos/Oracle/Rocky 7 use the same package
# Redhat/Centos/Oracle/Rocky 7/Amazon 2 use the same package
"dir[redhat_7_x86_64]" string => "agent_rhel7_x86_64";
"dir[centos_7_x86_64]" string => "$(dir[redhat_7_x86_64])";
"dir[oracle_7_x86_64]" string => "$(dir[redhat_7_x86_64])";
"dir[rocky_7_x86_64]" string => "$(dir[redhat_7_x86_64])";
"dir[amazon_2_x86_64]" string => "$(dir[redhat_7_x86_64])";

# Redhat/Centos/Oracle/Rocky 8 use the same package
"dir[redhat_8_x86_64]" string => "agent_rhel8_x86_64";
Expand Down

0 comments on commit a876cf8

Please sign in to comment.