Error: Could not autoload puppet/type/dism: Attempt to redefine method set_present with block

18 views
Skip to first unread message

Vikram Varma

unread,
Jul 21, 2017, 11:34:48 AM7/21/17
to Puppet Users
Hi All,

I am getting the following error wheile running "puppet apply -v d:\default.pp" 

Error: Could not autoload puppet/type/dism: Attempt to redefine method set_present with block
Error: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/dism: Attempt to re
define method set_present with block at C:/ProgramData/PuppetLabs/code/modules/chocoserver/manifests/init.pp:8:3 on node

The piece of code where my error is referring is at: 

  dism { 'IIS-WebServerRole':
    ensure => present,
  }

I am using puppet opensource 4.10 on Windows server 2012 server.

Any quick response would be appreciated.

Thanks,
Vikram

Henrik Lindberg

unread,
Jul 26, 2017, 12:05:27 PM7/26/17
to puppet...@googlegroups.com
Can you run that with a --trace
you will then get the full stack trace which will reveal more about what
is going on.

Best,
- henrik

> Thanks,
> Vikram
>
> --
> 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
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/de9264fb-d083-41f5-af61-ff846c0fafe9%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/de9264fb-d083-41f5-af61-ff846c0fafe9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Reply all
Reply to author
Forward
0 new messages