Hi Team, Tried following the steps here http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows for deploying an agent on windows (windows server 2008 r2) but really finding it hard to make it work (the agent deployment itself went fine after following the steps). I have a working puppet-server on RH 6 and have tested few RH clients which work fine. The very first hurdle is that i don''t find a default puppet.conf in c: \programdata\puppetlabs\puppet\etc folder. Only auth.conf is present in this folder. Secondly from the command line when i run "puppet config print all" , i get a lot of settings. I am really not sure on where it is fetching these settings from ? Basically i need to provide the puppet-server name to the client for it to communicate and register. (In RH this is done in /etc/puppet/ puppet.conf). Tried copying this puppet.conf file to windows server but doesn''t work. Any guidance will be very helpful. Cheers, Ravi -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 2011-11-18 09:15 , Ravi wrote:> Hi Team, > > Tried following the steps here http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows > for deploying an agent on windows (windows server 2008 r2) but really > finding it hard to make it work (the agent deployment itself went fine > after following the steps). I have a working puppet-server on RH 6 and > have tested few RH clients which work fine. > > The very first hurdle is that i don''t find a default puppet.conf in c: > \programdata\puppetlabs\puppet\etc folder. Only auth.conf is present > in this folder. > > Secondly from the command line when i run "puppet config print all" , > i get a lot of settings. I am really not sure on where it is fetching > these settings from ? > > Basically i need to provide the puppet-server name to the client for > it to communicate and register. (In RH this is done in /etc/puppet/ > puppet.conf). Tried copying this puppet.conf file to windows server > but doesn''t work. > > Any guidance will be very helpful. > > Cheers, > Ravi >A (relatively) quick way to get started would be to put the output of ''puppet agent --genconfig'' into the file output by ''puppet agent --configprint config'', and modifying to taste. The ''puppet config print all'' is getting the settings from the internal defaults of Puppet itself, so it''s not really fetching them from anywhere. -- Jacob Helwig http://about.me/jhelwig
Thanks for your reply. Tried this and was able to get the config file. But i now have a strange problem - The agent starts up and in the log file i see the following error - Sun Nov 20 18:39:45 +0000 2011 /File[C:/ProgramData/PuppetLabs/puppet/ var/facts]/ensure (err): change from directory to file failed: Could not set ''file on ensure: Permission denied - C:/ProgramData/PuppetLabs/ puppet/var/facts Apart from this, i don''t see anything in the log files, both on client and server. Also, i don''t see this node in the Dashboard too. Any further troubleshooting steps will be very helpful. Regards, Ravi On Nov 18, 7:41 pm, Jacob Helwig <ja...@puppetlabs.com> wrote:> On 2011-11-18 09:15 , Ravi wrote: > > > > > > > Hi Team, > > > Tried following the steps herehttp://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows > > for deploying an agent on windows (windows server 2008 r2) but really > > finding it hard to make it work (the agent deployment itself went fine > > after following the steps). I have a working puppet-server on RH 6 and > > have tested few RH clients which work fine. > > > The very first hurdle is that i don''t find a default puppet.conf in c: > > \programdata\puppetlabs\puppet\etc folder. Only auth.conf is present > > in this folder. > > > Secondly from the command line when i run "puppet config print all" , > > i get a lot of settings. I am really not sure on where it is fetching > > these settings from ? > > > Basically i need to provide the puppet-server name to the client for > > it to communicate and register. (In RH this is done in /etc/puppet/ > > puppet.conf). Tried copying this puppet.conf file to windows server > > but doesn''t work. > > > Any guidance will be very helpful. > > > Cheers, > > Ravi > > A (relatively) quick way to get started would be to put the output of > ''puppet agent --genconfig'' into the file output by ''puppet agent > --configprint config'', and modifying to taste. > > The ''puppet config print all'' is getting the settings from the internal > defaults of Puppet itself, so it''s not really fetching them from anywhere. > > -- > Jacob Helwighttp://about.me/jhelwig > > signature.asc > < 1KViewDownload- Hide quoted text - > > - Show quoted text --- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi Ravi, On Sun, Nov 20, 2011 at 11:07 AM, Ravi <rajan.s.ravi@gmail.com> wrote:> Thanks for your reply. Tried this and was able to get the config file. > But i now have a strange problem - The agent starts up and in the log > file i see the following error - > > Sun Nov 20 18:39:45 +0000 2011 /File[C:/ProgramData/PuppetLabs/puppet/ > var/facts]/ensure (err): change from directory to file failed: Could > not set ''file on ensure: Permission denied - C:/ProgramData/PuppetLabs/ > puppet/var/facts > >I''ve run across this a few times, but haven''t filed a bug yet. When running puppet agent --genconfig (or config print all), puppet generates 3 fact related settings that prevent the agent from being able to start. I don''t think this is specific to Windows, but haven''t spent time to narrow it down. Just comment out the property that ends with "var/facts" and try again. You''ll need to do this for 2 other fact related properties, then you should be good. Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Sun, Nov 20, 2011 at 4:17 PM, Josh Cooper <josh@puppetlabs.com> wrote:> Hi Ravi, > > On Sun, Nov 20, 2011 at 11:07 AM, Ravi <rajan.s.ravi@gmail.com> wrote: > >> Thanks for your reply. Tried this and was able to get the config file. >> But i now have a strange problem - The agent starts up and in the log >> file i see the following error - >> >> Sun Nov 20 18:39:45 +0000 2011 /File[C:/ProgramData/PuppetLabs/puppet/ >> var/facts]/ensure (err): change from directory to file failed: Could >> not set ''file on ensure: Permission denied - C:/ProgramData/PuppetLabs/ >> puppet/var/facts >> >> > I''ve run across this a few times, but haven''t filed a bug yet. When > running puppet agent --genconfig (or config print all), puppet generates 3 > fact related settings that prevent the agent from being able to start. I > don''t think this is specific to Windows, but haven''t spent time to narrow > it down. Just comment out the property that ends with "var/facts" and try > again. You''ll need to do this for 2 other fact related properties, then you > should be good. >I filed this as http://projects.puppetlabs.com/issues/10991 Thanks, Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.