Hello gals & guys,
I''m trying to make a simple site.pp manifest to verify that manifests
are applied to my nodes. I plan to start from that to develop  more
complex scripts.
However I''m having trouble writing a manifest that initial manifest
and prove it works.
The problem with the example at
http://reductivelabs.com/trac/puppet/wiki/InstallationGuide
# /etc/puppet/manifests/site.pp
file { "/etc/sudoers":
    owner => root, group => root, mode => 440
}
is that there are no transaction changes to be made.
I tried to check that a certain package is installed, but again
nothing happens:
# /etc/puppet/manifests/site.pp
# taken from http://www.linuxjournal.com/article/10046
package {
    ntp:
        ensure => installed
}
Should I try some exec:
# /etc/puppet/manifests/site.pp
exec { "touchtest":
    command => "/bin/touch /home/bogdanbiv/touchtest"
}
In other words, how do I say "Hello world!" in my puppet show?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Triple posting? that''s some feat... Sorry for this. Please reply in my older thread. Lame excuse: Google showed the previous topic as "deleted" and I reposted it in a new message, thinking I did something wrong... such as my session expired. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Puppet does nothing but make sure your system looks as you''ve described
it.
So to test puppet, make the system different than what you''ve
described.  I
wouldn''t touch the sudoers file for obvious reason :)
But try uninstalling the ntp package, then run puppet again.  It should
install the package.  Your exec resource is probably a good idea, but I
would just do a file resourcet.  All you need to do is make sure that file
doesn''t exist on the system before running puppet.
file {"/tmp/foobar.txt":
    content => "Hello World",
    ensure  => present;
}
On Mon, Oct 5, 2009 at 4:43 AM, Bogdan Bivolaru
<bogdan.bivolaru@gmail.com>wrote:
>
> Triple posting? that''s some feat...
> Sorry for this. Please reply in my older thread.
>
> Lame excuse:
> Google showed the previous topic as "deleted" and I reposted it
in a
> new message, thinking I did something wrong... such as my session
> expired.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
I''m trying to reunite the threads that resulted from my double (triple actually... go figure) posting. So if you have any further comments, please reply in this thread: http://groups.google.com/group/puppet-users/browse_thread/thread/6c37f687c0d853e9 I apologize for mangling the discussion. Carl, I hope you don''t mind if I quote your reply in my message in the other thread. On Oct 5, 4:37 pm, Carl Caum <carl.c...@gmail.com> wrote:> Puppet does nothing but make sure your system looks as you''ve described it. > So to test puppet, make the system different than what you''ve described. I > wouldn''t touch the sudoers file for obvious reason :) > But try uninstalling the ntp package, then run puppet again. It should > install the package. Your exec resource is probably a good idea, but I > would just do a file resourcet. All you need to do is make sure that file > doesn''t exist on the system before running puppet. > > file {"/tmp/foobar.txt": > content => "Hello World", > ensure => present; > > } > > On Mon, Oct 5, 2009 at 4:43 AM, Bogdan Bivolaru > <bogdan.bivol...@gmail.com>wrote: > > > > > Triple posting? that''s some feat... > > Sorry for this. Please reply in my older thread. > > > Lame excuse: > > Google showed the previous topic as "deleted" and I reposted it in a > > new message, thinking I did something wrong... such as my session > > expired.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---