Skip to content

Commit

Permalink
Merge pull request #5 from AlmaLinux/fix-deploy
Browse files Browse the repository at this point in the history
Refined build system dev deploy
  • Loading branch information
Korulag authored Nov 29, 2023
2 parents d5c81e1 + f68d282 commit cdf4a42
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 50 deletions.
16 changes: 2 additions & 14 deletions roles/dev_deploy/templates/alts_config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,15 @@ ssl_config:
security_certificate: ""
broker_ca_certificates: ""
broker_config:
use_ssl: false
rabbitmq_host: "rabbitmq-ts"
rabbitmq_port: 5672
rabbitmq_ssl_port: 5671
rabbitmq_user: "{{ rabbitmq_user }}"
rabbitmq_password: "{{ rabbitmq_pass }}"
rabbitmq_vhost: "{{ rabbitmq_vhost }}"
results_backend_config:
s3_access_key_id:
s3_secret_access_key:
s3_bucket:
s3_base_path: 'celery_result_backend/'
s3_region:
s3_endpoint_url:
azureblockblob_container_name: ""
azureblockblob_base_path: ""
# deprecated
azure_connection_string: "blockblob://"
result_backend: "{{ result_backend }}"
redis_host: "{{ container_name_prefix }}_redis_1"
redis_db_number: 1
task_default_queue: "default"
task_acks_late: true
task_track_started: true
Expand All @@ -36,5 +26,3 @@ logs_uploader_config:
pulp_host: "http://{{ container_name_prefix }}_pulp_1"
pulp_user: "{{ pulp_user }}"
pulp_password: "{{ pulp_password }}"
# deprecated
azure_logs_container: "testsys-mqdata"
19 changes: 8 additions & 11 deletions roles/dev_deploy/templates/build_node.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ jwt_token: "{{ albs_jwt_token }}"
pulp_host: "http://pulp"
pulp_user: "{{ pulp_user }}"
pulp_password: "{{ pulp_password }}"
{% if immudb_username is defined %}
immudb_username: {{ immudb_username }}
{% if immudb_address is defined and immudb_address %}
immudb_address: "{{ immudb_address }}"
{% endif %}
{% if immudb_password is defined %}
immudb_password: {{ immudb_password }}
{% if immudb_database is defined and immudb_database %}
immudb_database: "{{ immudb_database }}"
{% endif %}
{% if immudb_database is defined %}
immudb_database: {{ immudb_database }}
{% if immudb_username is defined and immudb_username %}
immudb_username: "{{ immudb_username }}"
{% endif %}
{% if immudb_address is defined %}
immudb_address: {{ immudb_address }}
{% endif %}
{% if immudb_public_key_file is defined %}
immudb_public_key_file: {{ immudb_public_key_file }}
{% if immudb_password is defined and immudb_password %}
immudb_password: "{{ immudb_password }}"
{% endif %}
2 changes: 1 addition & 1 deletion roles/separate_build_node/tasks/create_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: Create service user
user:
name: "{{ service_user }}"
groups: wheel
groups: wheel, mock
append: yes
state: present
create_home: yes
Expand Down
3 changes: 2 additions & 1 deletion roles/separate_build_node/tasks/dnf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---

- name: Update system packages
dnf:
name: "*"
Expand Down Expand Up @@ -31,6 +32,6 @@
enablerepo:
- "epel"
- "buildnode"
- "powertools"
- "{{ powertools_repository_name }}"
update_cache: yes
...
24 changes: 12 additions & 12 deletions roles/separate_build_node/templates/build_node.j2
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
master_url: "{{ albs_api_url }}"
base_arch: "{{ machine_arch }}"
threads_count: {{ threads_count | default(4) }}
jwt_token: "{{ albs_jwt_token }}"
pulp_host: "{{ pulp_host }}"
pulp_user: "{{ pulp_user }}"
pulp_password: "{{ pulp_password }}"
{% if immudb_username is defined %}
immudb_username: {{ immudb_username }}
{% if immudb_address is defined and immudb_address %}
immudb_address: "{{ immudb_address }}"
{% endif %}
{% if immudb_password is defined %}
immudb_password: {{ immudb_password }}
{% if immudb_database is defined and immudb_database %}
immudb_database: "{{ immudb_database }}"
{% endif %}
{% if immudb_database is defined %}
immudb_database: {{ immudb_database }}
{% endif %}
{% if immudb_address is defined %}
immudb_address: {{ immudb_address }}
{% endif %}
{% if immudb_public_key_file is defined %}
immudb_public_key_file: {{ immudb_public_key_file }}
{% if immudb_username is defined and immudb_username %}
immudb_username: "{{ immudb_username }}"
{% endif %}
{% if immudb_password is defined and immudb_password %}
immudb_password: "{{ immudb_password }}"
{% endif %}
19 changes: 8 additions & 11 deletions roles/separate_sign_node/templates/sign_node.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ development_mode: true
dev_pgp_key_password: "{{ gpg_default_password }}"
master_url: "http://{{ albs_address }}:8080/api/v1/"
ws_master_url: "ws://{{ albs_address }}:8080/api/v1/"
{% if immudb_username is defined %}
immudb_username: {{ immudb_username }}
{% if immudb_address is defined and immudb_address %}
immudb_address: "{{ immudb_address }}"
{% endif %}
{% if immudb_password is defined %}
immudb_password: {{ immudb_password }}
{% if immudb_database is defined and immudb_database %}
immudb_database: "{{ immudb_database }}"
{% endif %}
{% if immudb_database is defined %}
immudb_database: {{ immudb_database }}
{% if immudb_username is defined and immudb_username %}
immudb_username: "{{ immudb_username }}"
{% endif %}
{% if immudb_address is defined %}
immudb_address: {{ immudb_address }}
{% endif %}
{% if immudb_public_key_file is defined %}
immudb_public_key_file: {{ immudb_public_key_file }}
{% if immudb_password is defined and immudb_password %}
immudb_password: "{{ immudb_password }}"
{% endif %}

0 comments on commit cdf4a42

Please sign in to comment.