Skip to content
  • gedvcode's avatar
    Fixing wrong pear package name in Amazon Linux · 50e1c173
    gedvcode authored
    When the pear package name is defined based on `$facter['os']['family']`. The problem is that Amazon Linux has 'RedHat' as os family.
    I set an `if` before case searching for 'Amazon' in `$facter['os']['name']` based on the output of the facter command on Amazon instances:
    ```shell
    $ facter os
    {
      architecture => "x86_64",
      family => "RedHat",
      hardware => "x86_64",
      name => "Amazon",
      release => {
        full => "2017.09",
        major => "2017",
        minor => "09"
      },
      selinux => {
        enabled => false
      }
    }
    ```
    50e1c173