For Juju 1.23 and earlier you need to install the juju-wait plugin from ppa:stub/juju, or implement its algorithm yourself (lp:juju-wait). Every other approach has been tried before and fails.
For Juju 1.24, you should be able to use the newer agent statuses.
For Juju 1.23 and earlier you need to install the juju-wait plugin from ppa:stub/juju, or implement its algorithm yourself (lp:juju-wait). Every other approach has been tried before and fails.
For Juju 1.24, you should be able to use the newer agent statuses.