Use the correct user to ssh to the BTS
This commit is contained in:
parent
f002e5fe56
commit
149014be19
2 changed files with 2 additions and 1 deletions
|
@ -285,6 +285,7 @@ schedule { 'repo':
|
|||
group => 'root',
|
||||
}
|
||||
|
||||
$bts_user = { 'UmSite' => 'fairwaves', '2050M' => 'root', '2050S' => 'root' }
|
||||
file { "/etc/profile.d/rccn-functions.sh":
|
||||
ensure => present,
|
||||
content => template('rhizo_base/rccn-functions.sh.erb'),
|
||||
|
|
|
@ -83,7 +83,7 @@ check_trx() {
|
|||
|
||||
<% @bts.each_with_index do |bts, index| -%>
|
||||
b<%= index %>() {
|
||||
ssh -o StrictHostKeyChecking=no root@<%= bts["ip"] %>
|
||||
ssh -o StrictHostKeyChecking=no <%= @bts_user[bts["model"]] %>@<%= bts["ip"] %>
|
||||
}
|
||||
<% end -%>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue