Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## site.pp
- ...
- include "ssh_authorized_key"
- ...
- ## templates.pp
- class baseclass {
- include ssh_authorized_key::adminkeys
- ....
- }
- ## ../modules/ssh_authorized_key/manifests/adminkeys.pp
- class ssh_authorized_key::adminkeys {
- realize(
- Ssh_authorized_key["drmikecrowe"]
- )
- }
- ## ../modules/ssh_authorized_key/manifests/init.pp
- class ssh_authorized_key {
- include ssh_authorized_key::adminkeys
- }
- ## ../modules/ssh_authorized_key/manifests/virtual.pp
- class ssh_authorized_key::virtual {
- @ssh_authorized_key { "drmikecrowe":
- ensure => "present",
- key => "ssh-dss [[REALLYBIGSTRING]]== drmikecrowe@drmikecrowe",
- type => ssh-dss,
- target => "/home/drmikecrowe/.ssh/authorized_keys2"
- }
- }
Add Comment
Please, Sign In to add comment