mlove
2011-Sep-23 16:09 UTC
[Puppet Users] Trying to get a basic connection going between master and agent
Hi all, I am trying to get a simple example going with one master and one puppet. I am on Debian and used apt-get install puppetmaster for the master and apt-get install puppet for the puppet. I was able to get the cert signed and imported to the master from the puppet. Now I am just trying to get a basic example like putting a fil in the /tmp directory on the puppet. I put the following in nodes.pp in /etc/ puppet/manifests/ node basenode { } node ''puppet-slave'' inherits basenode { file {''testfile'': path => ''/tmp/testfile'', ensure => present, mode => 0640, content => "I''m a test file.", } } I run puppet agent --onetime on the puppet but when I check /tmp the file testfile is not there. Any suggestions? -- 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.
Daniel Bahena
2011-Sep-24 18:37 UTC
Re: [Puppet Users] Trying to get a basic connection going between master and agent
Run puppetd with the -v flag for verbose and see any errors printed. On Sep 24, 2011 12:16 PM, "mlove" <mikeloverme@gmail.com> wrote:> Hi all, > > I am trying to get a simple example going with one master and one > puppet. I am on Debian and used apt-get install puppetmaster for the > master and apt-get install puppet for the puppet. I was able to get > the cert signed and imported to the master from the puppet. Now I am > just trying to get a basic example like putting a fil in the /tmp > directory on the puppet. I put the following in nodes.pp in /etc/ > puppet/manifests/ > > node basenode { > } > node ''puppet-slave'' inherits basenode { > file {''testfile'': > path => ''/tmp/testfile'', > ensure => present, > mode => 0640, > content => "I''m a test file.", > } > } > > I run puppet agent --onetime on the puppet but when I check /tmp the > file testfile is not there. Any suggestions? > > -- > 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 topuppet-users+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.>-- 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.
Scott Smith
2011-Sep-25 17:18 UTC
Re: [Puppet Users] Trying to get a basic connection going between master and agent
Is your Puppet client''s hostname puppet-slave? On Sep 24, 2011 10:16 AM, "mlove" <mikeloverme@gmail.com> wrote:> Hi all, > > I am trying to get a simple example going with one master and one > puppet. I am on Debian and used apt-get install puppetmaster for the > master and apt-get install puppet for the puppet. I was able to get > the cert signed and imported to the master from the puppet. Now I am > just trying to get a basic example like putting a fil in the /tmp > directory on the puppet. I put the following in nodes.pp in /etc/ > puppet/manifests/ > > node basenode { > } > node ''puppet-slave'' inherits basenode { > file {''testfile'': > path => ''/tmp/testfile'', > ensure => present, > mode => 0640, > content => "I''m a test file.", > } > } > > I run puppet agent --onetime on the puppet but when I check /tmp the > file testfile is not there. Any suggestions? > > -- > 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 topuppet-users+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.>-- 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.