Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Add a params.pp file #59

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add a params.pp file #59

wants to merge 5 commits into from

Commits on Aug 30, 2016

  1. Add a params.pp file, to allow OS specific differences to be set

    here, and include it in init.pp archive defined type, and make
    sure with an order, that it is instantiated in the catalog
    before the defined type is executed.
    
    The order of evaluation in the catalog is ensured by the
    include line in init.pp, and the following two lines,
    setting the order.
    
    The defined variables specific for OpenBSD are:
    $tarcmd string, defining a shell command to run tar
    $digest_types hash, defining the supported hash types, and their
                        shell commands
    
    The $tarcmd is used in extract.pp, the $digest_types is used
    in download.pp
    
    The only extra ::osfamily is OpenBSD, the rest is the values
    taken in the default: case of the case statement.
    
    The change in download.pp, uses the keys() function from stdlib.
    Because of that, stdlib is added as dependency to metadata.json,
    and .fixtures.yml. I chose an arbitrary version as minimal version
    not too old, and not too recent. Otherwise, stdlib 3.X should
    also work.
    
    Added OpenBSD to the metadata.json, in order to get the specs
    covering it too.
    buzzdeee committed Aug 30, 2016
    Configuration menu
    Copy the full SHA
    82fc829 View commit details
    Browse the repository at this point in the history
  2. Add a binary_indicator parameter for the usage of $digest_string.

    The hash commands on OpenBSD don't distinguish between binary
    and text files, so they don't handle the '*' in front of the
    file name to be checked.
    
    additionally update metadata.json for more current OpenBSD versions
    buzzdeee committed Aug 30, 2016
    Configuration menu
    Copy the full SHA
    d75c797 View commit details
    Browse the repository at this point in the history
  3. Fixup, for Solaris

    buzzdeee committed Aug 30, 2016
    Configuration menu
    Copy the full SHA
    88fb2cf View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2016

  1. Configuration menu
    Copy the full SHA
    e8bf214 View commit details
    Browse the repository at this point in the history
  2. try require

    buzzdeee committed Sep 1, 2016
    Configuration menu
    Copy the full SHA
    7e53669 View commit details
    Browse the repository at this point in the history