Commit 681f4eb3 authored by Robert Pilstål's avatar Robert Pilstål

Updated README do support the two demos within

parent 027e7cbd
......@@ -4,13 +4,15 @@
## Usage
### App deployment demo
- First edit path to your local (bare) repository with your application in `roles/app/defaults/main.yaml`. If you have yours online (which you should) you can edit the `app` role to mimic the deployment procedure used in Johan's original.
- Make sure that you have ssh-keys setup both locally, and in `dust` dash
- https://wiki.archlinux.org/index.php/SSH_keys#Generating_an_SSH_key_pair
- https://wiki.archlinux.org/index.php/OpenSSH#Client_usage
- https://dust.ludd.ltu.se/cloud/public-key
- Then boot a VM at http://dust.ludd.ltu.se ; noting the port for `ssh` access.
- Edit `hosts` to reflect the port, and your login-name on `dust`.
- Edit `hosts` to reflect the port, and your login-name on `dust`. Set the host under `app` group.
Afterh those steps, you should be able to fully configure your host with;
......@@ -30,3 +32,12 @@ ssh -p ${DUST_SSH_PORT} -L ${LOCAL_NODE_PORT}:localhost:${REMOTE_NODE_PORT} ${D
```
In the above example, then surf to http://localhost:4000 to enjoy your app.
### `systemd-nspawn` verdaccio deployment example
Set your host under the `nspawn` group in `hosts` file. Then run
```sh
ansible-playbook -i hosts site.yaml --tags nspawn
```
After it has finished, you can forward the `4873` port from the remote using the `m7011e_demo_port_forwards.sh` script, and access your `verdaccio` service at [http://localhost:4873](http://localhost:4873)
......@@ -4,7 +4,7 @@
[dbservers]
[testing]
[app]
[nspawn]
130.240.207.20:26050 ansible_user=robpil
......@@ -16,7 +16,7 @@
- nodejs
- app
- hosts: testing
- hosts: app
become: yes
roles:
- mongodb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment