helloworld

33 views
Skip to first unread message

Alex M

unread,
Jan 20, 2016, 3:31:16 PM1/20/16
to Puppet Users
Hi, i have Puppet 3.7.2 on Debian 8.2 x64. I added host Windows Server 2012 R2 into Puppet. Now i would like to do test manifest (Forder c:/test/ : present on WS)

#cat /etc/puppet/modules/helloword/manifests/init.pp
class helloworld {
        file
{ 'c:/test/hello.txt':
        content
=> "Hello World!",
       
}
}


# ll /etc/puppet/modules/helloword/manifests/init.pp
-rw-r--r-- 1 root root 81 Jan 20 17:12 /etc/puppet/modules/helloword/manifests/init.pp

i run puppet agent --test on WS 2012 R2 and receive an error:

C:\>puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class helloworld for test1.domain.company.com on node test1.domain.company.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

how i can fix it?

if i disable this manifest:

C:\>puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for test1.domain.company.com
Info: Applying configuration version '1453308350'
Notice: Finished catalog run in 0.08 seconds


Thank you!

Carthik Sharma

unread,
Jan 20, 2016, 3:56:55 PM1/20/16
to puppet...@googlegroups.com
helloword versus helloworld (missing l) :)

--
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/0c0d7f90-08ba-45c8-94a3-06abdb8afb7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex M

unread,
Jan 21, 2016, 5:49:51 AM1/21/16
to Puppet Users
Thank you! now it works!

среда, 20 января 2016 г., 21:56:55 UTC+1 пользователь Carthik Sharma написал:
Reply all
Reply to author
Forward
0 new messages