Puppet 4, rspec, and stages

64 views
Skip to first unread message

Sean McKinley

unread,
Sep 24, 2015, 6:56:44 PM9/24/15
to Puppet Users
We recently upgraded to PE2015, and as such have upgraded our local puppet gems to match (4.2.2). Unfortunately a few of our specs that were previously passing are now failing, mostly in regards to stages:

"Evaluation Error: Error while evaluating a Function Call, Could not find stage first specified by Class[Ipa::client]"

The class is fairly simple:

class ipa::client(
  $principal = 'host_manager',
  $password = 'obscured_because_security'
  $stage     = first,
 ){

Has anyone run into this yet by chance?

Russell Cecala

unread,
Sep 24, 2015, 11:33:48 PM9/24/15
to puppet-users
You might need a comma after 'obscured_because_security' :)

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/02ebfaec-04b8-4f5c-89f8-6f81a9827f2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sean McKinley

unread,
Sep 25, 2015, 12:50:01 PM9/25/15
to Puppet Users
Hah! That's a valid point. Unfortunately for me, the actual manifest has the comma after the password (I just failed when obscuring it, apparently).

Philip Wigg

unread,
Sep 25, 2015, 2:53:27 PM9/25/15
to puppet...@googlegroups.com
I don't totally understand this.

You seem to have a parameterised class which takes $stage as a parameter?

I would expect 'stage' to be used as a metaparameter in resource-like
class declaration as in:-

https://docs.puppetlabs.com/puppet/latest/reference/lang_run_stages.html

Cheers,
Phil.
Reply all
Reply to author
Forward
0 new messages