Also this is what my nodes.pp file looks like on the master

root@puppet:/etc/puppet/manifests# cat nodes.pp
# /etc/puppet/manifests/nodes.pp

node basenode {
  include sudo
}

node 'cloneubuntu.local.net' inherits basenode {
}


and on the master i am running puppetd and it looks like /etc/sudoers file
hasnt been modified according to settings, note that i added user "red" in
the file /etc/puppet/modules/sudo/files/sudoers

root@puppet:/etc/puppet/modules/sudo/files# cat sudoers | grep -v "#"

Defaults        env_reset




root    ALL=(ALL) ALL
red     ALL=(ALL) ALL
%sudo ALL=(ALL) ALL

%admin ALL=(ALL) ALL
root@puppet:/etc/puppet/modules/sudo/files# cat /etc/sudoers | grep -v "#"

Defaults        env_reset




root    ALL=(ALL) ALL
%sudo ALL=(ALL) ALL

%admin ALL=(ALL) ALL


On Tue, Oct 4, 2011 at 8:30 AM, John Bower <olympus.sta...@gmail.com> wrote:

> Hello,
>
> I have successfully have installed puppetmaster and client on two
> seperate vms.
>
> The client is called "cloneubuntu.local.net" and the master is
> "puppet.local.net"
>
> Certs are also correct, I signed them and everything went well.
>
> Client and Master can ping each other:
>
> Client:
> -----------------------------------------------------
> root@cloneubuntu:~# ping puppet
> PING puppet.local.net (192.168.10.5) 56(84) bytes of data.
> 64 bytes from puppet.local.net (192.168.10.5): icmp_seq=1 ttl=64
> time=0.409 ms
> 64 bytes from puppet.local.net (192.168.10.5): icmp_seq=2 ttl=64
> time=0.218 ms
> 64 bytes from puppet.local.net (192.168.10.5): icmp_seq=3 ttl=64
> time=0.252 ms
> ^C
> --- puppet.local.net ping statistics ---
> 3 packets transmitted, 3 received, 0% packet loss, time 2001ms
> rtt min/avg/max/mdev = 0.218/0.293/0.409/0.083 ms
>
>
>
> root@cloneubuntu:~# puppetd --test --server "puppet.local.net"
> info: Caching catalog for cloneubuntu.local.net
> info: Applying configuration version '1317730208'
> notice: Finished catalog run in 0.06 seconds
> ---------------------------------------------------------------------
>
>
>
> Master:
> ---------------------------------------------------------------------
> root@puppet:/etc/puppet/manifests# screen
> --- cloneubunutu.local.net ping statistics ---
> 4 packets transmitted, 4 received, 0% packet loss, time 3000ms
> rtt min/avg/max/mdev = 0.234/0.467/1.104/0.368 ms
> root@puppet:/etc/puppet# ps ax | grep puppet
>  1563 ?        Ssl    0:02 /usr/bin/ruby1.8 /usr/bin/puppetmasterd --
> mkusers
>  1586 ?        Ss     0:00 /usr/bin/ruby1.8 /usr/bin/puppetd --verbose
>  1912 pts/1    S+     0:00 grep --color=auto puppet
> root@puppet:/etc/puppet# tree
> .
> âââ auth.conf
> âââ manifests
> â   âââ classes
> â   â   âââ sudo.pp
> â   âââ modules.pp
> â   âââ nodes.pp
> â   âââ site.pp
> âââ modules
> â   âââ sudo
> â       âââ files
> â       â   âââ sudoers
> â       âââ manifests
> â           âââ init.pp
> âââ site.pp
> âââ ssl
>    âââ ca
>    â   âââ ca_crl.pem
>    â   âââ ca_crt.pem
>    â   âââ ca_key.pem
>    â   âââ ca_pub.pem
>    â   âââ inventory.txt
>    â   âââ private
>    â   â   âââ ca.pass
>    â   âââ requests
>    â   âââ serial
>    â   âââ signed
>    â       âââ cloneubuntu.local.net.pem
>    â       âââ puppet.local.net.pem
>    âââ certificate_requests
>    âââ certs
>    â   âââ ca.pem
>    â   âââ puppet.local.net.pem
>    âââ crl.pem
>    âââ private
>    âââ private_keys
>    â   âââ puppet.local.net.pem
>    âââ public_keys
>        âââ puppet.local.net.pem
>
> 16 directories, 22 files
> root@puppet:/etc/puppet#
> -----------------------------------------------------------------------
>
>
> I tried to recreate this example:
> http://projects.puppetlabs.com/projects/puppet/wiki/Advanced_Puppet_Pattern
> and edited the sudoers file that is inside the puppet directory but
> cloneubuntu.local.net (the client) is not writting changes to /etc/
> sudoers.
>
> It seems nothing has changed.
>
> Please please help me and let me know if you need additional details.
>
> Thanks
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to