-
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 #16 from idealista/develop
Develop to Master for Release 1.1.0
- Loading branch information
Showing
28 changed files
with
845 additions
and
160 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Molecule managed | ||
|
||
{% if item.registry is defined %} | ||
FROM {{ item.registry.url }}/{{ item.image }} | ||
{% else %} | ||
FROM {{ item.image }} | ||
{% endif %} | ||
|
||
|
||
|
||
RUN if [ $(command -v apt-get) ]; then \ | ||
apt-get update && \ | ||
apt-get install -y python3 sudo bash ca-certificates gnupg systemd iproute2 systemd-sysv &&\ | ||
apt-get clean; \ | ||
elif [ $(command -v dnf) ]; then \ | ||
cd /etc/yum.repos.d/ & \ | ||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* & \ | ||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* & \ | ||
dnf update & dnf makecache && \ | ||
dnf --assumeyes install python3 sudo python36-devel python3-dnf bash systemd && dnf clean all; \ | ||
elif [ $(command -v yum) ]; then \ | ||
yum makecache fast && \ | ||
yum install -y python sudo yum-plugin-ovl bash systemd systemd-sysv epel-release && \ | ||
sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ | ||
fi |
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,28 @@ | ||
--- | ||
|
||
- name: Install etc cluster | ||
hosts: etcd_cluster | ||
|
||
tasks: | ||
- name: create etc cluster | ||
include_role: | ||
name: patroni_role | ||
tasks_from: create_etcd_cluster.yml | ||
when: not dcs.exists | bool and dcs.type=='etcd' | ||
tags: etcd | ||
|
||
- name: Install pgdb cluster | ||
hosts: postgres_cluster | ||
|
||
pre_tasks: | ||
- name: pre-checks postgres | ||
import_tasks: "../../tasks/pre-checks/postgres.yml" | ||
tags: always | ||
|
||
roles: | ||
- role: postgresql_role | ||
when: postgresql_install | bool and not postgres_installed | ||
- role: pgbouncer_role | ||
when: pgbouncer_install | bool and not pgbouncer_installed | ||
- role: patroni_role | ||
|
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,2 @@ | ||
patroni.yml | ||
pg_hba.conf |
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,6 @@ | ||
--- | ||
|
||
consul_server_nodes: | ||
- consul-server-test | ||
|
||
consul_datacenter: mainlocal |
Oops, something went wrong.