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

Error: CentOS- is not supported #52

Closed
tommy-muehle opened this issue Aug 27, 2015 · 5 comments
Closed

Error: CentOS- is not supported #52

tommy-muehle opened this issue Aug 27, 2015 · 5 comments

Comments

@tommy-muehle
Copy link

Hi,

we get the error

Error: CentOS- is not supported at /tmp/vagrant-puppet/modules-f9727779af741867e6222f127e22141c/selinux/manifests/params.pp:35

on puppet provisioning in this box. (CentOS 6.6)

It seems the ${::operatingsystemmajrelease} variable are empty.

Used versions:

puppet --version
3.8.2

vagrant --version
Vagrant 1.7.2

VirtualBox: 4.3.28

Sincerly, Tommy

@gregswift
Copy link

what version of facter?

@tommy-muehle
Copy link
Author

The facter version is "2.4.4".

@A13x3i
Copy link

A13x3i commented Oct 1, 2015

Same problem with 2.4.4 version of facter , however version is defined

# facter operatingsystemmajrelease
6

Puppet version 4.2.2
and the bundle I'm working on has a different version of facter but has the same problem

# bundle exec facter --version
1.7.6
# bundle exec facter | grep opera
operatingsystem => CentOS
operatingsystemmajrelease => 6
operatingsystemrelease => 6.6
# bundle exec puppet --version
3.7.5

@A13x3i
Copy link

A13x3i commented Oct 1, 2015

Ok I think I might have a solution for this one make sure you have the latest module from github
check the params.pp file it should have the following lines

34,40d33
<             '': {
<               # Fallback to lsbmajdistrelease, if puppet version is < 3.0
<               if($::lsbmajdistrelease == 5) {
<                 $sx_fs_mount = '/selinux'
<                 $package_name = 'policycoreutils'
<               }
<             }

if it doesn't you can copy them there it it will all work.
I think the problem is hat jfryman-selinux is not up to date on puppet forge e.g

# bundle exec librarian-puppet show | grep selinux
jfryman-selinux (0.2.5)

does not contain commit 646bfb8
Fixed in this pull request #54

Could you please update the puppet forge version ?

@gregswift
Copy link

good catch. i kept looking at the code confused as to why that wasnt working.

still, even on puppet 2 i thought that variable would exist with the right version of facter

@jfryman jfryman closed this as completed Jun 2, 2016
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

4 participants