Skip to content

Commit 17ce139

Browse files
committed
2 parents f52d975 + 510443a commit 17ce139

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+97
-63
lines changed

ansible/inventory

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ localhost ansible_connection=local ansible_python_interpreter="/usr/bin/env pyth
44

55
crunchy_debug='false'
66

7+
# ==================
8+
# Kuberenetes and OpenShift Settings
9+
# Note: Either Kubernetes or OpenShift must be used
10+
11+
# Deploy into Openshift
12+
# ==================
13+
# Note: openshift_host can use the format https://URL:PORT
14+
# Note: openshift_token can be used for token authentication
15+
# ==================
16+
# openshift_host=''
17+
# openshift_skip_tls_verify=true
18+
# openshift_user=''
19+
# openshift_password=''
20+
21+
# Deploy into Kubernetes
22+
# ==================
23+
# Note: Context name can be found using:
24+
# kubectl config current-context
25+
# ==================
26+
# kubernetes_context=''
27+
728
# ===================
829
# PGO Settings
930
# The following settings configure the Crunchy PostgreSQL Operator
@@ -12,9 +33,11 @@ crunchy_debug='false'
1233
pgo_client_install='true'
1334

1435
# Namespace where operator will be deployed
36+
# NOTE: Ansible will create namespaces that don't exist
1537
pgo_operator_namespace='pgo'
1638

1739
# Comma separated list of namespaces Operator will manage
40+
# NOTE: Ansible will create namespaces that don't exist
1841
namespace='pgo'
1942

2043
# PGO Admin Credentials
@@ -25,6 +48,8 @@ pgo_admin_password=''
2548
pgo_tls_no_verify='false'
2649

2750
# Crunchy Container Suite images to use. The tags centos7 and rhel7 are acceptable.
51+
# CentOS7 images can be found in dockerhub: https://hub.docker.com/u/crunchydata
52+
# RHEL7 images are available to Crunchy customers: https://access.crunchydata.com/login/
2853
ccp_image_prefix='crunchydata'
2954
ccp_image_tag='centos7-11.2-2.4.0'
3055

@@ -96,8 +121,7 @@ prometheus_install='true'
96121
# ==================
97122
# Which storage definitions to use when creating persistent volumes
98123
# for a variety of uses.
99-
# Note: it is suggested that backup_storage be configured to a ReadWriteMany
100-
# storage provider for pgBackRest to work correctly.
124+
101125
backrest_storage='storage1'
102126
backup_storage='storage1'
103127
primary_storage='storage2'
@@ -107,7 +131,7 @@ storage1_access_mode='ReadWriteMany'
107131
storage1_size='1G'
108132
storage1_type='dynamic'
109133
storage1_class='nfs'
110-
#storage1_supplemental_groups=65534
134+
storage1_supplemental_groups=65534
111135
#storage1_fs_group=26
112136

113137
storage2_access_mode='ReadWriteOnce'
@@ -121,19 +145,26 @@ storage3_access_mode='ReadWriteOnce'
121145
storage3_size='1G'
122146
storage3_type='dynamic'
123147
storage3_class='fast'
148+
storage3_fs_group=26
124149
#storage3_supplemental_groups=65534
125-
#storage3_fs_group=26
126150

127151
# ==================
128-
# Deploy into Openshift
129-
# Note: openshift_token can be used for token authentication
152+
# Metrics
130153
# ==================
131-
# openshift_host=''
132-
# openshift_skip_tls_verify=true
133-
# openshift_user=''
134-
# openshift_password=''
154+
# Optional installation of Grafana and Prometheus optimized
155+
# to work with the Crunchy PostgreSQL Operator
135156

136-
# ==================
137-
# Deploy into Kubernetes
138-
# ==================
139-
# kubernetes_context=''
157+
# Note: Ansible will create namespaces that don't exist
158+
metrics_namespace='metrics'
159+
160+
grafana_install='false'
161+
grafana_admin_username='admin'
162+
grafana_admin_password=''
163+
#grafana_storage_access_mode='ReadWriteOnce'
164+
#grafana_storage_class_name='fast'
165+
#grafana_volume_size='1G'
166+
167+
prometheus_install='false'
168+
#prometheus_storage_access_mode='ReadWriteOnce'
169+
#prometheus_storage_class_name='fast'
170+
#prometheus_volume_size='1G'

ansible/roles/pgo-metrics/tasks/kubernetes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
shell: "kubectl get namespace {{ metrics_namespace }}"
44
register: namespace_details
55
ignore_errors: yes
6+
no_log: true
67
tags: install-metrics
78

89
- name: Create Namespace {{ metrics_namespace }}

ansible/roles/pgo-metrics/tasks/openshift.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
shell: "{{ openshift_oc_bin}} get project {{ metrics_namespace }}"
44
register: namespace_details
55
ignore_errors: yes
6+
no_log: true
67
tags: install-metrics
78

89
- name: Create Project {{ metrics_namespace }}

hugo/content/operatorcli/cli/pgo.md

Lines changed: 1 addition & 1 deletion

hugo/content/operatorcli/cli/pgo_apply.md

Lines changed: 1 addition & 1 deletion

hugo/content/operatorcli/cli/pgo_backup.md

Lines changed: 1 addition & 1 deletion

hugo/content/operatorcli/cli/pgo_benchmark.md

Lines changed: 1 addition & 1 deletion

hugo/content/operatorcli/cli/pgo_cat.md

Lines changed: 1 addition & 1 deletion

hugo/content/operatorcli/cli/pgo_create.md

Lines changed: 1 addition & 1 deletion

hugo/content/operatorcli/cli/pgo_create_cluster.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)