- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with fish
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Puppet module for installing, configuring, and managing Fish, "fish is a smart and user-friendly command line shell for OS X, Linux, and the rest of the family."
Finally, a command line shell for the 90s
This module manages the installation of Fish.
If you'd prefer, you can also disable the repo after the agent's been installed, or opt out of repo management altogether.
By default, this module will:
- Set up the package repository
- Install the Fish package
Repositories are maintained seperately:
- Ubuntu: https://launchpad.net/~fish-shell/+archive/ubuntu/release-2
- Debian, Redhat, CentOS, Fedora: https://software.opensuse.org/download.html?project=shells%3Afish%3Arelease%3A2&package=fish
Full docs are avaliable here: https://fishshell.com/docs/current/index.html
This module includes a single class:
include '::fish'
You'll more than likely want to provide the appropriate values for your setup.
To opt out of repo management altogether, you'd specify it like so:
class { '::fish':
manage_repo => false,
}
For more detailed information about parameters, you can read the docs
On Debian family systems, you can get dependancy loops when trying to order to set the root shell:
Error: Failed to apply catalog: Found 1 dependency cycle:
(Exec[fish-add-apt-repository-ppa:fish-shell/release-2] => Class[Fish::Repo::Ubuntu] => Class[Fish::Repo] => Class[Fish::Repo] => Class[Fish::Install] => Package[fish] => Class[Fish::Install] => Class[Fish] => Class[Fish] => User[root] => Exec[fish-add-apt-repository-ppa:fish-shell/release-2])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
This is because there is an auto-requirement for the files created or executables run on the root user existing. So the root user must exist so the apt source file can be created, but the root user also needs to wait for the package to be installed.
This only affects the apt
repos, as yumrepos
use a custom inifile
type, so the file doesn't need to exist for it to edit it.
There's unfortunatly no easy solution, the only way would be to have a custom fact that determines if the /usr/bin/fish
path exists on the system or a fact that determines the package is already installed.
- Arch support is currently not implemented.
If you'd like to other features or anything else, check out the contributing guidelines in CONTRIBUTING.md.