Need more understand about puppetserver and puppetdb

24 views
Skip to first unread message

koti reddy

unread,
Mar 16, 2017, 6:52:00 AM3/16/17
to Puppet Developers
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?

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?

please help me in this situation.

Thanks & Regards,
Koti G

R.I.Pienaar

unread,
Mar 16, 2017, 6:55:38 AM3/16/17
to puppe...@googlegroups.com


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'?
Reply all
Reply to author
Forward
0 new messages