Skip to content

Manifests using the module aren't testable in windows #27

@alonisser

Description

@alonisser

When I run puppet test on my manifests using puppet-python:

puppet apply --noop --modulepath=modules manifests\default.pp

I just need to verify that puppet builds the correct catalog etc. but instead I get a Module is not compatible with windows error.

This is a common scenerio when using vagrant+puppet on windows to provision a virtual linux machine.
The problem comes from this code in init.pp:

  $compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat' ]
  if ! ($::operatingsystem in $compatible) {
    fail("Module is not compatible with ${::operatingsystem}")
  }

Let me make my self clear This is a complete valid failure when running puppet apply on windows without the --noop flag.
But this shouldn't fail on a test scenerio. Maybe when --noop is on puppet arguments the module should notify but not fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions