All Projects → dhoer → chef-chrome

dhoer / chef-chrome

Licence: MIT license
Chef cookbook to install Google Chrome browser

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to chef-chrome

XTR-Toolbox
🛠 Versatile tool to optimize Windows
Stars: ✭ 138 (+762.5%)
Mutual labels:  google-chrome
memcached
Development repository for the memcached cookbook
Stars: ✭ 50 (+212.5%)
Mutual labels:  chef
firewall
Development repository for the firewall cookbook
Stars: ✭ 97 (+506.25%)
Mutual labels:  chef
UOC-notifier-chrome
UOC notifier for Google Chrome
Stars: ✭ 26 (+62.5%)
Mutual labels:  google-chrome
chef
Chef configuration management repo for configuring & maintaining the OpenStreetMap servers.
Stars: ✭ 94 (+487.5%)
Mutual labels:  chef
chef
Chef-Server API client in golang
Stars: ✭ 78 (+387.5%)
Mutual labels:  chef
github
Development repository for the github cookbook
Stars: ✭ 22 (+37.5%)
Mutual labels:  chef
kafka
Development repository for the kafka cookbook
Stars: ✭ 87 (+443.75%)
Mutual labels:  chef
Colorblinding
An extension for Google Chrome (and Chromium) that simulates the website as a color vision impaired person would see.
Stars: ✭ 25 (+56.25%)
Mutual labels:  google-chrome
challenges-chef
📖 Challenges Your Chef Skills By Solving Real Questions.
Stars: ✭ 27 (+68.75%)
Mutual labels:  chef
drbd
Development repository for the drbd cookbook
Stars: ✭ 19 (+18.75%)
Mutual labels:  chef
selinux
Development repository for the selinux cookbook
Stars: ✭ 57 (+256.25%)
Mutual labels:  chef
chef-postgres-hardening
This chef cookbook provides security configuration for PostgreSQL.
Stars: ✭ 26 (+62.5%)
Mutual labels:  chef
sssd ldap
Development repository for the sssd_ldap cookbook
Stars: ✭ 17 (+6.25%)
Mutual labels:  chef
COVID19-FeedbackApplication
A simple application is developed to get feedback from a user and analyzing the text to predict the sentiment.
Stars: ✭ 13 (-18.75%)
Mutual labels:  chef
freebsd
Development repository for the freebsd cookbook
Stars: ✭ 27 (+68.75%)
Mutual labels:  chef
standalone-configuration-management
Basic examples of how to use each of chef, puppet, salt and ansible as standalone configuration management systems.
Stars: ✭ 14 (-12.5%)
Mutual labels:  chef
transmission
Development repository for the transmission cookbook
Stars: ✭ 14 (-12.5%)
Mutual labels:  chef
nicosapo
Google Chrome Extensnion for live.nicovideo.jp
Stars: ✭ 23 (+43.75%)
Mutual labels:  google-chrome
confluence
Development repository for the confluence cookbook
Stars: ✭ 42 (+162.5%)
Mutual labels:  chef

Chrome Cookbook

Cookbook Version linux osx win

This cookbook installs Google Chrome browser (https://www.google.com/chrome/) at compile time, provides chrome_version library method to retrieve Chrome version installed, and provides master_preferences resource to set user preferences.

Requirements

Chef 12.14+

Platforms

  • CentOS 7, Red Hat 7, Fedora
  • Debian, Ubuntu
  • Mac OS X
  • Windows

Cookbooks

  • dmg - used by Mac OS X platform

Usage

Include the default recipe on a node's runlist to ensure that Chrome is installed.

A library method chrome_version is provided to retrieve the Chrome version installed:

v = chrome_version

Tip: use allow_any_instance_of to stub chrome_version method when testing with rspec:

allow_any_instance_of(Chef::Recipe).to receive(:chrome_version).and_return('50.0.0.0')

Attributes

  • node['chrome']['track'] - For Linux only. Install stable, beta or unstable version. Default is stable.
  • node['chrome']['32bit_only'] - For windows only. Install 32-bit browser on 64-bit machines. Default is false.

See attributes/default.rb for complete list of attributes.

master_preferences

Manage a template resource that configures master_preferences. More info...

Resource Attributes

  • name - The name of the preference.
  • cookbook - Optional. Cookbook where the source template is. If this is not defined, Chef will use the named template in the cookbook where the definition is used.
  • template - Default master_preferences.json.erb, source template file.
  • parameters - Additional parameters, see Examples.

Examples

The following example would look for a template named master_preferences.json.erb in your cookbook:

chrome 'custom_preferences' do
  parameters(
    homepage: 'https://mycompany.com/'
    import_bookmarks_from_file: 'c:\path\to\bookmarks.html'
  )
  action :master_preferences
end

The Chrome cookbook comes with a master_preferences.json.erb template as an example. The following parameter is used in the template:

  • homepage - Sets the homepage URL.

To use the default template preferences, set cookbook to chrome, for example:

chrome 'set_user_preferences' do
  cookbook 'chrome'
  parameters(
    homepage: 'https://www.getchef.com'
  )
  action :master_preferences
end

The parameter specified will be used as:

  • @parameters[:homepage]

In the template, when you write your own, the @ is significant.

ChefSpec Matchers

This cookbook includes custom ChefSpec matchers you can use to test your own cookbooks.

Example Matcher Usage

expect(chef_run).to master_preferences_chrome('name').with(
  parameters: {
    homepage: 'https://www.getchef.com'
  }
)

Cookbook Matchers

  • master_preferences_chrome(name)

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].