Add user ssh config

Add an ssh config with shortcut names to the main LiteCel
This commit is contained in:
Monocots 2019-09-06 12:00:43 +00:00
parent a0543bf893
commit e7ea6b15f0
2 changed files with 17 additions and 1 deletions

View file

@ -21,5 +21,13 @@ class rhizo_base::users {
password => $rhizo::password_hash, password => $rhizo::password_hash,
uid => '1000', uid => '1000',
purge_ssh_keys => true purge_ssh_keys => true
}
} }
file { '/home/rhizomatica/.ssh/config':
content => template('rhizo_base/ssh_user_config.erb'),
owner => 'rhizomatica',
group => 'rhizomatica',
mode => '0600'
}
}

View file

@ -0,0 +1,8 @@
Host lc1
Hostname 172.16.0.11
User root
Host lc2
Hostname 172.16.0.12
User root