Don't know much about BZR ... will answer as if it were a git / github question
- If you use github, use deploy keys (readonly access, easily revokable access), not the developer key.
- Can you manage the key by copying them to ~ / .ssh and setting up ssh to use it?
file { '/user/home/.ssh/id_rsa-github-mycompany' : ... # access right .... }
vcsrepo { "/path/to/repo": ... require => File[ '/user/home/.ssh'] }
you may need tweek also .ssh / config to use this authentication file and change the git repository host name
Host github-mycompany-project HostName github.com User git PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa-github-mycompany IdentitiesOnly yes
Another option uses exec and git_ssh_wrapper instead of vcsrepo?
mestachs
source share