Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

new fact "os" #172

Open
unixmind opened this issue Feb 21, 2017 · 1 comment
Open

new fact "os" #172

unixmind opened this issue Feb 21, 2017 · 1 comment

Comments

@unixmind
Copy link

Question : could we use new fact "os" in order to manage Puppet repositories for XenServer hosts ?

Expected Behavior

manage EL7 packages for XenServer 7.0 (and EL5 for XenServer 6.x)
we should use "os.name" and "os.release.major" facts

Actual Behavior

on all XenServer releases, Puppet packages are for EL5

@alvagante
Copy link
Member

For fix this on xenserver I'd use facts that work both on 3.x and 4.x Puppet versions such as $operatingsystemmajrel and $osfamily or $operatingsysystem

I'd start to use the $os fact only in a Puppet 4 only compatible module. m2c.

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

No branches or pull requests

2 participants