Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Theses images contains High Availability solution such as Corosync, Pacemaker, Pacemaker Remote and PCS. Change-Id: I86fd145d2998f68b08a16082414b86904971549a Implements: blueprint pacemaker-container
- Loading branch information
1 parent
5ecb910
commit 046158b
Showing
11 changed files
with
84 additions
and
0 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 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 @@ | ||
[network_ha-clustering_Stable] | ||
name=Stable High Availability/Clustering packages (CentOS_CentOS-7) | ||
type=rpm-md | ||
baseurl=http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/ | ||
gpgcheck=1 | ||
gpgkey=http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/repodata/repomd.xml.key | ||
enabled=1 |
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 @@ | ||
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} | ||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" | ||
|
||
{% block hacluster_base_header %}{% endblock %} | ||
|
||
{% import "macros.j2" as macros with context %} | ||
|
||
COPY extend_start.sh /usr/local/bin/kolla_extend_start | ||
|
||
RUN chmod 755 /usr/local/bin/kolla_extend_start | ||
|
||
{% block hacluster_base_footer %}{% endblock %} |
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 @@ | ||
#!/bin/bash | ||
|
||
if [[ ! -d "/var/log/kolla/hacluster" ]]; then | ||
mkdir -p /var/log/kolla/hacluster | ||
fi | ||
if [[ $(stat -c %a /var/log/kolla/hacluster) != "755" ]]; then | ||
chmod 755 /var/log/kolla/hacluster | ||
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,11 @@ | ||
FROM {{ namespace }}/{{ image_prefix }}hacluster-base:{{ tag }} | ||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" | ||
|
||
{% block hacluster_corosync_header %}{% endblock %} | ||
|
||
{% import "macros.j2" as macros with context %} | ||
|
||
{% set hacluster_corosync_packages = ['corosync'] %} | ||
{{ macros.install_packages(hacluster_corosync_packages | customizable("packages")) }} | ||
|
||
{% block hacluster_corosync_footer %}{% endblock %} |
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 @@ | ||
FROM {{ namespace }}/{{ image_prefix }}hacluster-base:{{ tag }} | ||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" | ||
|
||
{% block hacluster_pacemaker_remote_header %}{% endblock %} | ||
|
||
{% import "macros.j2" as macros with context %} | ||
|
||
{% set hacluster_pacemaker_remote_packages = ['pacemaker-remote'] %} | ||
{{ macros.install_packages(hacluster_pacemaker_remote_packages | customizable("packages")) }} | ||
|
||
{% block hacluster_pacemaker_remote_footer %}{% endblock %} |
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 @@ | ||
FROM {{ namespace }}/{{ image_prefix }}hacluster-base:{{ tag }} | ||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" | ||
|
||
{% block hacluster_pacemaker_header %}{% endblock %} | ||
|
||
{% import "macros.j2" as macros with context %} | ||
|
||
{% set hacluster_pacemaker_packages = ['pacemaker'] %} | ||
{{ macros.install_packages(hacluster_pacemaker_packages | customizable("packages")) }} | ||
|
||
{% block hacluster_pacemaker_footer %}{% endblock %} |
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 @@ | ||
FROM {{ namespace }}/{{ image_prefix }}hacluster-base:{{ tag }} | ||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" | ||
|
||
{% block hacluster_pcs_header %}{% endblock %} | ||
|
||
{% import "macros.j2" as macros with context %} | ||
|
||
{% set hacluster_pcs_packages = ['pcs','crmsh'] %} | ||
{{ macros.install_packages(hacluster_pcs_packages | customizable("packages")) }} | ||
|
||
{% block hacluster_pcs_footer %}{% endblock %} |
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 |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
'etcd', | ||
'fluentd', | ||
'haproxy', | ||
'hacluster', | ||
'keepalived', | ||
'kibana', | ||
'kolla-toolbox', | ||
|
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 @@ | ||
--- | ||
features: | ||
- | | ||
Add HAcluster Docker images. These images contain High Availability | ||
solution such as Corosync, Pacemaker, Pacemaker Remote and PCS. | ||
HAcluster will not handle any OpenStack control plane resources, it | ||
will be used as third party for OpenStack Masakari for example to handle | ||
the instances failover if a Nova compute crash. |