Hi I'm new to puppet and I'm trying to make a test class, but when I run puppet apply-t
I get error Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::heroes
for
under my test directory I have
.
├── examples
│ ├── init.pp
│ └── superhero.pp
└── manifests
├── init.pp
└── superhero.pp
2 directories, 4 files
in my superhero.pp
under manifest the code reads
class heroes {
user { 'thor':
ensure => present,
}
}
in my superhero.pp
under example the code reads
include heroes
Not sure why when I run puppet apply --noop superheroes.pp
under examples that error shows up?
Here is my complete tree under modules
├── hosts
│ ├── examples
│ │ └── init.pp
│ └── manifests
│ └── init.pp
├── nginx
│ ├── examples
│ │ └── init.pp
│ ├── files
│ │ ├── default.conf
│ │ ├── index.html
│ │ └── nginx.conf
│ ├── index.html
│ └── manifests
│ ├── index.html
│ └── init.pp
├── test
│ ├── examples
│ │ ├── admins.pp
│ │ ├── init.pp
│ │ └── superhero.pp
│ └── manifests
│ ├── admins.pp
│ ├── init.pp
│ └── superhero.pp
└── users
├── examples
│ ├── admins.pp
│ └── init.pp
└── manifests
├── admins.pp
└── init.pp