This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed to version with generated hosts file.
- Loading branch information
Patrick Hendriks
committed
Jul 24, 2019
1 parent
b9c7de8
commit 1a67704
Showing
57 changed files
with
1,107 additions
and
550 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: configure and deploy the webservers and application code | ||
hosts: jiskefet_backend | ||
remote_user: "{{ remote_privileged_user }}" | ||
become: yes | ||
vars: | ||
- temp_folder: /tmp | ||
|
||
roles: | ||
- jiskefet-backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: configure and deploy the webservers and application code | ||
hosts: jiskefet_frontend | ||
remote_user: "{{ remote_privileged_user }}" | ||
become: yes | ||
vars: | ||
- temp_folder: /tmp | ||
|
||
roles: | ||
- jiskefet-frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
--- | ||
application_name: "Logbook ITS" | ||
remote_privileged_user: root | ||
jiskefet_user: jiskefet | ||
mysql_root_password: abd1516812 | ||
USE_CERN_SSO: true | ||
|
||
jiskefet_api_general_settings: | ||
TYPEORM_HOST: "{{inventory_hostname}}" | ||
TYPEORM_USERNAME: 'jiskefet' | ||
TYPEORM_PASSWORD: 'abd1516812' | ||
TYPEORM_DATABASE: 'jiskefetdb' | ||
JWT_SECRET_KEY: 'NHcW7x9K' | ||
PORT: 3000 | ||
|
||
jiskefet_api_optional_settings: | ||
TEST_DB_HOST: localhost | ||
TEST_DB_DATABASE: | ||
TEST_DB_USERNAME: | ||
TEST_DB_PASSWORD: | ||
|
||
jiskefet_ui_settings: | ||
USE_API_PREFIX: true | ||
ALLOW_ANONYMOUS: true | ||
|
||
# If you use CERN SSO set true then you need to use the correct settings below. Check CERN oauth page to setup credentials. | ||
jiskefet_cern_oauth_settings: | ||
CERN_REGISTERED_URI: "http://{{inventory_hostname}}/callback" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,2 @@ | ||
--- | ||
remote_privileged_user: root | ||
jiskefet_user: jiskefet | ||
mysql_root_password: abd1516812 | ||
|
||
jiskefet_api_general_settings: | ||
TYPEORM_HOST: jiskefet-development.cern.ch | ||
TYPEORM_USERNAME: jiskefet | ||
TYPEORM_PASSWORD: Kaas | ||
TYPEORM_DATABASE: jiskefetdb | ||
JWT_SECRET_KEY: Kaas123 | ||
PORT: 3000 | ||
USE_API_PREFIX: true | ||
jiskefet_api_optional_settings: | ||
TEST_DB_HOST: localhost | ||
TEST_DB_DATABASE: | ||
TEST_DB_USERNAME: | ||
TEST_DB_PASSWORD: | ||
nginx_version: 1.16.0 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: Set {{ jiskefet_api_general_settings.TYPEORM_USERNAME }} user password | ||
mysql_user: | ||
name: "{{ jiskefet_api_general_settings.TYPEORM_USERNAME }}" | ||
host: "{{inventory_hostname}}" | ||
password: "{{ jiskefet_api_general_settings.TYPEORM_PASSWORD }}" | ||
check_implicit_admin: "yes" | ||
login_user: "root" | ||
login_password: "{{ mysql_root_password }}" | ||
state: "present" | ||
tags: configuration | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: checkout jiskefet-api | ||
git: | ||
repo: "{{ remote_repository_url.JISKEFET_API }}" | ||
dest: /var/lib/jiskefet/jiskefet-api | ||
force: yes | ||
version: "{{ repository_branch.JISKEFET_API }}" | ||
become_user: "{{ jiskefet_user }}" | ||
tags: | ||
- git_pull | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# /* | ||
# * Copyright (C) 2018 Amsterdam University of Applied Sciences (AUAS) | ||
# * | ||
# * This software is distributed under the terms of the | ||
# * GNU General Public Licence version 3 (GPL) version 3, | ||
# * copied verbatim in the file "LICENSE" | ||
# */ | ||
|
||
--- | ||
- name: run npm install on jiskefet-api | ||
command: npm install | ||
become_user: "{{ jiskefet_user }}" | ||
args: | ||
chdir: "/var/lib/jiskefet/jiskefet-api" | ||
... |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- import_tasks: create-jiskefet-user.yml | ||
- import_tasks: git.yml | ||
- import_tasks: firewall.yml | ||
- import_tasks: set-default-values.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.