Ask Your Question
0

puppet service_example on windows

asked 2016-05-16 12:29:29 -0500

Posted about this in the puppet user forum on google a month ago but have gotten zero reply

I'll repeat the issue here:

Trying to get an example to run from the registry windows package https://github.com/puppetlabs/puppetl...

The puppet master enterprise is running on centos 6.5. This is the simplest example I can try and I would have expected it to just work. I am able to do simple examples for OS X but the windows examples have me dead in the water:

for some reason it is balking on the example code like so:

Running Puppet agent on demand ...
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: No matching entry for selector parameter with value 'UNSET' at /etc/puppetlabs/code/environments/production/modules/registry/manifests/service.pp:51:18 at /etc/pupp
etlabs/code/environments/production/modules/registry/manifests/service_example.pp:20 on node mynode
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Press any key to continue . . .

Here the lines around /service.pp:51:18 :

  $ensure_real = $ensure ? {
    UNSET   => present,
    undef   => present,
    present => present,
    absent  => absent,
  }

This is the code as provided from git and I'm a newbie to puppet so I don't much clue what the line UNSET => present,

is trying to do.

Any ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-17 17:39:55 -0500

mike.r gravatar image

try commenting out UNSET => present, line in service.pp and running it, it may be that it doesnt like this format,

also on issues like this, youll get faster response from the module developers by opening up issues directly on Github

edit flag offensive delete link more

Comments

Thanks I'll try both those approaches

grantLittle gravatar imagegrantLittle ( 2016-05-24 12:58:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-05-16 12:26:54 -0500

Seen: 52 times

Last updated: May 17 '16