Skip to content

Commit c2e229e

Browse files
committed
ansible update [WIP]
1 parent a5b9fd6 commit c2e229e

7 files changed

+21
-5
lines changed

ansible/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ After registering the variable, add it to the debug group.
9090
var: git_installation
9191
```
9292

93+
## Tests
94+
The following table details the last time ansible was tested and worked correctly for different setups.
95+
96+
| Setup | Last date tested |
97+
|------------------------------|------------------|
98+
| Single server, Ubuntu 22.04. | 2025-02-12 ✔ |
99+
| Two servers, Ubuntu 20.04. | 2024-04-23 ✔ |
100+
101+
93102
## Author & Maintainer
94103

95104
Kim Hammar <[email protected]>

ansible/ansible.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ inventory = inventory
33
private_key_file = ~/.ssh/id_rsa
44
allow_world_readable_tmpfiles=true
55
remote_user = kim
6+
command_warnings = False

ansible/group_vars/all/variables.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
user: "kim"
22
csle_git_repo_url: "https://github.com/Limmen/csle"
3-
leader_ip: "34.142.42.219"
4-
leader_public_ip: "34.142.42.219"
3+
leader_ip: "34.70.84.19"
4+
leader_public_ip: "34.70.84.19"
55
nginx_content_name: "nginx_configuration_content.txt"
66
web_port: 7777
77
postgres_version: "15"
@@ -57,15 +57,15 @@ csle_config:
5757
postgresql_log_dir: "/var/log/postgresql/"
5858
nginx_log_dir: "/var/log/nginx/"
5959
default_log_dir: "/tmp/csle/"
60-
metastore_ip: "34.142.42.219"
60+
metastore_ip: "34.70.84.19"
6161
metastore_user: "csle"
6262
metastore_password: "csle"
6363
metastore_database_name: "csle"
6464
localhost: false
6565
version: "0.8.0"
6666
cluster_config:
6767
cluster_nodes:
68-
- ip: "34.88.71.96"
68+
- ip: "34.70.84.19"
6969
leader: true
7070
cpus: 2
7171
gpus: 0

ansible/install_metastore.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
register: postgresql_installed
1010
ignore_errors: true
1111
no_log: true
12+
failed_when: false
1213

1314
- name: Download PostgreSQL
1415
ansible.builtin.get_url:
@@ -131,6 +132,7 @@
131132
query: "CREATE DATABASE csle"
132133
ignore_errors: true
133134
no_log: true
135+
failed_when: false
134136

135137
- name: Setup database privileges
136138
become: yes
@@ -143,6 +145,7 @@
143145
path: /var/lib/postgresql/create_db.sql
144146
ignore_errors: true
145147
no_log: true
148+
failed_when: false
146149

147150
- name: Add citus extension
148151
become: yes
@@ -156,6 +159,7 @@
156159
version: latest
157160
ignore_errors: true
158161
no_log: true
162+
failed_when: false
159163

160164
- name: Change mode and ownership of the /var/log/postgresql
161165
file:

ansible/install_setup.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
register: anaconda_installed
3636
ignore_errors: true
3737
no_log: true
38+
failed_when: false
3839

3940
- name: Download Anaconda
4041
ansible.builtin.get_url:

ansible/install_simulation_system.yml

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
args:
4949
executable: /bin/bash
5050
ignore_errors: true
51+
no_log: true
5152
when: not python_libraries_installed
5253

5354
- name: Modify constants.py file

ansible/inventory

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[leader]
2-
34.88.71.96
2+
34.70.84.19
33

44
[worker]

0 commit comments

Comments
 (0)