Skip to content

Conversation

@ponsfrilus
Copy link

The error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: comparison of String with 7 failed at /etc/puppet/environments/production/modules/selinux/manifests/params.pp:16 on node compute-0-04.cloud.epfl.ch
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

CentOS 7.1:

[root@compute-0-04 ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)

Facts:

[root@compute-0-04 ~]# facter
[...]
operatingsystem => CentOS
operatingsystemmajrelease => 7
operatingsystemrelease => 7.1.1503

Hack:
operatingsystemrelease -> operatingsystemmajrelease and the test pass.

```[root@compute-0-04 ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)```

```[root@compute-0-04 ~]# facter
[...]
operatingsystem => CentOS
operatingsystemmajrelease => 7
operatingsystemrelease => 7.1.1503```

```Error: Could not retrieve catalog from remote server: Error 400 on SERVER: comparison of String with 7 failed at /etc/puppet/environments/production/modules/selinux/manifests/params.pp:16 on node compute-0-04.cloud.epfl.ch
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run```

operatingsystemrelease -> operatingsystemmajrelease and the test pass.
@cliff-svt
Copy link

Any reason this PR hasn't been pulled? This module is DOA on CentOS 7 (where, unlike RHEL7, $::operatingsystemrelease is a 3-part release number like `7.1.1503' that can't be compared with '7') without it.

maage pushed a commit to cybercom-finland/puppet-selinux that referenced this pull request Sep 1, 2016
Add OS compatibility data for Puppet Forge
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 this pull request may close these issues.

2 participants