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

Ubuntu family is "not supported" #30

Closed
ikkaro opened this issue May 7, 2020 · 0 comments · Fixed by #35
Closed

Ubuntu family is "not supported" #30

ikkaro opened this issue May 7, 2020 · 0 comments · Fixed by #35

Comments

@ikkaro
Copy link

ikkaro commented May 7, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.4.0
  • Ruby: 2.4.3p205
  • Distribution: Ubuntu 16.04
  • Module version: 2.0.1

How to reproduce (e.g Puppet code you use)

In puppet code a block that contains:

include ::openvmtools

In hiera:

openvmtools::ensure: present
openvmtools::autoupgrade: false
openvmtools::uninstall_vmware_tools: false

What are you seeing

open-vm-tools should be installed

What behaviour did you expect instead

open-vm-tools is not installed

Output log

2020-05-07 09:38:26,122 INFO [qtp605093187-80149] [puppetserver] Scope(Class[Openvmtools]) Your operating system Ubuntu is unsupported and will not have the Open Virtual Machine Tools installed.

Any additional information you'd like to impart

The hiera.yml includes this one:

hierarchy:
  - name: 'OS Major Version'
    path: '%{facts.os.family}.%{facts.os.name}.%{facts.os.release.major}.yaml'
  - name: 'OS Name'
    path: '%{facts.os.family}.%{facts.os.name}.yaml'
  - name: 'OS Family'
    path: '%{facts.os.family}.yaml'

In Ubuntu 16 the facts returns this:

os
  family => "Debian",
  name => "Ubuntu",
  release => {
    full => "16.04",
    major => "16.04"

Release major is "16.04", but the yaml filename is "Debian.Ubuntu.16.yaml", then never matches and reports the os as unsupported. The filename should be "Debian.Ubuntu.16.04.yaml".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant