Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ jobs:
# NOTE: vagrant ssh -c exists with the same exit code as command which is ran in the VM
- name: Verify Software Versions And Running Processes
run: |
vagrant ssh -c "python3 --version ; dpkg -l | grep mongodb-org"
vagrant ssh -c "python3 --version ; dpkg -l | grep mongodb-org ; dpkg -l | grep redis-server"
vagrant ssh -c "python3 --version | grep ${{ matrix.python_version }}"
vagrant ssh -c "dpkg -l | grep mongodb-org | grep ${{ matrix.mongodb_version }}"
vagrant ssh -c "ps aux | grep mongodb | grep -v grep"
vagrant ssh -c "ps aux | grep rabbitmq | grep -v grep"
vagrant ssh -c "ps aux | grep redis-server | grep -v grep"
vagrant ssh -c "sudo ls -la /home/stanley/.ssh"
vagrant ssh -c "sudo ls -la /home/vagrant/.ssh"
vagrant ssh -c "sudo ls -la /home/stanley/.ssh/authorized_keys"
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,12 @@ If you want to enable ansible debug logging for the provision step, you can do t
```bash
ANSIBLE_DEBUG=1 vagrant provision
```

### Installed Versions of Software

Right now the following versions of software are installed during provisioning:

* Python 3.6
* MongoDB 4.0
* Redis 6.0
* Nginx 1.10
1 change: 0 additions & 1 deletion ansible/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
- hosts: all
roles:
- st2_dev

5 changes: 5 additions & 0 deletions ansible/roles/st2_dev/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@
systemd:
name: nginx
state: restarted
- name: restart redis
become: yes
systemd:
name: redis-server
state: restarted
1 change: 1 addition & 0 deletions ansible/roles/st2_dev/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
- include_tasks: system.yml
- include_tasks: python.yml
- include_tasks: mongo.yml
- include_tasks: redis.yml
- include_tasks: nginx.yml
- include_tasks: repos.yml
21 changes: 21 additions & 0 deletions ansible/roles/st2_dev/tasks/redis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: Add source repository into sources list
become: true
ansible.builtin.apt_repository:
update_cache: true
repo: ppa:chris-lea/redis-server
state: present
- name: Install apt package
become: yes
apt:
name:
- redis-server
state: latest
update_cache: yes
notify:
- restart redis
- name: Enable Redis service
become: yes
systemd:
name: redis-server.service
enabled: yes