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

RSS

bashrc_manager (4) Versions 1.0.0

Installs/Configures .bashrc file/s

Policyfile
Berkshelf
Knife
cookbook 'bashrc_manager', '= 1.0.0', :supermarket
cookbook 'bashrc_manager', '= 1.0.0'
knife supermarket install bashrc_manager
knife supermarket download bashrc_manager
README
Dependencies
Quality 100%

bashrc_manager cookbook

Circle CI

This cookbook provides a simple bashrc_manager LWRP.

It create multiple files in bashrc.d folder and merge them into bashrc file without loosing any local existing version.

This cookbook was heavily influenced by the bash cookbook.

Usage

Just add bashrc_manager to your cookbook dependency list.

Requirement

  • Chef 12.5
  • Linux Distro (Tested on CentOS, Debian, Amazon, & Ubuntu)

Resource / Provider

  • bashrc_manager : does the init/setup/parse/merge process. This LWRP will create bashrc.d folder if not present.

If an existing bashrc file exists in user home folder, it will be saved in a permanent init file at the very first run and then will be merged each time LWRP is called.

Action

  • add: (default) - add a specified file to bashrc.d folder and merge all files from this folder to given user bashrc file.
  • remove: - remove a specified file from bashrc.d folder.

Attributes

  • filename - name of the file

  • user - user to interact with. Group and home folder will be automaticly resolved from system informations.

  • content - String to be set on the new profile file. It easily works with simple string, multiline string, or strings loaded from a file.

Syntax

bashrc_manager 'profile.addin' do
  user 'jdoe'
  content "PATH=/home/jdoe/my_bin:$PATH"
end

Testing

Includes basic [chefspec](sethvargo/chefspec) support and matchers.

  1. bundle install
  2. rspec

Author

Author:: Table XI (sysadmins@tablexi.com)

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

codenamephp_bash Applicable Versions

Foodcritic Metric
            

1.0.0 passed this metric

License Metric
            

1.0.0 passed this metric

No Binaries Metric
            

1.0.0 passed this metric

Version Tag Metric
            

1.0.0 passed this metric