-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from devopswise/pro
Pro
- Loading branch information
Showing
64 changed files
with
1,202 additions
and
20 deletions.
There are no files selected for viewing
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,2 +1,3 @@ | ||
*.retry | ||
credentials/ | ||
extra-vars.json |
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 @@ | ||
gitea_service_name: "gitea" | ||
gitea_registry_url: "" #from dockerhub | ||
gitea_image_name: "gitea/gitea" | ||
|
||
mariadb_version: "10.3" | ||
|
||
gitea_version: "1.6" | ||
gitea_user: 1000 | ||
gitea_group: 1000 | ||
|
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,7 @@ | ||
jira_service_name: "jira" | ||
jira_registry_url: "" | ||
jira_image_name: "cptactionhank/atlassian-jira-software" | ||
|
||
jira_version: "7.12.3" | ||
jira_user: 0 | ||
jira_group: 0 |
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 @@ | ||
rocketchat_service_name: "rocketchat" | ||
rocketchat_registry_url: "" | ||
rocketchat_image_name: "rocketchat/rocket.chat" | ||
|
||
mongodb_version: 3.6 | ||
|
||
rocketchat_version: "0.71.1" | ||
rocketchat_user: 0 | ||
rocketchat_group: 0 | ||
|
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,6 +1,6 @@ | ||
squid_service_name: "squid" | ||
|
||
squid_version: "latest" | ||
squid_version: "3.3.8-23" | ||
squid_user: 0 | ||
squid_group: 0 | ||
|
||
|
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,5 @@ | ||
--- | ||
- hosts: cdtportal | ||
roles: | ||
- { role: cdtportal, | ||
tags: [ 'cdtportal' ] } |
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,5 @@ | ||
--- | ||
- hosts: gitea | ||
roles: | ||
- { role: gitea, | ||
tags: [ 'gitea' ] } |
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,5 @@ | ||
--- | ||
- hosts: grafana | ||
roles: | ||
- { role: grafana, | ||
tags: [ 'grafana' ] } |
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,5 @@ | ||
--- | ||
- hosts: jira | ||
roles: | ||
- { role: jira, | ||
tags: [ 'jira' ] } |
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,5 @@ | ||
--- | ||
- hosts: rocketchat | ||
roles: | ||
- { role: rocketchat, | ||
tags: [ 'rocketchat' ] } |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 @@ | ||
cdtportal_service_name: "cdtportal" | ||
cdtportal_registry_url: "" #from dockerhub | ||
cdtportal_image_name: "devopswise/cdtportal" | ||
|
||
cdtportal_version: "latest" | ||
cdtportal_user: 1000 | ||
cdtportal_group: 1000 | ||
|
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,9 @@ | ||
--- | ||
- name: restart cdtportal | ||
docker_service: | ||
project_name: "{{ cdtportal_service_name }}" | ||
project_src: "/tmp/{{ cdtportal_service_name }}" | ||
restarted: true | ||
state: present | ||
become: yes | ||
become_method: sudo |
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,39 @@ | ||
--- | ||
- name: Create a directory to store volume | ||
file: path="{{ item }}" state=directory mode=0777 owner="{{ cdtportal_user }}" group="{{ cdtportal_group }}" | ||
with_items: | ||
- "{{ docker_logs }}/{{ cdtportal_service_name }}" | ||
- "{{ docker_volumes }}/{{ cdtportal_service_name }}" | ||
- "{{ docker_volumes }}/{{ cdtportal_service_name }}/config" | ||
- "{{ docker_volumes }}/{{ cdtportal_service_name }}/data" | ||
become: yes | ||
become_method: sudo | ||
|
||
- name: create directory for project_src | ||
file: path="/tmp/{{ cdtportal_service_name }}" state=directory | ||
become: yes | ||
become_method: sudo | ||
|
||
- name: sync application.properties file for cdtportal | ||
template: | ||
src: ../templates/application.properties.j2 | ||
dest: /{{ docker_volumes }}/{{ cdtportal_service_name }}/config/application.properties | ||
mode: 0755 | ||
become: yes | ||
become_method: sudo | ||
|
||
- name: sync docker-compose.yml | ||
template: | ||
src: ../templates/docker-compose.yml.j2 | ||
dest: /tmp/{{ cdtportal_service_name }}/docker-compose.yml | ||
mode: 0755 | ||
become: yes | ||
become_method: sudo | ||
|
||
- name: "Run cdtportal service {{ cdtportal_version }}" | ||
become: yes | ||
become_method: sudo | ||
docker_service: | ||
project_name: "{{ cdtportal_service_name }}" | ||
project_src: "/tmp/{{ cdtportal_service_name }}" | ||
register: output |
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 @@ | ||
springfox.documentation.swagger.v2.path=/api-docs | ||
server.contextPath=/v2 | ||
server.port=8080 | ||
spring.jackson.date-format=io.swagger.RFC3339DateFormat | ||
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false | ||
spring.h2.console.enabled=true | ||
spring.jpa.open-in-view=true | ||
spring.data.jpa.repositories.bootstrap-mode=default | ||
logging.level.org.hibernate.SQL=debug | ||
jenkins.baseUrl=http://jenkins.{{ base_domain }} | ||
jenkins.username=admin | ||
jenkins.password=password |
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,30 @@ | ||
version: '2' | ||
services: | ||
cdtportal: | ||
image: "{{ cdtportal_registry_url }}{{ cdtportal_image_name }}:{{ cdtportal_version }}" | ||
volumes: | ||
- "{{ docker_volumes }}/{{ cdtportal_service_name }}/config/application.properties:/config/application.properties" | ||
- "{{ docker_volumes }}/{{ cdtportal_service_name }}/data:/data" | ||
ports: | ||
- 8080 | ||
networks: | ||
- internal | ||
- external | ||
restart: always | ||
labels: | ||
- traefik.backend=cdtportal | ||
- traefik.frontend.rule=Host:cdtportal.{{ base_domain }} | ||
- traefik.port=8080 | ||
#logging: | ||
# driver: "syslog" | ||
# options: | ||
# syslog-facility: "local2" | ||
# tag: "docker/{% raw %}{{.Name}}{% endraw %}" | ||
|
||
networks: | ||
internal: | ||
external: true | ||
external: | ||
external: true | ||
|
||
|
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 @@ | ||
{ | ||
"metrics-addr" : "0.0.0.0:9323", | ||
"experimental" : true | ||
} |
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,7 @@ | ||
#!/bin/bash | ||
OPENJDK_VERSION="8-jdk" | ||
WORKING_DIR={{ docker_certs }} | ||
CERT_TO_IMPORT={{ base_domain }}.crt | ||
docker pull openjdk:${OPENJDK_VERSION} | ||
docker run --rm --entrypoint cat openjdk:${OPENJDK_VERSION} /etc/ssl/certs/java/cacerts > ${WORKING_DIR}/cacerts | ||
docker run --rm -v `pwd`:/tmp/certs openjdk:${OPENJDK_VERSION} bash -c 'cd /tmp/certs && keytool -keystore cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias {{ base_domain }} -file {{ base_domain }}.crt' |
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,17 @@ | ||
[ req ] | ||
prompt = no | ||
distinguished_name = req_distinguished_name | ||
x509_extensions = san_self_signed | ||
[ req_distinguished_name ] | ||
CN={{ base_domain }} | ||
[ san_self_signed ] | ||
subjectAltName = @alt_names | ||
subjectKeyIdentifier = hash | ||
authorityKeyIdentifier = keyid:always,issuer | ||
basicConstraints = CA:true | ||
keyUsage = nonRepudiation, digitalSignature, keyEncipherment, dataEncipherment, keyCertSign, cRLSign | ||
extendedKeyUsage = serverAuth, clientAuth, timeStamping | ||
|
||
[alt_names] | ||
DNS.1 = *.{{ base_domain }} | ||
DNS.2 = {{ base_domain }} |
Oops, something went wrong.