blob: 3e08be096353fbbe027704f7eced3679f00237c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this code except in compliance
# with the License. You may obtain a copy of the License
# at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
all:
STAGEDIR=/dev/null
DISTPATH=/opt/app/pgaas
PYFILES= dcae_admin_db.py
SHFILES= check_cluster isrw list_masters pg_copy \
pg_ctl_promote pg_ctl_restart pg_ctl_start pg_ctl_status pg_ctl_stop repmgrc repmgrdc \
runpsql runpsqll startpsql setpropvalue show_pg_is_in_recovery show_pg_stat_activity show_pg_stat_archiver show_pg_stat_bgwriter \
show_pg_stat_database show_pg_stat_database_conflicts show_pg_statio_user_functions show_pg_statio_user_indexes \
show_pg_statio_user_sequences show_pg_statio_user_tables show_pg_stat_user_indexes show_pg_stat_user_tables \
update_var_run_isrw startbackup stopbackup
stage:
rm -rf $(STAGEDIR)/$(DISTPATH)/bin
mkdir -p $(STAGEDIR)/$(DISTPATH)/bin
for i in *; do \
case $$i in \
*.py ) \
j=`basename $$i .py`; \
cp $$i $(STAGEDIR)/$(DISTPATH)/bin/$$j; \
chmod a+x $(STAGEDIR)/$(DISTPATH)/bin/$$j; \
;; \
makefile | *~ ) ;; \
* ) \
if [ -f $$i ]; then \
cp $$i $(STAGEDIR)/$(DISTPATH)/bin/$$i; \
chmod a+x $(STAGEDIR)/$(DISTPATH)/bin/$$i; \
fi; \
;; \
esac; \
done
NODES="uiopmno5qwpstg01.grant.example.com|uiopmno5qwpstg00.grant.example.com|uiopmno6qwpstg00.grant.example.com|uiopmno6qwpstg01.grant.example.com"
test-admin:
sudo -u postgres ./dcae_admin_db.py configurationChanged in.json
test-gen:
./gen-repmgr-info -n $(NODES)
./gen-repmgr-info -S -L -n $(NODES)
./gen-repmgr-info -s uiopmno6qwpstg -n $(NODES)
./gen-repmgr-info -l uiopmno6qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -c uiopmno5qwpstg00.grant.example.com -n $(NODES)
./gen-repmgr-info -c uiopmno5qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -c uiopmno6qwpstg00.grant.example.com -n $(NODES)
./gen-repmgr-info -c uiopmno6qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -e uiopmno5qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -e uiopmno6qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -m -n $(NODES)
./gen-repmgr-info -C uiopmno5qwpstg00.grant.example.com -n $(NODES)
./gen-repmgr-info -C uiopmno5qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -C uiopmno6qwpstg00.grant.example.com -n $(NODES)
./gen-repmgr-info -C uiopmno6qwpstg01.grant.example.com -n $(NODES)
./gen-repmgr-info -p -n $(NODES)
|