module for "ln -s /usr/local/tools /usr/tools"

21 views
Skip to first unread message

rksr...@gmail.com

unread,
Aug 18, 2015, 2:16:07 AM8/18/15
to Example42 Puppet Modules
Please let me know the module for the attached or for " ln -s /usr/local/tools usr/tools"
doc1.txt

Martin Alfke

unread,
Aug 18, 2015, 3:59:09 AM8/18/15
to example42-pu...@googlegroups.com
Hi,

On 18 Aug 2015, at 08:16, rksr...@gmail.com wrote:

> Please let me know the module for the attached or for " ln -s /usr/local/tools usr/tools”

there is no module for symbolic links.
You want to use the file resource type instead:

file { ‘/usr/tools’:
ensure => link,
target => ‘/usr/local/tools’,
}

hth,
Martin

rksr...@gmail.com

unread,
Aug 18, 2015, 9:18:09 AM8/18/15
to Example42 Puppet Modules


On Monday, August 17, 2015 at 11:16:07 PM UTC-7, rksr...@gmail.com wrote:
Please let me know the module for the attached or for " ln -s /usr/local/tools usr/tools"

Here we are linking the directory to the file  and  may give the error. so we have to use force option.

file { '/usr/local/tools':
    ensure => 'link',
    target => '/usr/tools',
    force => true,
  }
Reply all
Reply to author
Forward
0 new messages