Add user ssh config
Add an ssh config with shortcut names to the main LiteCel
This commit is contained in:
parent
a0543bf893
commit
e7ea6b15f0
2 changed files with 17 additions and 1 deletions
|
@ -21,5 +21,13 @@ class rhizo_base::users {
|
|||
password => $rhizo::password_hash,
|
||||
uid => '1000',
|
||||
purge_ssh_keys => true
|
||||
}
|
||||
}
|
||||
|
||||
file { '/home/rhizomatica/.ssh/config':
|
||||
content => template('rhizo_base/ssh_user_config.erb'),
|
||||
owner => 'rhizomatica',
|
||||
group => 'rhizomatica',
|
||||
mode => '0600'
|
||||
}
|
||||
|
||||
}
|
8
modules/rhizo_base/templates/ssh_user_config.erb
Normal file
8
modules/rhizo_base/templates/ssh_user_config.erb
Normal file
|
@ -0,0 +1,8 @@
|
|||
Host lc1
|
||||
Hostname 172.16.0.11
|
||||
User root
|
||||
|
||||
Host lc2
|
||||
Hostname 172.16.0.12
|
||||
User root
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue