On Thu, Mar 16, 2017, at 08:01, koti reddy wrote:
> Hi All,
> Greetings of the day 
> 
> I am very new to puppet and have completed puppetserver and puppetDB 
> installation with different servers.Both are installed with latest 
> versions.here is the version informatio
> 
> # puppetserver --version
> puppetserver version: 2.7.2
> 
> puppetdb --version
> puppetdb version: 4.3.2
> 
> # puppet --version -- puppet agent version
> 4.9.4
> 
> need small clarification,is it required to restart the puppet agent
> server 
> while install first time ? because I have installed puppet agent on
> server 
> and it was showing the error like below 
> 
>  
> 
> [root@etstestdom1 puppet]# puppet agent -tv
> 
> bash: puppet: command not found...
> 
> 
> after reboot the agent server we are able to run the command  and working 
> perfectly. please confirm any one need to restart the server?

you probably just need to have logged out and back in, Puppet, badly,
does not
install itself in bin paths but instead just manipulate PATH via a
profile which
is only read on login and not at all during services startup etc, so its
really
very unusable.  But in your case a logout and back in would have worked.


> 
> and second query,I have modified manifest file and added site.pp file and 
> ran the command on agent and working at first time.for example 
> 
> 
> I have added these lines to site.pp
> 
> node 'test-puppetagent01.asia.com' {
> 
> user { 'sairam':
> 
>   ensure     => present,
> 
>   uid        => '1001',
> 
>   shell      => '/bin/bash',
> 
>   home       => '/home/sairam',
> 
> }
> 
> 
> ran the command on agent server puppet agent -tv and updated as well. at 
> the same file modified like below 
> 
> 
> node 'test-puppetagent01.asia.manh.com' {
> 
> user { 'sairam':
> 
>   ensure     => present,
> 
>   uid        => '1001',
> 
>   shell      => '/bin/bash',
> 
>   home       => '/home/sairam',
> 
> }
> 
> service {'haproxy':
> 
>         ensure => 'running',
> 
> }
> 
> }
> 
> just added the service haproxy after ran the command on agent it was noy 
> update the modification.after that i have reload the site.pp then it was 
> updated on agent .please confirm any one need to reload the site.pp every 
> modification?it is auto update?

what do you mean 'reload the site.pp'?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/1489661735.3022383.913226056.319CE57F%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to