Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing wrong pear package name in Amazon Linux #399

Merged
merged 1 commit into from
Dec 2, 2017
Merged

Fixing wrong pear package name in Amazon Linux #399

merged 1 commit into from
Dec 2, 2017

Conversation

gdurandvadas
Copy link

@gdurandvadas gdurandvadas commented Nov 29, 2017

When the pear package name is defined, it is 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:

$ facter os
{
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "Amazon",
  release => {
    full => "2017.09",
    major => "2017",
    minor => "09"
  },
  selinux => {
    enabled => false
  }
}

Extra information:
Puppet agent version: 4.10.1
facter version: 3.6.4
AMI Releas: Amazon Linux AMI 2017.09.0.20170930 x86_64 HVM EBS

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
  }
}
```
@juniorsysadmin juniorsysadmin merged commit 341065c into voxpupuli:master Dec 2, 2017
@juniorsysadmin juniorsysadmin added the bug Something isn't working label Dec 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants