Skip to content

Instantly share code, notes, and snippets.

@c4m4
Created August 14, 2017 19:40
Show Gist options
  • Save c4m4/46547e06a4f7881d2b17710a8992744b to your computer and use it in GitHub Desktop.
Save c4m4/46547e06a4f7881d2b17710a8992744b to your computer and use it in GitHub Desktop.
sshkey { "ssh-rsa":
ensure => present,
type => rsa,
key => $::sshrsakey,
target => '/tmp/target',
}
root@wheezy:~# cat /tmp/target
# HEADER: This file was autogenerated at 2017-08-10 14:23:56 +0000
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
ssh-rsa ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3bR+hnKeG90jcYyC/LxRnMEZreJx5MaRAMGVv0tx4Rtcj5u8JydePPZjLm8eZ5/7+cS+xdGTNOWwKqboMXA3GmLMiUxFFGmjJlMcKngkrCT54x5yi1/4QFIQYvuiBBo9K6AQbAjHJFsoATpshtjQ80qT7tkqXmQwlWO6wkZaTcAUzyFY7cfB9wt1a7LtmS7/xz1WbKWS5/6TxFoNzyA8EEANrNGzxJeQXlr1Y89o2hxpmHUKWKXu4emw07sXHio3DusxgSwEpHriCsAis3rsS7wcd990uY5oPcqqphXr0vc9t2MNZmCLY0rGbnTmewNt3Vx4JBzEcWfnJHbi/KUc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment