Skip to content

Commit

Permalink
exclude fogvm from obtaining chrome.repo and velocirpator.repo
Browse files Browse the repository at this point in the history
Differential Revision: D60123698

fbshipit-source-id: af94e2b6141f6f00992ee969d1966fc5d80bb3bb
  • Loading branch information
Brandon Hang authored and facebook-github-bot committed Jul 23, 2024
1 parent f979f7a commit a1bfb06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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? }
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a1bfb06

Please sign in to comment.