Hi Is it possible to create a link like: .bashrc -> .profile without absolute path and without using an exec? BR Rene --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rene wrote:> Hi > > Is it possible to create a link like: > .bashrc -> .profile > > without absolute path and without using an exec? > > BR Rene > > >I have definitions for my users that include a resource for bashrc. If you were doing it this way, you could ensure that something like this exists inside the definition: file { "/home/${username}/.profile": ensure => "/home/${username}/.bashrc", require => [ File["/home/${username}/.bashrc"], User["${username}"] ]; } --~--~---------~--~----~------------~-------~--~----~ 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 have in /etc/skel .bashrc -> .profile When I add the User with puppet I have only .profile in the users home directory. But If I use useradd -m then I have the link. Does anybody know what my problem ist? I use managehome => true in the configuration. BR, Rene On Jun 14, 5:57 pm, Joe McDonagh <joseph.e.mcdon...@gmail.com> wrote:> Rene wrote: > > Hi > > > Is it possible to create a link like: > > .bashrc -> .profile > > > without absolute path and without using an exec? > > > BR Rene > > I have definitions for my users that include a resource for bashrc. If > you were doing it this way, you could ensure that something like this > exists inside the definition: > > file { > "/home/${username}/.profile": > ensure => "/home/${username}/.bashrc", > require => [ File["/home/${username}/.bashrc"], User["${username}"] ]; > > }--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Are you sure that /etc/skel was populated before the users were added from puppet? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
yes, because I removed the user and installed it via puppet. I also checked if the link is in /etc/skel.... On Jun 15, 3:17 pm, Joe McDonagh <joseph.e.mcdon...@gmail.com> wrote:> Are you sure that /etc/skel was populated before the users were added > from puppet?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---