Thank you for this idea. I tried it out. But it does not work, the second 'realize_ssh_key' declaration will not be executed. I think that, in the end, you end up calling for the realization of a resources wich has already been realized.
–
skizoMar 22 '13 at 8:57

You want to create two different resources, not to realize a resource twice. For that simply give it another name in the first define ` @ssh_authorized_key { "${name}-${user}":`
–
jonhattanAug 22 '14 at 11:10