Skip to content

Commit

Permalink
add oracle 8 gating into chef cookbooks
Browse files Browse the repository at this point in the history
Reviewed By: joshuamiller01

Differential Revision: D45134206

fbshipit-source-id: 5443b82bb178eff0e90e5739fb727e45b3218cd1
John Timon authored and facebook-github-bot committed Apr 24, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8b0ad15 commit 230c9dd
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookbooks/fb_chrony/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
# limitations under the License.
#

if node.centos? || node.redhat? || node.fedora? || node.rocky?
if node.platform_family?('rhel') || node.platform_family?('fedora')
chrony_svc = 'chronyd'
chrony_conf = '/etc/chrony.conf'
chrony_user = 'chrony'
2 changes: 1 addition & 1 deletion cookbooks/fb_helpers/libraries/node_methods.rb
Original file line number Diff line number Diff line change
@@ -917,7 +917,7 @@ def filesystem_data

# returns the version-release of an rpm installed, or nil if not present
def rpm_version(name)
if (self.centos? && !self.centos7?) || self.fedora? || self.redhat8?
if (self.centos? && !self.centos7?) || self.fedora? || self.redhat8? || self.oracle8?
# returns epoch.version
v = Chef::Provider::Package::Dnf::PythonHelper.instance.
package_query(:whatinstalled, name).version

0 comments on commit 230c9dd

Please sign in to comment.