Skip to content

Instantly share code, notes, and snippets.

@wwwtyro
Last active February 7, 2018 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wwwtyro/77d79e971f8c79590ea47e87b4875d8a to your computer and use it in GitHub Desktop.
Save wwwtyro/77d79e971f8c79590ea47e87b4875d8a to your computer and use it in GitHub Desktop.
$ cat config.yaml
cloudinit-userdata: |
packages:
- ack-grep
$ juju model-config config.yaml
$ juju model-config cloudinit-userdata
packages:
- ack-grep
# Afterwards, on a new machine:
ubuntu@ip-172-31-60-70:~$ ack
The program 'ack' is currently not installed. You can install it by typing:
sudo apt install ack-grep
@hmlanigan
Copy link

heather@ubuntu:~$ cat /ryebot-config.yaml
cloudinit-userdata: |
packages:
- ack-grep
heather@ubuntu:
$ juju model-config cloudinit-userdata
packages:

  • ack-grep

heather@ubuntu:$ juju add-machine
heather@ubuntu:
$ juju ssh 0
ubuntu@juju-a21dfc-0:~$ which ack-grep
/usr/bin/ack-grep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment