From 665a2f2f071edc4101eed40ebbfc2d1b2b041f1e Mon Sep 17 00:00:00 2001 From: Justin Kilpatrick Date: Sat, 16 Nov 2024 09:57:32 -0500 Subject: [PATCH] Fix auto-deploy --- althea-info-server/src/main.rs | 2 +- scripts/hosts | 2 +- scripts/roles/install-deps/tasks/main.yml | 3 ++- ...info-server.service.j2 => althea-info-server.service.j2} | 6 +++--- scripts/roles/setup-nginx/defaults/main.yml | 4 ++-- scripts/roles/setup-nginx/tasks/main.yml | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) rename scripts/roles/setup-info-server/templates/{gravity-info-server.service.j2 => althea-info-server.service.j2} (54%) diff --git a/althea-info-server/src/main.rs b/althea-info-server/src/main.rs index da5d70f..53b27fc 100644 --- a/althea-info-server/src/main.rs +++ b/althea-info-server/src/main.rs @@ -9,7 +9,7 @@ const SSL: bool = !DEVELOPMENT; const DOMAIN: &str = if cfg!(test) || DEVELOPMENT { "localhost" } else { - "info.althea.link" + "info.althea.zone" }; /// The backend RPC port for the info server fucntions implemented in this repo const INFO_SERVER_PORT: u16 = 9000; diff --git a/scripts/hosts b/scripts/hosts index 6003763..3a11a60 100644 --- a/scripts/hosts +++ b/scripts/hosts @@ -1,2 +1,2 @@ [gravity_info_server] -info.gravitychain.io +info.althea.zone diff --git a/scripts/roles/install-deps/tasks/main.yml b/scripts/roles/install-deps/tasks/main.yml index 700821d..5f4d7e3 100644 --- a/scripts/roles/install-deps/tasks/main.yml +++ b/scripts/roles/install-deps/tasks/main.yml @@ -5,6 +5,7 @@ apt: name: "{{debian_deps}}" state: present + update_cache: true when: ansible_distribution == 'Debian' become: true @@ -12,6 +13,7 @@ apt: name: "{{ubuntu_deps}}" state: present + update_cache: true when: ansible_distribution == 'Ubuntu' become: true @@ -28,7 +30,6 @@ state: present when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' become: true - ignore_errors: yes - name: Install Archlinux Deps pacman: diff --git a/scripts/roles/setup-info-server/templates/gravity-info-server.service.j2 b/scripts/roles/setup-info-server/templates/althea-info-server.service.j2 similarity index 54% rename from scripts/roles/setup-info-server/templates/gravity-info-server.service.j2 rename to scripts/roles/setup-info-server/templates/althea-info-server.service.j2 index 98f068b..b89171e 100644 --- a/scripts/roles/setup-info-server/templates/gravity-info-server.service.j2 +++ b/scripts/roles/setup-info-server/templates/althea-info-server.service.j2 @@ -1,6 +1,6 @@ -# This is a systemd service for the Gravity Bridge info server baackend +# This is a systemd service for the althea info server baackend [Unit] -Description="Gravity Info Server" +Description="Althea Info Server" [Service] Type=simple @@ -9,7 +9,7 @@ LimitNOFILE=65536 Restart=always Environment="RUST_LOG=INFO" Environment="RUST_BACKTRACE=FULL" -ExecStart=/usr/bin/gravity-info-server +ExecStart=/usr/bin/althea-info-server [Install] WantedBy=default.target diff --git a/scripts/roles/setup-nginx/defaults/main.yml b/scripts/roles/setup-nginx/defaults/main.yml index e27bb5c..f16cd59 100644 --- a/scripts/roles/setup-nginx/defaults/main.yml +++ b/scripts/roles/setup-nginx/defaults/main.yml @@ -1,2 +1,2 @@ -domain: "info.gravitychain.io" -host_dir: "gravity-info-dash" \ No newline at end of file +domain: "info.althea.zone" +host_dir: "althea-info-dash" \ No newline at end of file diff --git a/scripts/roles/setup-nginx/tasks/main.yml b/scripts/roles/setup-nginx/tasks/main.yml index 290aa10..5b548da 100644 --- a/scripts/roles/setup-nginx/tasks/main.yml +++ b/scripts/roles/setup-nginx/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: Copy Gravity Info site +- name: Copy Althea Info site synchronize: src: "{{playbook_dir}}/{{host_dir}}/" dest: /usr/share/nginx/{{host_dir}}/