~james-page/ubuntu-openstack-ci/drop-tox-from-slave-config

« back to all changes in this revision

Viewing changes to operate/deprecated/924-check-juju-enviros.sh

  • Committer: Ryan Beisner
  • Date: 2018-12-13 21:10:41 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: ryan.beisner@canonical.com-20181213211041-5xw4jn4u17ujbv6o
Actually remove the deprecated things

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash -e
2
 
echo $0
3
 
 
4
 
# look at juju enviro yamls
5
 
 
6
 
# Get jenkins units
7
 
units=$(juju status --format=yaml | egrep "osci[-]?(slave|lab|task)?/[0-9]{1,10}:" \
8
 
  | cut -d ":" -f 1 | sed 's/^ *//')
9
 
 
10
 
for unit in $units; do
11
 
  echo "${unit}:"
12
 
  juju ssh $unit "sudo cat '/var/lib/jenkins/.juju/environments.yaml'"
13
 
done
14
 
 
15