-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpackages.yml
113 lines (99 loc) · 2.8 KB
/
packages.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# This file is part of deployment-tool.
# Copyright (C) 2014-2016 Sequent Tech Inc <legal@sequentech.io>
# deployment-tool is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License.
# deployment-tool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
# along with deployment-tool. If not, see <http://www.gnu.org/licenses/>.
---
- name: Packages, Updating packages
become: true
apt:
update_cache: yes
- name: Packages, Adding nodejs dependency
become: true
script: sequent-ui/templates/install_node.sh
- name: Packages, Installing packages
become: true
apt:
pkg:
- git
- htop
- curl
- postgresql-12
- postgresql-12-repmgr
- mercurial
- supervisor
- openjdk-8-jdk-headless
- libffi-dev
- virtualenvwrapper
- libjpeg8-dev
- libpq-dev=12*
- libpq5=12*
- python3-psycopg2
- python3-pip
- python3
- python2
- python-setuptools
- build-essential
- python2-dev
- python3-dev
- vim
- libgmp-dev
- make
- m4
- p7zip-full
- nginx
- zip
- python3-pip
- python-pip-whl
- python3-virtualenv
- virtualenv
- python-dev
- libxslt1-dev
- libxml2-dev
- libz-dev
- libssl-dev
- redis-server
- redis-tools
- clang
- llvm
- cmake
state: present
force: yes
- name: Packages, stop postgresql service
become: true
service:
name: postgresql
state: stopped
- name: Packages, set postgresql 12 service port
become: true
lineinfile:
dest: /etc/postgresql/12/main/postgresql.conf
regexp: '\s*port\s*=\s*\d+.*'
line: "port = 5432"
- name: Packages, start postgresql service
become: true
service:
name: postgresql
state: started
- name: Packages, ensure postgresql starts on boot
become: true
systemd:
name: postgresql
enabled: true
- name: Packages, Generate UTF-8 locales
become: true
shell: locale-gen en_US en_US.UTF-8 es_ES es_ES.UTF-8
- name: Packages, Configure locales
become: true
shell: dpkg-reconfigure --frontend noninteractive locales
- name: Packages, Create postgresql cluster
become: true
shell: pg_createcluster --start -e UTF-8 --locale=UTF-8 --lc-collate=UTF-8 --lc-ctype=UTF-8 12 main
register: cmdoutput
failed_when: "'Error: cluster configuration already exists' not in cmdoutput.stderr and cmdoutput.rc != 0"