mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 16:06:57 -06:00
Combined pipelines.
Added force delete. Updates. Added region.
This commit is contained in:
40
Ansible/project/rt-xray-auto-keys/hosts.yml
Normal file
40
Ansible/project/rt-xray-auto-keys/hosts.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
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:
|
||||
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
|
||||
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"
|
||||
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"
|
||||
21
Ansible/project/rt-xray-auto-keys/playbook.yml
Normal file
21
Ansible/project/rt-xray-auto-keys/playbook.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- debug:
|
||||
var: master_key
|
||||
|
||||
- debug:
|
||||
var: join_key
|
||||
|
||||
- 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
|
||||
3
Ansible/project/rt-xray-auto-keys/runAutoKeysPlaybook.sh
Executable file
3
Ansible/project/rt-xray-auto-keys/runAutoKeysPlaybook.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ansible-playbook -i hosts.yml playbook.yml --extra-vars "master_key=$(openssl rand -hex 16) join_key=$(openssl rand -hex 16)"
|
||||
Reference in New Issue
Block a user