Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 346c0bd

Browse files
authored
Oracle Linux Support for Update Management (#796)
* Update patch_management_lib.rb Workaround for Update Management support for Oracle Linux. setting os short name as "Oracle" directly till it gets fixed at /etc/opt/microsoft/scx/conf/scx-release * Update patch_management_lib.rb fixed indentation * Update patch_management_lib.rb Workaround to fix os short name for Oracle Linux as "Oracle" till /etc/opt/microsoft/scx/conf/scx-release has proper OSShortName field. * Update patch_management_lib.rb shortName for Oracle. indentation fix * Update patch_management_lib.rb fixing indentation * Update patch_management_lib.rb * nxOMSPlugin Version Change Changing Version from 3.56 to 3.57 * Update patch_management_lib.rb Workaround for Update Management support for Oracle Linux. setting os short name as "Oracle" directly till it gets fixed at /etc/opt/microsoft/scx/conf/scx-release * Update patch_management_lib.rb fixed indentation * Update patch_management_lib.rb Workaround to fix os short name for Oracle Linux as "Oracle" till /etc/opt/microsoft/scx/conf/scx-release has proper OSShortName field. * Update patch_management_lib.rb shortName for Oracle. indentation fix * Update patch_management_lib.rb fixing indentation * Update patch_management_lib.rb * nxOMSPlugin Version Change Changing Version from 3.56 to 3.57 * Change in nxOMSPlugin Version * indentation fix * indetantion2 * Update patch_management_lib.rb * reverting version to 3.58
1 parent 4221c55 commit 346c0bd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Providers/Modules/Plugins/PatchManagement/plugin/patch_management_lib.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ def getHostOSDetails()
5151
def getOSShortName(os_short_name = nil, os_version=nil)
5252
version = ""
5353
hostOSDetailsMap = getHostOSDetails()
54+
#os short name is not proper for oracle linux at /etc/opt/microsoft/scx/conf/scx-release. this is to return proper short name till scx fixes the issue.
55+
if hostOSDetailsMap.key?("OSFullName") && hostOSDetailsMap.key?("OSShortName")
56+
osFullName = hostOSDetailsMap["OSFullName"]
57+
osShortName = hostOSDetailsMap["OSShortName"]
58+
if osFullName.downcase.include?("oracle") && ! osShortName.downcase.include?("oracle")
59+
os_short_name = "Oracle"
60+
end
61+
end
5462

5563
# match string of the form (1 or more non . chars)- followed by a . - (1 or more non . chars) - followed by anything
5664
if hostOSDetailsMap.key?("OSShortName")
@@ -104,6 +112,8 @@ def getOSShortName(os_short_name = nil, os_version=nil)
104112
else
105113
version = @default_version
106114
end
115+
when "Oracle"
116+
version = "6.0"
107117
when "SUSE"
108118
if @os_major_version == "11"
109119
version = "11.0"

installbuilder/datafiles/Base_DSC.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ SHLIB_EXT: 'so'
9898
/opt/microsoft/omsconfig/module_packages/nxOMSContainers_1.0.zip; release/nxOMSContainers_1.0.zip; 755; ${{RUN_AS_USER}}; root
9999
/opt/microsoft/omsconfig/module_packages/nxOMSCustomLog_1.0.zip; release/nxOMSCustomLog_1.0.zip; 755; ${{RUN_AS_USER}}; root
100100
/opt/microsoft/omsconfig/module_packages/nxOMSGenerateInventoryMof_1.5.zip; release/nxOMSGenerateInventoryMof_1.5.zip; 755; ${{RUN_AS_USER}}; root
101-
/opt/microsoft/omsconfig/module_packages/nxOMSPlugin_3.57.zip; release/nxOMSPlugin_3.58.zip; 755; ${{RUN_AS_USER}}; root
101+
/opt/microsoft/omsconfig/module_packages/nxOMSPlugin_3.58.zip; release/nxOMSPlugin_3.58.zip; 755; ${{RUN_AS_USER}}; root
102102
/opt/microsoft/omsconfig/module_packages/nxOMSWLI_1.46.zip; release/nxOMSWLI_1.46.zip; 755; ${{RUN_AS_USER}}; root
103103
#endif
104104

0 commit comments

Comments
 (0)