cookbook 'linux-tweak', '= 0.2.2'
The linux-tweak cookbook has been deprecated
Author provided reason for deprecation:
The linux-tweak cookbook has been deprecated and is no longer being maintained by its authors. Use of the linux-tweak cookbook is no longer recommended.
linux-tweak (15) Versions 0.2.2 Follow0
Performs various tweaks on fresh Linux installs
cookbook 'linux-tweak', '= 0.2.2', :supermarket
knife supermarket install linux-tweak
knife supermarket download linux-tweak
Chef Cookbook - Linux Tweak
This Chef recipe will perform a few tweaks on linux systems, and a few Ubuntu specific tweaks on Ubuntu systems.
Tweaks Performed
*1) Remove landscape packages (Ubuntu only)
*2) Install vim
*3) Add some custom bash settings for all users
**A) Add aliases for ls -lh and ls -lhtr
**B) Add an alias to change rm into rm -i
**C) Change the history so it maintains 5000 entries and have date/time stamps
**D) Export a nice bash PS1
**E) Export vim as the default editor
Requirements
*1) Chef (Tested on Chef 12)
*2) Linux chef-clients (Tested on Ubuntu 12.04, Ubuntu 14.04, Debian 7.6, CentOS 5.10 and CentOS 6.5 but kitchen will let you test anything you want)
*3) The line cookbook from Chef SuperMarket (tested and locked to 0.6.1)
Installation Tips
*1) I personally use Berks to install this into my Chef server, because it's easier.
Limitations
*1) This recipe has been tested with Ubuntu 12.04, Ubuntu 14.04, Debian 7.6, CentOS 5.10 and CentOS 6.5 but you can test it with any other Linux distro using kitchen. The full spec test is there.
**A) Well sort of. I didn't spend the effort to escape the bash PS1 for spec testing so it only tests that the bashrc has a PS1 exported.
Use cases
If you like the shell preferences I set (PS1, aliases, etc...) then you can use this module.
Dependent cookbooks
line = 0.6.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.2.2 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:20
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:27
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:34
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:41
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:48
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:55
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:62
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:69
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/packages.rb:35
0.2.2 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:27
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:34
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:41
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:48
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:55
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:62
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/bashrc.rb:69
FC002: Avoid string interpolation where not required: /tmp/cook/84b2e2333598f9bd5b8f2d9c/linux-tweak/recipes/packages.rb:35