Allen
2012-08-08 22:56:42 UTC
Is there a way to symbolically link files from one directory into another
inside of Puppet? I did this:
"/opt/openerp/server/openerp/addons/":
owner => "openerp",
group => "admin",
links => "manage",
ensure => directory,
recurse => true,
mode => 775,
target => "/opt/openerp/web/addons/",
require => Vcsrepo["/opt/openerp/server", "/opt/openerp/web"];
But it seems it actually copies them over instead of symbolically linking
them. What I usuallly do, when I do it by hand is just run this command:
"ln -s /opt/openerp/web/addons/*" while inside of the
/opt/openerp/server/openerp/addons/ folder. Also, is there a way I can do
this to multiple directories? I need to link from another couple of places
into this directory and these are all from repositories so I'd rather
symbolically link them so in case they get updated, we can have them
already updated inside of the system inside of that folder.
inside of Puppet? I did this:
"/opt/openerp/server/openerp/addons/":
owner => "openerp",
group => "admin",
links => "manage",
ensure => directory,
recurse => true,
mode => 775,
target => "/opt/openerp/web/addons/",
require => Vcsrepo["/opt/openerp/server", "/opt/openerp/web"];
But it seems it actually copies them over instead of symbolically linking
them. What I usuallly do, when I do it by hand is just run this command:
"ln -s /opt/openerp/web/addons/*" while inside of the
/opt/openerp/server/openerp/addons/ folder. Also, is there a way I can do
this to multiple directories? I need to link from another couple of places
into this directory and these are all from repositories so I'd rather
symbolically link them so in case they get updated, we can have them
already updated inside of the system inside of that folder.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gYGzBlA-9GUJ.
To post to this group, send email to puppet-***@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gYGzBlA-9GUJ.
To post to this group, send email to puppet-***@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.