Created
May 15, 2014 18:20
-
-
Save spuder/179f8fdce77b3f31681b to your computer and use it in GitHub Desktop.
puppet recursively create symbolic links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.puppetcookbook.com/posts/creating-a-directory-tree.html | |
I"m trying to create a whole bunch of symbolic ilnks at once. They all point to the same script (it is overloaded) | |
$native_links = [ | |
'query.workload', | |
'query.resource', | |
'job.start', | |
'job.modify', | |
'job.cancel', | |
'job.suspend', | |
'job.resume', | |
'job.requeue', | |
'job.migrate', | |
'user.modjobs', | |
'user.modnodes', | |
'user.reinit', | |
'user.mknodes', | |
'user.appendnodes', | |
'system.modify', | |
'node.power', | |
'node.modify', | |
'resource.create'] | |
file { "${native_install_location}/${native_links}" : | |
ensure => link, | |
target => "${native_install_location}/nativerm.pl", | |
} | |
Yet, I find that it just creates one symbolic link with a jarbled name | |
$ls | |
lrwxrwxrwx 1 root root 30 May 15 18:15 query.workloadquery.resourcejob.startjob.modifyjob.canceljob.suspendjob.resumejob.requeuejob.migrateuser.modjobsuser.modnodesuser.reinituser.mknodesuser.appendnodessystem.modifynode.powernode.modifyresource.create -> /opt/moab/nativerm/nativerm.pl | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can install multiple packages simultaneously, you can also create multiple directories, how would you create multiple symbolic links?