Use the correct user to ssh to the BTS

This commit is contained in:
Monocots 2020-05-19 23:00:32 +00:00
parent f002e5fe56
commit 149014be19
2 changed files with 2 additions and 1 deletions

View file

@ -285,6 +285,7 @@ schedule { 'repo':
group => 'root', group => 'root',
} }
$bts_user = { 'UmSite' => 'fairwaves', '2050M' => 'root', '2050S' => 'root' }
file { "/etc/profile.d/rccn-functions.sh": file { "/etc/profile.d/rccn-functions.sh":
ensure => present, ensure => present,
content => template('rhizo_base/rccn-functions.sh.erb'), content => template('rhizo_base/rccn-functions.sh.erb'),

View file

@ -83,7 +83,7 @@ check_trx() {
<% @bts.each_with_index do |bts, index| -%> <% @bts.each_with_index do |bts, index| -%>
b<%= index %>() { b<%= index %>() {
ssh -o StrictHostKeyChecking=no root@<%= bts["ip"] %> ssh -o StrictHostKeyChecking=no <%= @bts_user[bts["model"]] %>@<%= bts["ip"] %>
} }
<% end -%> <% end -%>