Skip to content

Commit

Permalink
docs: make instructions for Ansible consistent here and there
Browse files Browse the repository at this point in the history
whentojump committed Jul 25, 2023
1 parent f909777 commit 508fc0d
Showing 2 changed files with 19 additions and 6 deletions.
17 changes: 11 additions & 6 deletions scripts/ansible/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
# Ansible playbook to automatically configure environment for Acto to run a baremetal machine
# Ansible playbook to automatically configure environment for Acto to run on a baremetal machine

To run the script, you first need an `ansible_hosts` file. Each line in the file should contain
a worker in your cluster. See https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html
for details.

An example:

```ini
c220g5-110417.wisc.cloudlab.us ansible_connection=ssh ansible_user=tylergu ansible_port=22
c220g5-110418.wisc.cloudlab.us ansible_connection=ssh ansible_user=tylergu ansible_port=22
```

If you haven't installed `ansible playbook` on your control node, run
If you haven't installed `ansible-playbook` on your control node, run

```sh
pip3 install ansible
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install community.general
```

Then just run
```
bash configure.sh

Then just run

```sh
ansible-playbook -i ansible_hosts configure.yaml
```

and the proper environment will be setup on the workers.
8 changes: 8 additions & 0 deletions scripts/ansible/configure.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

cat << EOF
Warning: This configure.sh is being deprecated. Run the following instead:
ansible-playbook -i ansible_hosts configure.yaml
EOF

ansible-playbook tmpfs.yaml -i ansible_hosts
ansible-playbook go.yaml -i ansible_hosts
ansible-playbook docker.yaml -i ansible_hosts

0 comments on commit 508fc0d

Please sign in to comment.