Skip to content

Commit 263b8ee

Browse files
author
Marcus Sorensen
committed
Summary: Adding utility to make system vm maintenance easier for admins
Detail: new script called cloud-ssh replaces the long 'ssh -i /root/.ssh/id_rsa.cloud -p 3922 root@169.254.0.12' users can now just run 'cloud-ssh 169.254.0.12'. Also adds it to deb and rpm builds. Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1353086232 -0700
1 parent fa1696e commit 263b8ee

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

agent/bindir/cloud-ssh.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
19+
ssh -i /root/.ssh/id_rsa.cloud -p 3922 root@$1

cloud.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ fi
575575
%config(noreplace) %{_sysconfdir}/%{name}/agent/log4j-%{name}.xml
576576
%attr(0755,root,root) %{_initrddir}/%{name}-agent
577577
%attr(0755,root,root) %{_bindir}/%{name}-setup-agent
578+
%attr(0755,root,root) %{_bindir}/%{name}-ssh
578579
%dir %attr(0770,root,root) %{_localstatedir}/log/%{name}/agent
579580
%doc LICENSE
580581
%doc NOTICE

debian/cloud-agent.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
/etc/cloud/agent/log4j-cloud.xml
2222
/etc/init.d/cloud-agent
2323
/usr/bin/cloud-setup-agent
24+
/usr/bin/cloud-ssh
2425
/var/log/cloud/agent

0 commit comments

Comments
 (0)