GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bob/cluster-on-node-install.sh at main · calint/bob

Expand file tree

/

cluster-on-node-install.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
48 lines (38 loc) · 1.2 KB
/

cluster-on-node-install.sh

Copy path

File metadata and controls

executable file
·
48 lines (38 loc) · 1.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/bin/sh
# run on the node by cluster-install-nodes.sh
# distribution: Canonical, Ubuntu, 22.04 LTS
set -e
# timeout does not currently work
#apt -o DPkg::Lock::Timeout=-1 update
while ! apt update; do sleep 1; done
apt install unattended-upgrades
apt -y install default-jdk git default-mysql-server
cd /
git clone https://github.com/calint/bob
cd /bob
sh build.sh
cat > /etc/systemd/system/bob.service << EOF
[Unit]
Description=bob
After=mysql.service
[Service]
WorkingDirectory=/bob/
ExecStart=/bob/run.sh
[Install]
WantedBy=multi-user.target
EOF
systemctl enable bob
#
# edit the firewall in your installation to allow access to the mysql port
# from your servers and your ip
#
# mysql allow connection from any host
cp -a /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf.bak
cat /etc/mysql/mysql.conf.d/mysqld.cnf.bak | sed "s/\s*bind-address.*/bind-address=*/g" > /etc/mysql/mysql.conf.d/mysqld.cnf
# mysql create database, user and grant access
echo "create database testdb; create user 'c'@'%' identified by 'password'; grant all on testdb.* to 'c'@'%';" | mysql
#
# add droplet to mysql cluster trusted sources
#
# reboot (logs from the services won't be available otherwise)
reboot
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.