From a1bfb060cda4e58fbd132a3b9bc3203d3a468f79 Mon Sep 17 00:00:00 2001 From: Brandon Hang Date: Tue, 23 Jul 2024 16:53:37 -0700 Subject: [PATCH] exclude fogvm from obtaining chrome.repo and velocirpator.repo Differential Revision: D60123698 fbshipit-source-id: af94e2b6141f6f00992ee969d1966fc5d80bb3bb --- itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb b/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb index bd2ed6dc..0eccf436 100755 --- a/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb +++ b/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb @@ -30,6 +30,7 @@ def install_repos return unless node.linux? return unless node['cpe_chrome']['manage_repo'] + return if node.fogvm? yum_repository 'google-chrome' do only_if { node.fedora? || node.centos? } @@ -221,14 +222,14 @@ def manage_chrome_macos(mprefs, prefs) else directory '/Library/Google' do mode '0755' - owner 'root' + owner node.root_user group 'wheel' action :create end # Create the Master Preferences file file master_path do mode '0644' - owner 'root' + owner node.root_user group 'wheel' action :create content Chef::JSONCompat.to_json_pretty(mprefs)