cookbook 'bashrc_manager', '~> 1.0.2'
bashrc_manager (4) Versions 1.0.2 Follow0
Installs/Configures .bashrc file/s
cookbook 'bashrc_manager', '~> 1.0.2', :supermarket
knife supermarket install bashrc_manager
knife supermarket download bashrc_manager
bashrc_manager cookbook
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 fileuser
- 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.
bundle install
rspec
Author
Author:: Table XI (sysadmins@tablexi.com)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Change Log
v1.0.2 (2017-09-29)
Merged pull requests:
- Release 1.0.2 #6 (phoolish)
- Stove gem cannot use an external version file #5 (phoolish)
- Check for duplicate content and log it #4 (phoolish)
1.0.0 (2017-09-28)
Merged pull requests:
* This Change Log was automatically generated by github_changelog_generator
Collaborator Number Metric
1.0.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.2 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
Foodcritic Metric
1.0.2 passed this metric
No Binaries Metric
1.0.2 passed this metric
Testing File Metric
1.0.2 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.0.2 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
1.0.2 failed this metric
1.0.2 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
Foodcritic Metric
1.0.2 passed this metric
No Binaries Metric
1.0.2 passed this metric
Testing File Metric
1.0.2 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.0.2 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
1.0.2 passed this metric
1.0.2 passed this metric
Testing File Metric
1.0.2 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.0.2 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
1.0.2 failed this metric
1.0.2 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