Added ARM, AWS templates and pipelines.

This commit is contained in:
jefferyfry
2020-04-28 21:10:29 -07:00
parent 38d2524ee1
commit 4e9153dffa
156 changed files with 5757 additions and 725 deletions

View File

@@ -0,0 +1,51 @@
---
all:
vars:
ansible_user: "ubuntu"
ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem"
children:
database:
hosts:
#artifactory database
52.86.32.79:
db_users:
- { db_user: "artifactory", db_password: "Art1fAct0ry" }
dbs:
- { db_name: "artifactory", db_owner: "artifactory" }
artifactory:
vars:
artifactory_ha_enabled: true
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_download_url: "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "jdbc:postgresql://10.0.0.160:5432/artifactory"
db_user: "artifactory"
db_password: "Art1fAct0ry"
server_name: "ec2-100-25-104-198.compute-1.amazonaws.com"
certificate: |
-----BEGIN CERTIFICATE-----
x
-----END CERTIFICATE-----
certificate_key: |
-----BEGIN PRIVATE KEY-----
x
-----END PRIVATE KEY-----
children:
primary:
hosts:
100.25.104.198:
artifactory_is_primary: true
artifactory_license1: x
artifactory_license2: x
artifactory_license3: x
artifactory_license4: x
artifactory_license5: x
secondary:
hosts:
54.160.107.157:
35.153.79.44:
vars:
artifactory_is_primary: false

View File

@@ -0,0 +1,11 @@
---
- hosts: database
gather_facts: true
roles:
- jfrog/ansible/roles/postgres
- hosts: primary:secondary
gather_facts: true
roles:
- jfrog/ansible/roles/artifactory
- jfrog/ansible/roles/artifactory-nginx-ssl

View File

@@ -0,0 +1,60 @@
---
all:
vars:
ansible_user: "ubuntu"
ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem"
ansible_ssh_common_args: '-o ProxyCommand="ssh -o StrictHostKeyChecking=no -A ubuntu@13.82.225.20 -W %h:%p"'
children:
database:
hosts:
#artifactory database
10.0.0.6:
db_users:
- { db_user: "artifactory", db_password: "Art1fAct0ry" }
dbs:
- { db_name: "artifactory", db_owner: "artifactory" }
#xray database
10.0.0.4:
dbs:
- { db_name: "xraydb", db_owner: "xray" }
db_users:
- { db_user: "xray", db_password: "xray" }
artifactory:
vars:
artifactory_ha_enabled: true
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_download_url: "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "jdbc:postgresql://10.0.0.6:5432/artifactory"
db_user: "artifactory"
db_password: "Art1fAct0ry"
server_name: "rt.13.82.225.208.xip.io"
children:
primary:
hosts:
10.0.0.8:
artifactory_is_primary: true
artifactory_license1: x
artifactory_license2: x
artifactory_license3: x
artifactory_license4: x
artifactory_license5: x
secondary:
hosts:
10.0.0.9:
vars:
artifactory_is_primary: false
xray:
vars:
jfrog_url: http://rt.13.82.225.208.xip.io/
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "postgres://10.0.0.4:5432/xraydb?sslmode=disable"
db_user: "xray"
db_password: "xray"
hosts:
10.0.0.5:

View File

@@ -0,0 +1,15 @@
---
- hosts: database
gather_facts: true
roles:
- jfrog/ansible/roles/postgres
- hosts: primary:secondary
gather_facts: true
roles:
- jfrog/ansible/roles/artifactory
- hosts: xray
gather_facts: true
roles:
- jfrog/ansible/roles/xray

View File

@@ -0,0 +1,55 @@
---
all:
vars:
ansible_user: "ubuntu"
ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem"
children:
database:
hosts:
#artifactory database
52.86.32.79:
dbs:
- { db_name: "artifactory", db_owner: "artifactory" }
db_users:
- { db_user: "artifactory", db_password: "Art1fAct0ry" }
#xray database
100.25.152.93:
dbs:
- { db_name: "xraydb", db_owner: "xray" }
db_users:
- { db_user: "xray", db_password: "xray" }
artifactory:
vars:
artifactory_ha_enabled: true
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_download_url: "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "jdbc:postgresql://10.0.0.51:5432/artifactory"
db_user: "artifactory"
db_password: "Art1fAct0ry"
server_name: "ec2-18-210-33-94.compute-1.amazonaws.com"
children:
primary:
hosts:
18.210.33.94:
artifactory_is_primary: true
artifactory_license1: x
artifactory_license2: x
artifactory_license3: x
artifactory_license4: x
artifactory_license5: x
xray:
vars:
jfrog_url: http://ec2-18-210-33-94.compute-1.amazonaws.com
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "postgres://10.0.0.5:5432/xraydb?sslmode=disable"
db_user: "xray"
db_password: "xray"
hosts:
# 34.229.56.166:
54.237.68.180

View File

@@ -0,0 +1,15 @@
---
- hosts: database
gather_facts: true
roles:
- jfrog/ansible/roles/postgres
- hosts: primary
gather_facts: true
roles:
- jfrog/ansible/roles/artifactory
- hosts: xray
gather_facts: true
roles:
- jfrog/ansible/roles/xray

View File

@@ -0,0 +1,43 @@
---
all:
vars:
ansible_user: "ubuntu"
ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem"
children:
database:
hosts:
34.239.107.0:
dbs:
- { db_name: "artifactory", db_owner: "artifactory" }
- { db_name: "xraydb", db_owner: "xray" }
db_users:
- { db_user: "artifactory", db_password: "Art1fAct0ry" }
- { db_user: "xray", db_password: "xray" }
artifactory:
hosts:
54.237.207.135:
artifactory_license1: x
artifactory_license2: x
artifactory_license3: x
artifactory_license4: x
artifactory_license5: x
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_download_url: "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "jdbc:postgresql://10.0.0.59:5432/artifactory"
db_user: "artifactory"
db_password: "Art1fAct0ry"
server_name: "ec2-54-237-207-135.compute-1.amazonaws.com"
xray:
hosts:
100.25.104.174:
jfrog_url: "http://ec2-54-237-207-135.compute-1.amazonaws.com"
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "postgres://10.0.0.59:5432/xraydb?sslmode=disable"
db_user: "xray"
db_password: "xray"

View File

@@ -0,0 +1,15 @@
---
- hosts: database
gather_facts: true
roles:
- jfrog/ansible/roles/postgres
- hosts: artifactory
gather_facts: true
roles:
- jfrog/ansible/roles/artifactory
- hosts: xray
gather_facts: true
roles:
- jfrog/ansible/roles/xray

View File

@@ -0,0 +1,31 @@
---
all:
vars:
ansible_user: "ubuntu"
ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem"
children:
database:
hosts:
52.86.32.79:
db_users:
- { db_user: "artifactory", db_password: "Art1fAct0ry" }
dbs:
- { db_name: "artifactory", db_owner: "artifactory" }
primary:
hosts:
100.25.104.198:
artifactory_is_primary: true
artifactory_license1: x
artifactory_license2: x
artifactory_license3: x
artifactory_license4: x
artifactory_license5: x
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_download_url: "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "jdbc:postgresql://10.0.0.160:5432/artifactory"
db_user: "artifactory"
db_password: "Art1fAct0ry"
server_name: "ec2-100-25-104-198.compute-1.amazonaws.com"

View File

@@ -0,0 +1,10 @@
---
- hosts: database
gather_facts: true
roles:
- jfrog/ansible/roles/postgres
- hosts: primary
gather_facts: true
roles:
- jfrog/ansible/roles/artifactory

View File

@@ -0,0 +1,39 @@
---
all:
vars:
ansible_user: "ubuntu"
ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem"
children:
database:
hosts:
52.86.32.79:
db_users:
- { db_user: "artifactory", db_password: "Art1fAct0ry" }
dbs:
- { db_name: "artifactory", db_owner: "artifactory" }
primary:
hosts:
100.25.104.198:
artifactory_is_primary: true
artifactory_license1: x
artifactory_license2: x
artifactory_license3: x
artifactory_license4: x
artifactory_license5: x
master_key: "c97b862469de0d94fbb7d48130637a5a"
join_key: "9bcca98f375c0728d907cc6ee39d4f02"
db_download_url: "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
db_type: "postgresql"
db_driver: "org.postgresql.Driver"
db_url: "jdbc:postgresql://10.0.0.160:5432/artifactory"
db_user: "artifactory"
db_password: "Art1fAct0ry"
server_name: "ec2-100-25-104-198.compute-1.amazonaws.com"
certificate: |
-----BEGIN CERTIFICATE-----
x
-----END CERTIFICATE-----
certificate_key: |
-----BEGIN PRIVATE KEY-----
x
-----END PRIVATE KEY-----

View File

@@ -0,0 +1,11 @@
---
- hosts: database
gather_facts: true
roles:
- jfrog/ansible/roles/postgres
- hosts: primary
gather_facts: true
roles:
- jfrog/ansible/roles/artifactory
- jfrog/ansible/roles/artifactory-nginx-ssl