Skip to content

Commit

Permalink
Merge pull request #562 from ARGOeu/devel
Browse files Browse the repository at this point in the history
Version 1.0.0
  • Loading branch information
themiszamani authored Nov 8, 2023
2 parents 3093658 + 8bafd28 commit 5e60346
Show file tree
Hide file tree
Showing 219 changed files with 7,794 additions and 844 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ setup.sh
.*.sw?
roles/has_certificate/files/*.key
*.retry

# IntelliJ
.idea
*.ipr
*.iml
*.iws
49 changes: 49 additions & 0 deletions accounting-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---


- hosts: all
become: yes
roles:
- { role: commons, task: timezone, tags: timezone }
- { role: commons, task: repos, tags: repos }
- { role: commons, task: basic_utils, tags: basic_utils }
- { role: commons, task: users, tags: groups_users_sshKeys }
- { role: commons, task: sshd, tags: sshd }
- { role: commons, task: firewall, tags: firewall }
- { role: commons, task: fail2ban, tags: fail2ban_conf }
- { role: commons, task: cert, tags: cert }
- { role: commons, task: rsyslog, tags: rsyslog_conf }
- { role: nickhammond.logrotate, tags: logrotate }
#- { role: commons, task: is_monitored, tags: monitored }
#- { role: commons, task: backupamsmongo, tags: rsyslog_conf }

- hosts: mongo
become: yes
roles:
- { role: mongodb, task: main, tags: mongodb }

- hosts: apache
become: yes
roles:
- { role: commons, task: cert, tags: apache_certs }
- { role: apache, task: main, tags: apache_install }

- hosts: accounting
become: yes
roles:
- { role: accounting, task: accounting, tags: accounting }

- hosts: accounting_oidc_client
become: yes
roles:
- { role: accounting, task: oidc_client, tags: accounting-oidc-client }

- hosts: haproxy
become: yes
roles:
- { role: haproxy, task: haproxy , tags: haproxy_install }

- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }
72 changes: 72 additions & 0 deletions ams-cluster-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---


- hosts: all
become: yes
roles:
- { role: commons, task: selinux, tags: disable_selinux }
- { role: commons, task: timezone, tags: timezone }
- { role: commons, task: repos, tags: repos }
- { role: commons, task: basic_utils, tags: basic_utils }
- { role: commons, task: users, tags: groups_users_sshKeys }
- { role: commons, task: sshd, tags: sshd }
- { role: commons, task: firewall, tags: firewall }
- { role: commons, task: fail2ban, tags: fail2ban_conf }
- { role: commons, task: cert, tags: cert }
- { role: commons, task: rsyslog, tags: rsyslog_conf }
- { role: nickhammond.logrotate, tags: logrotate }
#- { role: commons, task: is_monitored, tags: monitored }
#- { role: commons, task: backupamsmongo, tags: rsyslog_conf }


- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }


- hosts: ams_cluster
become: yes
roles:
- { role: private_hosts, task: main, tags: local_dns }


- hosts: mongo_private_cluster
become: yes
roles:
- { role: mongodb, task: main, tags: mongodb }


- hosts: ams
become: yes
roles:
- { role: zookeeper, task: main, tags: zookeeper_install }
- { role: kafka, task: main, tags: kafka_install }
- { role: ams, task: deploy, tags: ams_install }
- { role: ams, task: deploy_metrics, tags: ams_install }
- { role: ams, task: init_db, tags: init_ams_db }


- hosts: ams_push_server
become: yes
roles:
- { role: push-server, task: push-server-setup, tags: push_install }


- hosts: haproxy
become: yes
roles:
- { role: haproxy, task: haproxy, tags: haproxy_install }


- hosts: authn
become: yes
roles:
- { role: argo-api-authn, task: authn-setup }
- { role: argo-api-authn, task: python-env-setup }
- { role: argo-api-authn, task: scripts_cert }
- { role: argo-api-authn, task: authn-init, tags: init_checks }
- { role: argo-api-authn, task: ams-create-users-gocdb-script, tags: authn_ams_create_users }
- { role: argo-api-authn, task: ams-create-users-cloud-info-script, tags: authn_ams_create_users }


16 changes: 16 additions & 0 deletions argo-status-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- hosts: argo_status_pages
become: true
serial: 1
roles:
- { role: commons, task: sshd, tags: argo_status_pages}
- { role: commons, task: repos, tags: argo_status_pages}
- { role: commons, task: timezone, tags: argo_status_pages}
- { role: commons, task: cert, tags: argo_status_pages}
- { role: apache, task: main, tags: argo_status_pages}
- { role: argo_status_pages, task: deploy, tags: argo_status_pages}

- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }
40 changes: 40 additions & 0 deletions cat-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---


- hosts: all
become: yes
roles:
- { role: commons, task: timezone, tags: timezone }
- { role: commons, task: repos, tags: repos }
- { role: commons, task: basic_utils, tags: basic_utils }
- { role: commons, task: users, tags: groups_users_sshKeys }
- { role: commons, task: sshd, tags: sshd }
- { role: commons, task: firewall, tags: firewall }
- { role: commons, task: fail2ban, tags: fail2ban_conf }
- { role: commons, task: cert, tags: cert }
- { role: commons, task: rsyslog, tags: rsyslog_conf }
- { role: nickhammond.logrotate, tags: logrotate }
#- { role: commons, task: is_monitored, tags: monitored }
#- { role: commons, task: backupamsmongo, tags: rsyslog_conf }

- hosts: apache
become: yes
roles:
- { role: commons, task: cert, tags: apache_certs }
- { role: apache, task: main, tags: apache_install }

- hosts: quarkus-api
become: yes
roles:
- { role: quarkus-api, task: quarkus-api, tags: quarkus-api }
- { role: mariadb, task: main, tags: mariadb }

- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }

- hosts: frontend
become: true
roles:
- { role: frontend, task: vite-react-ts-based, tags: frontend}
63 changes: 45 additions & 18 deletions install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- hosts: all
become: yes
roles:
- { role: commons, task: selinux, tags: disable_selinux }
- { role: commons, task: timezone, tags: timezone }
- { role: commons, task: repos, tags: repos }
- { role: commons, task: basic_utils, tags: basic_utils }
Expand Down Expand Up @@ -38,39 +39,42 @@
- hosts: haproxy
become: yes
roles:
- { role: haproxy, task: rsyslog }
- { role: haproxy, task: haproxy , tags: haproxy_install }

- hosts: ams_store
become: yes
roles:
- { role: private_hosts }
- { role: mongodb }
- { role: ams, task: init_db, tags: ams_install }

- hosts: ams
become: yes
roles:
- { role: private_hosts }
- { role: zookeeper, tags: zookeeper_install }
- { role: kafka, tags: kafka_install }
- { role: ams, task: deploy, tags: ams_install }
- { role: ams, task: deploy_metrics, tags: ams_install }
- { role: ams, task: init_db }

- hosts: mongo_devel_private_network
become: yes
roles:
- { role: private_hosts, tags: private_hosts }

- hosts: ams_push_server
become: yes
roles:
- { role: push-server, task: push-server-setup, tags: push_install }

- hosts: authn
- hosts: mongo_private_cluster
become: yes
roles:
- { role: mongodb }
- { role: argo-api-authn, task: authn-setup }
- { role: argo-api-authn, task: python-env-setup }
- { role: argo-api-authn, task: ams-create-users-gocdb-script }
- { role: argo-api-authn, task: ams-create-users-cloud-info-script }
- { role: argo-api-authn, task: scripts_cert }

- hosts: authn
become: yes
roles:
- { role: argo-api-authn, task: authn-setup, tags: authn_install }
- { role: argo-api-authn, task: python-env-setup }
- { role: argo-api-authn, task: scripts_cert, tags: authn-scripts-cert }
- { role: argo-api-authn, task: authn-init, tags: init_checks }
- { role: argo-api-authn, task: ams-create-users-gocdb-script, tags: authn_ams_create_users }
- { role: argo-api-authn, task: ams-create-users-cloud-info-script, tags: authn_ams_create_users }


- hosts: metrics
become: yes
Expand Down Expand Up @@ -100,8 +104,9 @@
- hosts: swagger
become: yes
roles:
- { role: httpd, tags: httpd }
- { role: swagger }
- { role: commons, task: cert, tags: swagger_deploy }
- { role: apache, tags: swagger_deploy }
- { role: swagger, tags: [swagger_deploy, swagger_update] }

- hosts: c_cluster
become: yes
Expand Down Expand Up @@ -134,4 +139,26 @@
- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }
- { role: icinga_agent, tags: deploy_icinga_agent }

- hosts: apache
become: yes
roles:
- { role: commons, task: cert, tags: apache_certs }
- { role: apache, task: main, tags: apache_install }

- hosts: eseal
become: yes
remote_user: root
roles:
- { role: commons, task: firewall, tags: firewall }
- { role: commons, task: cert, tags: cert }
- { role: commons, task: rsyslog, tags: rsyslog_conf }
- { role: apache, task: main, tags: apache_install }
- { role: eseal, task: main, tags: eseal }


- hosts: gocdb
become: yes
roles:
- { role: backup_mysql, task: backup, tags: mysql-backup }
27 changes: 27 additions & 0 deletions pcc-api-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

- hosts: all
become: yes
roles:
- { role: commons, task: timezone, tags: timezone }
- { role: commons, task: repos, tags: repos }
- { role: commons, task: basic_utils, tags: basic_utils }
- { role: commons, task: users, tags: groups_users_sshKeys }
- { role: commons, task: sshd, tags: sshd }
- { role: commons, task: firewall, tags: firewall }
- { role: commons, task: fail2ban, tags: fail2ban_conf }
- { role: commons, task: cert, tags: cert }
- { role: commons, task: rsyslog, tags: rsyslog_conf }
- { role: nickhammond.logrotate, tags: logrotate }
#- { role: commons, task: is_monitored, tags: monitored }
#- { role: commons, task: backupamsmongo, tags: rsyslog_conf }

- hosts: pcc-api
become: yes
roles:
- { role: pcc-api, task: main, tags: pcc-api }

- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }
7 changes: 7 additions & 0 deletions pcc-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- hosts: pcc_ui
become: true
roles:
- { role: commons, task: cert}
- { role: pcc-ui, task: deploy, tags: pcc-ui}
- { role: apache, task: main}
40 changes: 40 additions & 0 deletions pidmr-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---


- hosts: all
become: yes
roles:
- { role: commons, task: timezone, tags: timezone }
- { role: commons, task: repos, tags: repos }
- { role: commons, task: basic_utils, tags: basic_utils }
- { role: commons, task: users, tags: groups_users_sshKeys }
- { role: commons, task: sshd, tags: sshd }
- { role: commons, task: firewall, tags: firewall }
- { role: commons, task: fail2ban, tags: fail2ban_conf }
- { role: commons, task: cert, tags: cert }
- { role: commons, task: rsyslog, tags: rsyslog_conf }
- { role: nickhammond.logrotate, tags: logrotate }
#- { role: commons, task: is_monitored, tags: monitored }
#- { role: commons, task: backupamsmongo, tags: rsyslog_conf }

- hosts: apache
become: yes
roles:
- { role: commons, task: cert, tags: apache_certs }
- { role: apache, task: main, tags: apache_install }

- hosts: quarkus-api
become: yes
roles:
- { role: quarkus-api, task: quarkus-api, tags: quarkus-api }
- { role: mariadb, task: main, tags: mariadb }

- hosts: icinga_agent
become: yes
roles:
- { role: icinga_agent, tags: deploy_icinga_agent }

- hosts: frontend
become: true
roles:
- { role: frontend, task: vite-react-ts-based, tags: frontend}
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ansible==2.9.11
docker==3.4.1
molecule==2.16.0
dnspython==2.2.0
requests==2.20.1
Loading

0 comments on commit 5e60346

Please sign in to comment.