file {'VaultUsersLink':
path => "C:/VaultWorkspace/VaultUsers.lnk",
require => File['VaultWorkspace'],
ensure => link,
target => "C:/ProgramData/PuppetLabs/facter/facts.d/inventorusers.txt",
owner => 'SYSTEM',
group => 'Users',
mode => 0776,
}
Seems like it should make a shortcut, and it does make a 0 byte file named VaultUsers.lnk, but doesn't fill in the target. Am I missing something?
Best Answer
A link is not a Windows shortcut. A link is symbolic link. http://en.wikipedia.org/wiki/Symbolic_link. Does the file
inventorusers.txt
also have zero bytes?