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

operatingsystemmajrelease doesn't exist on Ubuntu with facter < 2.2.0 #497

Closed
thomasco opened this issue Nov 1, 2014 · 0 comments
Closed

Comments

@thomasco
Copy link

thomasco commented Nov 1, 2014

With facter 2.1.0 on Ubuntu Lucid, I get an error that looks like

Error: Error from DataBinding 'hiera' while looking up 'nginx::client_body_buffer_size': Undefined variable "::operatingsystemmajrelease"; Undefined variable "operatingsystemmajrelease" on node redacted.example.com

Since 7a67a9d, data/hiera.yaml specifies looking in operatingsystem/%{::operatingsystem}/%{::operatingsystemmajrelease} for data, but fails in this scenario because operatingsystemmajrelease is undefined.

Facter >= 2.2.0 sets a value for operatingsystemmajrelease in Ubuntu and shouldn't have this problem, but I haven't personally tested this configuration yet.

The most recent version of Facter available from Canonical is 2.1.0 in Utopic, so anyone with a vanilla Ubuntu installation (e.g., not using a very current puppetlabs package or rolling their own) is going to have this problem.

@3flex 3flex closed this as completed in 2917a35 Nov 3, 2014
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this issue Oct 23, 2017
Remove operatingsystemmajrelease from hieradata's hierarchy as it doesn't have a value
set on Ubuntu on anything lower than Facter 2.2. This means Ubuntu installations that
aren't running the most up to date Facter version would have compilation failures.

Fixes voxpupuli#497
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

No branches or pull requests

1 participant