Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The codenamephp_gnome cookbook has been deprecated

Author provided reason for deprecation:

The codenamephp_gnome cookbook has been deprecated and is no longer being maintained by its authors. Use of the codenamephp_gnome cookbook is no longer recommended.

RSS

codenamephp_gnome (2) Versions 1.1.0

Cookbook to install and manage the GNOME gui

Policyfile
Berkshelf
Knife
cookbook 'codenamephp_gnome', '~> 1.1.0', :supermarket
cookbook 'codenamephp_gnome', '~> 1.1.0'
knife supermarket install codenamephp_gnome
knife supermarket download codenamephp_gnome
README
Dependencies
Quality 33%

GNOME

CI

Cookbook to install the GNOME gui and manage settings and keyboard shortcuts.

Requirements

Supported Platforms

  • Debian Stretch

Chef

  • Chef 15.3+

Usage

Add the cookbook to your Berksfile or Metadata of your (wrapper) cookbook and then use the resources as needed.

Resources

Package

The codenamephp_gnome_package resource installs or uninstalls the gnome gui.

Actions

  • :install: Installs the gui using apt
  • :uninstall: Uninstalls the gui using apt

Properties

  • package_name: The name of the apt package to use for install, defaults to 'gnome-core' for a "minimal" install

Examples

# Minmal parameters
codenamephp_gnome_package 'install gnome gui'

# Custom package name
codenamephp_gnome_package 'install gnome gui' do
  package_name 'gnome'
end

# Uninstall
codenamephp_gnome_package 'install gnome gui' do
  action :uninstall
end

Gnome Gsettings

Resource to set gsettings configurations. There are constants in CodenamePHP::Gnome::GSettings that can be used for known schemas and keys

Actions

  • :set: Sets the configuration

Properties

  • schema: The schema the configuration is located in, e.g. 'org.gnome.desktop.session'
  • key: The key within the schema to be set, e.g. 'idle-delay'
  • value: The value to set, e.g. '0'
  • users: The users to set the settings for as array of usernames

Examples

# Minimal parameters
codenamephp_gnome_gsettings 'Set display idle delay' do
  schema CodenamePHP::Gnome::GSettings::SCHEMA_DESKTOP_SESSION
  key CodenamePHP::Gnome::GSettings::KEY_DESKTOP_SESSION_IDLE_DELAY
  value '0'
  users ['test']
end

Gnome Keyboard Shortcuts

The codenamephp_gnome_keyboard_shortcuts resource adds custom shortcuts for the gnome desktop. This is done by getting the custom shortcuts using gsettings
and then adding the new shortcut and adds back all shortcuts. If a shortcut with the same name already exists it is replaced by the new one

Actions

  • set: Sets a new or replaces an existing shortcut

Properties

  • shortcut_name: The name of the shortcut to set, defaults to the resource name
  • command: The command the shortcut should execute
  • binding: The keys the shortcut consists of, also see the CodenamePHP::Gnome::GSettings::Keys::* constants
  • users: The users to set the shortcuts for as array of usernames

Examples

codenamephp_gnome_keyboard_shortcut 'Terminal' do
  command 'gnome-terminal --maximize'
  binding "#{CodenamePHP::Gnome::GSettings::Keys::SUPER}#{CodenamePHP::Gnome::GSettings::Keys::ALT}t"
  users ['test']
end

Collaborator Number Metric
            

1.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Cookstyle Metric
            

1.1.0 passed this metric

No Binaries Metric
            

1.1.0 passed this metric

Testing File Metric
            

1.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number