sshpass-installed

Example:

# Install the 'sshpass' package using the system package manager.
- sshpass-installed

Description

Install the 'sshpass' utility.

'sshpass' is a small application that helps using ssh within scripts. There are some security implications to using it, so make sure to check out the webpage.

If this is used on CentOS, the 'epel-release' repository package will also be installed and enabled.

Variables

Name Type Default Description

pkg_mgr

string auto

the package manager to use

Examples

Example 1

Install the 'sshpass' package using the system package manager.

Code
- sshpass-installed

Example 2

Install the 'sshpass' package using the 'nix' package manager.

Code
- sshpass-installed:
    pkg_mgr: nix

Code

doc:
  short_help: Install the sshpass package.
  help: |
    Install the '[sshpass](https://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/)' utility.

    'sshpass' is a small application that helps using ssh within scripts. There are some security implications to using it,
    so make sure to check out the webpage.

    If this is used on CentOS, the 'epel-release' repository package will also be installed and enabled.

  furter_reading:
    sshpass homepage: https://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/
  examples:
  - title: Install the 'sshpass' package using the system package manager.
  - title: Install the 'sshpass' package using the 'nix' package manager.
    vars:
      pkg_mgr: nix

args:
  pkg_mgr:
    doc:
      short_help: the package manager to use
    type: string
    default: auto
    required: false
    cli:
      metavar: PKG-MGR

meta:
  tags:
  - sshpass
  - install
  - pkg

frecklets:
- packages-installed:
    pkg_mgr: '{{:: pkg_mgr ::}}'
    packages:
    - name: epel-release
      pkgs:
        centos:
        - epel-release
        default: ignore
- packages-installed:
    become: "{{:: pkg_mgr | false_if_equal('conda') ::}}"
    packages:
    - name: sshpass
      pkg_mgr: '{{:: pkg_mgr ::}}'
frecklecute sshpass-installed --help

Usage: frecklecute sshpass-installed [OPTIONS]

  Install the '[sshpass](https://www.cyberciti.biz/faq/noninteractive-shell-
  script-ssh-password-provider/)' utility.

  'sshpass' is a small application that helps using ssh within scripts.
  There are some security implications to using it, so make sure to check
  out the webpage.

  If this is used on CentOS, the 'epel-release' repository package will also
  be installed and enabled.

Options:
  --pkg-mgr PKG-MGR  the package manager to use
  --help             Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.sshpass_installed.SshpassInstalled
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class SshpassInstalled(AutoPycklet):
    """Install the '[sshpass](https://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/)' utility.

     'sshpass' is a small application that helps using ssh within scripts. There are some security implications to using it,
     so make sure to check out the webpage.

     If this is used on CentOS, the 'epel-release' repository package will also be installed and enabled.

       Args:
         pkg_mgr: the package manager to use

    """

    FRECKLET_ID = "sshpass-installed"

    pkg_mgr: str = None


    def __post_init__(self):
        super(SshpassInstalled, self).__init__(var_names=["pkg_mgr"])


frecklet_class = SshpassInstalled
# -*- coding: utf-8 -*-


#
# module path: pycklets.sshpass_installed.SshpassInstalled
#


from pyckles import AutoPycklet

class SshpassInstalled(AutoPycklet):
    """Install the '[sshpass](https://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/)' utility.

     'sshpass' is a small application that helps using ssh within scripts. There are some security implications to using it,
     so make sure to check out the webpage.

     If this is used on CentOS, the 'epel-release' repository package will also be installed and enabled.

       Args:
         pkg_mgr: the package manager to use

    """

    FRECKLET_ID = "sshpass-installed"

    def __init__(self, pkg_mgr="auto"):

        super(SshpassInstalled, self).__init__(var_names=["pkg_mgr"])
        self._pkg_mgr = pkg_mgr

    @property
    def pkg_mgr(self):
        return self._pkg_mgr

    @pkg_mgr.setter
    def pkg_mgr(self, pkg_mgr):
        self._pkg_mgr = pkg_mgr



frecklet_class = SshpassInstalled