2012/6/28 eduardo <erodr...@gmail.com>: > In development environment the simplest way to work is having git > repositories on /home directories, not in system directory like /etc/ > puppet. I have setting my home environment to development having > username 'era'. I have in there git repositories to development and > that's why I pretend a soft link /etc/puppet to target /home/era/ > speedy_repo/puppet-eduardo/puppet/ files owned by 'era' not by 'root', > so I can edit then and git operations like 'era'. > > > On 28 jun, 09:46, Juan Sierra Pons <j...@elsotanillo.net> wrote: >> 2012/6/28 eduardo <erodr...@gmail.com>: >> >> >> >> >> >> >> >> > Thanks you Juan for quick answer. You are right, i was not clear. >> >> > I began showing my scenario and the way i found to have master and >> > agent in my pc. >> >> > I need to have /etc/puppet tree in my home directory owned by me, we >> > are a group having git repositories to development colaboration. >> >> > Thanks you, >> > eduardo. >> >> > On 28 jun, 08:11, Juan Sierra Pons <j...@elsotanillo.net> wrote: >> >> 2012/6/28 eduardo <erodr...@gmail.com>: >> >> >> > Dears all, >> >> >> > I have been master and agent in the same machine, to did it I took >> >> > fromhttp://madduck.net/blog/2010.03.11:splitting-puppetd-from-puppetmaster/, >> >> > so /var/lib/puppetmaster is the puppet working directory for both. >> >> > I need to have a repository on my $HOME nowadays owned by me, so I >> >> > trying something like : >> >> >> > root@casa:/# service puppetmaster stop >> >> > * Stopping puppet >> >> > master [ OK ] >> >> >> > root@casa:/# ln -s /home/era/speedy_repo/puppet-eduardo/puppet/ /etc/ >> >> > puppet >> >> >> > root@casa:/# ls -ld /etc/puppet # LOOKS GOOD . >> >> > lrwxrwxrwx 1 root root 44 2012-06-27 18:12 /etc/puppet -> /home/era/ >> >> > speedy_repo/puppet-eduardo/puppet/ >> >> >> > But a new directory /etc/puppet is created whenever start >> >> > puppetmaster. >> >> >> > root@casa:/# service puppetmaster start >> >> > * Starting puppet >> >> > master [ OK ] >> >> >> > root@casa:/# ls -ld /etc/puppet # LOOKS VERY BAD. >> >> > drwxr-xr-x 3 root root 4096 2012-06-27 18:13 /etc/puppet >> >> > root@casa:/# >> >> >> > Is there any way to do it ?. >> >> >> > Thanks in advanced, >> >> > eduardo. >> >> >> > -- >> >> > 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 >> >> > athttp://groups.google.com/group/puppet-users?hl=en. >> >> >> Hi, >> >> >> Way do you want to do this? Can you explain a little bit more the reason? >> >> >> Maybe there is another way to achieve your goal but we need to know it >> >> >> There are some parameters. eg: >> >> vardir=/var/lib/puppet >> >> ssldir=/var/lib/puppet/ssl >> >> rundir=/var/run/puppet >> >> >> That can be included in the [main] and /or [agent] section of your >> >> puppet.conf that can help in this case >> >> >> Best regards >> >> >> -------------------------------------------------------------------------------------- >> >> Juan Sierra Pons j...@elsotanillo.net >> >> Linux User Registered: #257202 http://www.elsotanillo.net >> >> GPG key = 0xA110F4FE >> >> Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE >> >> -------------------------------------------------------------------------------------- >> >> > -- >> > 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 >> > athttp://groups.google.com/group/puppet-users?hl=en. >> >> Hi >> >> I think the right (my) approach is having a have a central repository >> (doesn't matter if it is you home directory) and deploy to the >> puppetmaster on demand using the repository tools: git push/pull, etc. >> >> I mean not allowing the developers to work directly in your >> /home/user/etc/puppet >> >> Here is a good example: >> <Spam> >> * Deploying changes with Rake [1] ( Sign In, Subscribe or Register For >> a Free Trial needed) >> </Spam> >> >> This way developers have a place to save their work and changes will >> be pushed to de puppetmaster on demand. >> >> [1]http://my.safaribooksonline.com/book/-/9781849515382/puppet-infrastru... >> >> I hope it helps >> >> Best regards >> -------------------------------------------------------------------------------------- >> Juan Sierra Pons j...@elsotanillo.net >> Linux User Registered: #257202 http://www.elsotanillo.net >> GPG key = 0xA110F4FE >> Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE >> -------------------------------------------------------------------------------------- > > -- > 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. >
Hi Maybe I have miss something from the big picture, but I don't see any benefit of having the /etc/puppet linked to /home/era/speedy_repo/puppet-eduardo/puppet/ My approach is working in your repository /home/era/speedy_repo/puppet-eduardo/puppet/ here you have the permissions you want and the developers are able to push/pull anytime/anywhere. And when all changes are ok just deploy them in the /etc/puppet cd /etc/puppet && sudo git pull This can be seen in the link I posted. Best regards -------------------------------------------------------------------------------------- Juan Sierra Pons j...@elsotanillo.net Linux User Registered: #257202 http://www.elsotanillo.net GPG key = 0xA110F4FE Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE -------------------------------------------------------------------------------------- -- 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.