diff --git a/inventory/beta.ini b/inventory/beta.ini deleted file mode 100644 index 59627ff..0000000 --- a/inventory/beta.ini +++ /dev/null @@ -1,11 +0,0 @@ -[beta-acp-backend-webservers] -beta-acp-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[beta-portal-backend-webservers] -beta-portal-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[beta-acp-frontend-webservers] -beta-acp-frontend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[beta-portal-frontend-webservers] -beta-portal-frontend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore diff --git a/inventory/production/group_vars/all.yml b/inventory/production/group_vars/all.yml new file mode 100644 index 0000000..e69de29 diff --git a/inventory/production/group_vars/hnt.yml b/inventory/production/group_vars/hnt.yml new file mode 100644 index 0000000..e69de29 diff --git a/inventory/production/group_vars/ktdt.yml b/inventory/production/group_vars/ktdt.yml new file mode 100644 index 0000000..e69de29 diff --git a/inventory/host_vars/beta-acp-backend.yml b/inventory/production/host_vars/beta-acp-backend.yml similarity index 100% rename from inventory/host_vars/beta-acp-backend.yml rename to inventory/production/host_vars/beta-acp-backend.yml diff --git a/inventory/host_vars/beta-acp-frontend.yml b/inventory/production/host_vars/beta-acp-frontend.yml similarity index 100% rename from inventory/host_vars/beta-acp-frontend.yml rename to inventory/production/host_vars/beta-acp-frontend.yml diff --git a/inventory/host_vars/beta-portal-backend.yml b/inventory/production/host_vars/beta-portal-backend.yml similarity index 100% rename from inventory/host_vars/beta-portal-backend.yml rename to inventory/production/host_vars/beta-portal-backend.yml diff --git a/inventory/host_vars/beta-portal-hnt-frontend.yml b/inventory/production/host_vars/beta-portal-hnt-frontend.yml similarity index 100% rename from inventory/host_vars/beta-portal-hnt-frontend.yml rename to inventory/production/host_vars/beta-portal-hnt-frontend.yml diff --git a/inventory/host_vars/beta-portal-ktdt-backend.yml b/inventory/production/host_vars/beta-portal-ktdt-backend.yml similarity index 100% rename from inventory/host_vars/beta-portal-ktdt-backend.yml rename to inventory/production/host_vars/beta-portal-ktdt-backend.yml diff --git a/inventory/host_vars/beta-portal-ktdt-frontend.yml b/inventory/production/host_vars/beta-portal-ktdt-frontend.yml similarity index 100% rename from inventory/host_vars/beta-portal-ktdt-frontend.yml rename to inventory/production/host_vars/beta-portal-ktdt-frontend.yml diff --git a/inventory/host_vars/production-portal-hnt-backend.yml b/inventory/production/host_vars/production-portal-hnt-backend.yml similarity index 100% rename from inventory/host_vars/production-portal-hnt-backend.yml rename to inventory/production/host_vars/production-portal-hnt-backend.yml diff --git a/inventory/production/hosts.ini b/inventory/production/hosts.ini new file mode 100644 index 0000000..53bd439 --- /dev/null +++ b/inventory/production/hosts.ini @@ -0,0 +1,28 @@ +[ktdt_portal_backend] +ktdt-portal-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[hnt_portal_backend] +ktdt-portal-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[ktdt_portal_frontend] +ktdt-portal-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[hnt_portal_frontend] +hnt-portal-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[acp_backend] +acp-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[acp_frontend] +acp-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[ktdt_resource_backend] +ktdt-resource-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[hnt_resource_backend] +hnt-resource-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + + + + + diff --git a/inventory/uat.ini b/inventory/uat.ini deleted file mode 100644 index e9c0e02..0000000 --- a/inventory/uat.ini +++ /dev/null @@ -1,14 +0,0 @@ -[uat-acp-backend-webservers] -uat-acp-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[uat-portal-backend-webservers] -uat-portal-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[uat-resource-backend-webservers] -uat-resource-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[uat-acp-frontend-webservers] -uat-acp-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore - -[uat-portal-frontend-webservers] -uat-portal-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore diff --git a/inventory/uat/group_vars/all.yml b/inventory/uat/group_vars/all.yml new file mode 100644 index 0000000..e69de29 diff --git a/inventory/uat/group_vars/hnt.yml b/inventory/uat/group_vars/hnt.yml new file mode 100644 index 0000000..e69de29 diff --git a/inventory/uat/group_vars/ktdt.yml b/inventory/uat/group_vars/ktdt.yml new file mode 100644 index 0000000..e69de29 diff --git a/inventory/host_vars/uat-acp-backend.yml b/inventory/uat/host_vars/acp-backend.yml similarity index 100% rename from inventory/host_vars/uat-acp-backend.yml rename to inventory/uat/host_vars/acp-backend.yml diff --git a/inventory/host_vars/uat-acp-frontend.yml b/inventory/uat/host_vars/acp-frontend.yml similarity index 100% rename from inventory/host_vars/uat-acp-frontend.yml rename to inventory/uat/host_vars/acp-frontend.yml diff --git a/inventory/host_vars/uat-portal-hnt-backend.yml b/inventory/uat/host_vars/hnt-portal-backend.yml similarity index 100% rename from inventory/host_vars/uat-portal-hnt-backend.yml rename to inventory/uat/host_vars/hnt-portal-backend.yml diff --git a/inventory/host_vars/uat-portal-hnt-frontend.yml b/inventory/uat/host_vars/hnt-portal-frontend.yml similarity index 100% rename from inventory/host_vars/uat-portal-hnt-frontend.yml rename to inventory/uat/host_vars/hnt-portal-frontend.yml diff --git a/inventory/host_vars/uat-resource-hnt-backend.yml b/inventory/uat/host_vars/hnt-resource-backend.yml similarity index 100% rename from inventory/host_vars/uat-resource-hnt-backend.yml rename to inventory/uat/host_vars/hnt-resource-backend.yml diff --git a/inventory/host_vars/uat-portal-ktdt-backend.yml b/inventory/uat/host_vars/ktdt-portal-backend.yml similarity index 100% rename from inventory/host_vars/uat-portal-ktdt-backend.yml rename to inventory/uat/host_vars/ktdt-portal-backend.yml diff --git a/inventory/host_vars/uat-portal-ktdt-frontend.yml b/inventory/uat/host_vars/ktdt-portal-frontend.yml similarity index 100% rename from inventory/host_vars/uat-portal-ktdt-frontend.yml rename to inventory/uat/host_vars/ktdt-portal-frontend.yml diff --git a/inventory/host_vars/uat-resource-ktdt-backend.yml b/inventory/uat/host_vars/ktdt-resource-backend.yml similarity index 100% rename from inventory/host_vars/uat-resource-ktdt-backend.yml rename to inventory/uat/host_vars/ktdt-resource-backend.yml diff --git a/inventory/uat/hosts.ini b/inventory/uat/hosts.ini index e69de29..abbedce 100644 --- a/inventory/uat/hosts.ini +++ b/inventory/uat/hosts.ini @@ -0,0 +1,25 @@ +[ktdt_portal_backend] +ktdt-portal-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[hnt_portal_backend] +hnt-portal-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[ktdt_portal_frontend] +ktdt-portal-frontend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[hnt_portal_frontend] +hnt-portal-frontend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[acp_backend] +acp-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[acp_frontend] +acp-frontend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[ktdt_resource_backend] +ktdt-resource-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + +[hnt_resource_backend] +hnt-resource-backend ansible_host=123.30.238.12 ansible_user=jenkins_cicd_beta ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore + + diff --git a/playbooks/deploy_be.yml b/playbooks/deploy_be.yml deleted file mode 100644 index d90644c..0000000 --- a/playbooks/deploy_be.yml +++ /dev/null @@ -1,5 +0,0 @@ -- name: Deploy Backend for Project Acp, Portal - hosts: "{{ deploy_env }}-{{project_name}}-backend" - roles: - - deploy - \ No newline at end of file diff --git a/playbooks/deploy_be_portal.yml b/playbooks/deploy_be_portal.yml deleted file mode 100644 index ee35f98..0000000 --- a/playbooks/deploy_be_portal.yml +++ /dev/null @@ -1,10 +0,0 @@ -- name: Deploy Backend for Project Portal - hosts: "{{ deploy_env }}-{{project_name}}-backend" - vars: - portal_name: "{{ portal_name }}" - pre_tasks: - - name: Include portal-specific variables - include_vars: "../inventory/host_vars/{{ deploy_env }}-{{ project_name }}-{{ portal_name }}-backend.yml" - roles: - - deploy-be-portal - \ No newline at end of file diff --git a/playbooks/deploy_be_resource.yml b/playbooks/deploy_be_resource.yml deleted file mode 100644 index 8e07da0..0000000 --- a/playbooks/deploy_be_resource.yml +++ /dev/null @@ -1,10 +0,0 @@ -- name: Deploy Backend for Project Resource - hosts: "{{ deploy_env }}-{{project_name}}-backend" - vars: - portal_name: "{{ portal_name }}" - pre_tasks: - - name: Include portal-specific variables - include_vars: "../inventory/host_vars/{{ deploy_env }}-{{ project_name }}-{{ portal_name }}-backend.yml" - roles: - - deploy-be-resource - \ No newline at end of file diff --git a/playbooks/deploy_fe.yml b/playbooks/deploy_fe.yml deleted file mode 100644 index b1d06e9..0000000 --- a/playbooks/deploy_fe.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Deploy Frontend for Project Acp, Portal - hosts: "{{ deploy_env }}-{{project_name}}-frontend" - roles: - - deploy diff --git a/playbooks/deploy_fe_portal.yml b/playbooks/deploy_fe_portal.yml deleted file mode 100644 index 5d59e78..0000000 --- a/playbooks/deploy_fe_portal.yml +++ /dev/null @@ -1,9 +0,0 @@ -- name: Deploy Frontend for Project Portal - hosts: "{{ deploy_env }}-{{project_name}}-frontend" - vars: - portal_name: "{{ portal_name }}" - pre_tasks: - - name: Include portal-specific variables - include_vars: "../inventory/host_vars/{{ deploy_env }}-{{ project_name }}-{{ portal_name }}-frontend.yml" - roles: - - deploy-fe-portal diff --git a/playbooks/deploy_hnt_resource_backend.yml b/playbooks/deploy_hnt_resource_backend.yml new file mode 100644 index 0000000..46d041f --- /dev/null +++ b/playbooks/deploy_hnt_resource_backend.yml @@ -0,0 +1,5 @@ +- name: Deploy Backend for Project Resource + hosts: ktdt-resource-backend + roles: + - deploy-be-resource + \ No newline at end of file diff --git a/playbooks/deploy_ktdt_portal_backend.yml b/playbooks/deploy_ktdt_portal_backend.yml new file mode 100644 index 0000000..ed1af4b --- /dev/null +++ b/playbooks/deploy_ktdt_portal_backend.yml @@ -0,0 +1,5 @@ +- name: Deploy Backend for Project Portal + hosts: ktdt-portal-backend + roles: + - deploy-be-portal + \ No newline at end of file diff --git a/playbooks/uat/be/deploy_uat_portal_ktdt_be.yml b/playbooks/uat/be/deploy_uat_portal_ktdt_be.yml deleted file mode 100644 index 79c9458..0000000 --- a/playbooks/uat/be/deploy_uat_portal_ktdt_be.yml +++ /dev/null @@ -1,8 +0,0 @@ -- name: deploy_uat_portal_ktdt_be.yml - hosts: "uat-portal-backend" - pre_tasks: - - name: Include portal-specific variables - include_vars: "../inventory/host_vars/" - roles: - - deploy-be-portal - \ No newline at end of file