Skip to content

Legacy facts used for operating system family #279

@Gaelmare

Description

@Gaelmare

This fails for me using

puppet --version
5.5.20

on Fedora 31.

Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 
Unrecognized operating system, please use it on a Linux or SunOS host
(file: /home/xx/modules/oradb/manifests/prepareautostart.pp, line: 76, column: 7) (file: /home/xx/modules/xx/manifests/init.pp, line: 202) on node xx

This line

case $facts['operatingsystem'] {

should be

  case $facts['os']['family'] {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions