help with Hello world puppet file

15 views
Skip to first unread message

Asmae Azbeg

unread,
May 12, 2019, 1:06:35 AM5/12/19
to Puppet...@googlegroups.com
Hi everyone ,
i installed puppet server and agent version 5.5.10. The  communication was successful and i want to crreate and deploy the hello warld file but it was'nt working.
I followed the steps in this link:
here is my puppet server 
59953541_2377841845569398_3417727458516926464_n.png
60273866_317554218919831_679099363892396032_n.png
but in the puppet agent  i didn't recieve  the file :
fich.PNG

i really need your help,
thank you in advance ,
Asmae.

Martin Alfke

unread,
May 12, 2019, 9:08:53 AM5/12/19
to puppet...@googlegroups.com
Hi Asmae,

you placed you code in the wrong location:
https://puppet.com/docs/puppet/5.4/quick_start_helloworld.html#a-quick-note-about-modules

Puppet Code is at /etc/puppetlabs/code/environment/production/

Best,
Martin


> On 12. May 2019, at 01:06, Asmae Azbeg <azbeg...@gmail.com> wrote:
>
> Hi everyone ,
> i installed puppet server and agent version 5.5.10. The communication was successful and i want to crreate and deploy the hello warld file but it was'nt working.
> I followed the steps in this link:
> https://puppet.com/docs/puppet/5.4/quick_start_helloworld.html
> here is my puppet server
> <59953541_2377841845569398_3417727458516926464_n.png>
> <60273866_317554218919831_679099363892396032_n.png>
> but in the puppet agent i didn't recieve the file :
> <fich.PNG>
>
> i really need your help,
> thank you in advance ,
> Asmae.
>
> --
> 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/CAG5AitKVwUGWtYrKBWO%3DrqxuuEFm1%3DTt%3DjyvbmvHjzUPw13%2B5Q%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Asmae Azbeg

unread,
May 12, 2019, 12:20:40 PM5/12/19
to puppet...@googlegroups.com
Hi,
actually  /etc/puppetlabs/code/environment/production/ is the location on ubuntu and iam working with fedora .
the location of modules is on /etc/puppet/modules .
cordially,
Asmae

Henrik Lindberg

unread,
May 12, 2019, 12:55:20 PM5/12/19
to puppet...@googlegroups.com
On 2019-05-12 01:06, Asmae Azbeg wrote:
> Hi everyone ,
> i installed puppet server and agent version 5.5.10. The  communication
> was successful and i want to crreate and deploy the hello warld file but
> it was'nt working.
> I followed the steps in this link:
> https://puppet.com/docs/puppet/5.4/quick_start_helloworld.html
> here is my puppet server
> 59953541_2377841845569398_3417727458516926464_n.png
> 60273866_317554218919831_679099363892396032_n.png
> but in the puppet agent  i didn't recieve  the file :
> fich.PNG
>
> i really need your help,
> thank you in advance ,
> Asma

Suspect that you are not running the files you think you are.
Test by making an obvious error in the site.pp you think you are
running. If it does not fail, you know you are not using the file.

It is probably looking in the "production" environment directory and you
seem to have the files outside of any environment... (kind of what
Martin said).

Best,
- henrik

>
> --
> 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>.
> <https://groups.google.com/d/msgid/puppet-users/CAG5AitKVwUGWtYrKBWO%3DrqxuuEFm1%3DTt%3DjyvbmvHjzUPw13%2B5Q%40mail.gmail.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/

Asmae Azbeg

unread,
May 12, 2019, 2:44:04 PM5/12/19
to puppet...@googlegroups.com
Hi,
I tried what you did to me and he detected the error,
Actually i tried another example and I have the same result
here it is and there are also my puppet.conf files, I do not know why it does not have [main] and [master] there.
puppet master :
file.png


puppet agent : 
file1.PNG

I am really sorry for the inconvenience but i really need your help, this is my class project
Best,
Asmae

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/qb9539%244gao%241%40blaine.gmane.org.

chengkai liang

unread,
May 12, 2019, 5:36:45 PM5/12/19
to puppet...@googlegroups.com
you have to set modulepath to tell puppet where to find your module: https://puppet.com/docs/puppet/5.5/dirs_modulepath.html. The document should be good enough to get your started.

Asmae Azbeg

unread,
May 12, 2019, 5:46:43 PM5/12/19
to puppet...@googlegroups.com
Hi,
Alright I'll read it,Thank you ,
Best,
Asmae.

Henrik Lindberg

unread,
May 12, 2019, 6:56:17 PM5/12/19
to puppet...@googlegroups.com
On 2019-05-12 19:36, chengkai liang wrote:
> you have to set modulepath to tell puppet where to find your module:
> https://puppet.com/docs/puppet/5.5/dirs_modulepath.html. The document
> should be good enough to get your started.
>

If modulepath is not set it would mean the class that the inclusion of a
class from that module would fail with an error "Could not find class".

You now also mixed in a node expression for 'agent.com' which added yet
another source of possible errors. Start with just node default, or no
node expression at all. Just so you eliminate possible error sources.

Make sure your site.pp runs, then add some resource.

- henrik

> On Sun, May 12, 2019 at 7:44 AM Asmae Azbeg <azbeg...@gmail.com
> <mailto:azbeg...@gmail.com>> wrote:
>
> Hi,
> I tried what you did to me and he detected the error,
> Actually i tried another example and I have the same result
> here it is and there are also my puppet.conf files, I do not know
> why it does not have [main] and [master] there.
> puppet master :
> file.png
>
>
> puppet agent :
> file1.PNG
>
> I am really sorry for the inconvenience but i really need your help,
> this is my class project
> Best,
> Asmae
>
> Le dim. 12 mai 2019 à 14:55, Henrik Lindberg
> <henrik....@puppet.com <mailto:henrik....@puppet.com>> a
> <mailto:puppet-users%2Bunsu...@googlegroups.com>
> > <mailto:puppet-users...@googlegroups.com
> <mailto:puppet-users%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/puppet-users/CAG5AitKVwUGWtYrKBWO%3DrqxuuEFm1%3DTt%3DjyvbmvHjzUPw13%2B5Q%40mail.gmail.com
>
> >
> <https://groups.google.com/d/msgid/puppet-users/CAG5AitKVwUGWtYrKBWO%3DrqxuuEFm1%3DTt%3DjyvbmvHjzUPw13%2B5Q%40mail.gmail.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/
>
> --
> 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%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/qb9539%244gao%241%40blaine.gmane.org.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CAG5AitLLmCVYm9zJLzoiWMb484L9aQ7Dsufp4Dhj23%2BKGGwnCA%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAG5AitLLmCVYm9zJLzoiWMb484L9aQ7Dsufp4Dhj23%2BKGGwnCA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CAC9thQWdmpfCuLvG17B%3DYq%3DyfbFM5312V6YtHwxroE2_J8wEVQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAC9thQWdmpfCuLvG17B%3DYq%3DyfbFM5312V6YtHwxroE2_J8wEVQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages