dhoer / chef-chrome Goto Github PK
View Code? Open in Web Editor NEWChef cookbook to install Google Chrome browser
Home Page: https://www.google.com/chrome/
License: MIT License
Chef cookbook to install Google Chrome browser
Home Page: https://www.google.com/chrome/
License: MIT License
When running the default recipe on Ubuntu 14.04, I'm getting this error:
STDERR: E: There are problems and -y was used without --force-yes
---- End output of apt-get -q -y install google-chrome-stable=41.0.2272.101-1 ----
Ran apt-get -q -y install google-chrome-stable=41.0.2272.101-1 returned 100
Hi
i am using chef < 12 and got the following error
NoMethodError: undefined method source_url' for #<Chef::Cookbook::Metadata:0x16c9f80> C:/monsoon/repos/it_backend_services/litr_selenium_cp_rm_t/chef/cookbooks/chrome/metadata.rb:7:in
from_file'
thank and regards Zacky
Method chrome_version includes Google Chrome
string (e.g. Google Chrome 42.0.2311.152
) on Mac OS X platforms. It should only return 42.0.2311.152
.
The underlying cause is the same as #16 but reporting it now because it is no longer just a warning that can be ignored. This is what happens:
Property params
of resource chrome
overwrites an existing method.
/var/cache/chef/cookbooks/chrome/resources/default.rb:8:in `class_from_file'
/var/cache/chef/cookbooks/chrome/resources/default.rb:
1: actions :master_preferences
2: default_action :master_preferences
3:
4: attribute :name, kind_of: String, name_attribute: true
5: attribute :template, kind_of: String, default: 'master_preferences.json.erb'
6: attribute :local, kind_of: [TrueClass, FalseClass], default: false
7: attribute :cookbook, kind_of: String, default: nil
8>> attribute :params, kind_of: [Array, Hash], default: []
9:
0mSTDERR: Error: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: xdg-utils
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libgtk-3.so.0()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libappindicator3.so.1()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libatk-bridge-2.0.so.0()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libatk-1.0.so.0()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: liberation-fonts
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libatspi.so.0()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libgdk-3.so.0()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libXss.so.1()(64bit)
[0mError: Package: google-chrome-stable-77.0.3865.90-1.x86_64 (google-chrome)
[0m Requires: libgdk_pixbuf-2.0.so.0()(64bit)
The following exception is thrown on windows:
================================================================================
Error executing action `install` on resource 'windows_package[Google Chrome]'
================================================================================
Chef::Exceptions::InvalidRemoteFileURI
--------------------------------------
"https://dl-ssl.google.com/tag/s/appguid={00000000-0000-0000-0000-000000000000}&iid={00000000-0000-0000-0000-000000000000}&lang=en&browser=4&usagestats=0&appname=Google Chrome&needsadmin=false/dl/chrome/install/googlechromestandaloneenterprise64.msi" is not a valid `source` parameter for remote_file. `source` must be an absolute URI or an array of URIs.
There is an issue with google-chrome-stable=41.0.2272.101-1. Installing Chrome on Ubuntu randomly fails with the following error:
WARNING: The following packages cannot be authenticated!
google-chrome-stable
STDERR: E: There are problems and -y was used without --force-yes
---- End output of apt-get -q -y install google-chrome-stable=41.0.2272.101-1
---- Ran apt-get -q -y install google-chrome-stable=41.0.2272.101-1 returned 100
This issue has been reported to Google.
FYI, Running the following command does NOT help:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
The Master Preferences Path on Chrome 85 for Windows has changed to C:\Program Files\Google\Chrome\Application\master_preferences
As a result: Trying to call chrome_version
for Chrome 85 on Windows will return nil.
Source, the release notes:
Chrome 64-bit on Windows will be installed in "Program Files" instead of "Program Files (x86)"
New installations of 64-bit Chrome will be installed in "%ProgramFiles%" on Windows instead of
"%ProgramFiles(x86)%". Existing installations won't be impacted.
As a result, default['chrome']['master_preferences_windows']
will need an update to C:\Program Files\Google\Chrome\Application\master_preferences
, but probably also be backwards compatible
https://github.com/dhoer/chef-chrome/blob/master/attributes/default.rb#L4
Temporary workaround:
In your cookbook's attributes/default.rb (or whatever you've named it named), just override it:
default['chrome']['master_preferences_windows'] = 'C:\Program Files\Google\Chrome\Application\master_preferences'
I bumped to chef-solo version 12.19.36 and this deprecation warning appeared.
Deprecated features used!
Property params
of resource chrome
overwrites an existing method. Please use a different property name. This will raise an exception in Chef 13. at 1 location:
- /var/chef/cache/cookbooks/chrome/resources/default.rb:8:in `class_from_file'
See https://docs.chef.io/deprecations_property_name_collision.html for further details.
Error executing action `install` on resource 'yum_package[google-chrome-stable]'
Chef::Exceptions::Package: No candidate version available for google-chrome-stable
centos7.4, virtualbox
centos7, aws ec2
why??
On older versions of OSX, e.g., 10.9, the words 'Google Chrome' are missing from version output causing the regex to fail to parse output.
Opened issue on Chef repo: chef/chef#2575
#<URI::InvalidURIError: windows_package[Google Chrome] (chrome::msi line 2) had an error: URI::InvalidURIError: bad URI(is not URI?): https://dl-ssl.google.com/tag/s/appguid={00000000-0000-0000-0000-000000000000}&iid={00000000-0000-0000-0000-000000000000}&lang=en&browser=4&usagestats=0&appname=Google Chrome&needsadmin=false/dl/chrome/install/googlechromestandaloneenterprise64.msi> had an error:
windows_package[Google Chrome] (chrome::msi line 2) had an error: URI::InvalidURIError: bad URI(is not URI?): https://dl-ssl.google.com/tag/s/appguid={00000000-0000-0000-0000-000000000000}&iid={00000000-0000-0000-0000-000000000000}&lang=en&browser=4&usagestats=0&appname=Google Chrome&needsadmin=false/dl/chrome/install/googlechromestandaloneenterprise64.msi
It would be nice to be able to specify that Chrome should upgrade
vs just install
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.