Skip to content

Commit 1aedd10

Browse files
committed
cleanup of sample files
1 parent 8d3b70f commit 1aedd10

28 files changed

+23
-64
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/.vagrant/
2+
.DS_Store
3+
*.log
4+
*.scratch

client.hcl

-10
This file was deleted.

consul-client.hcl

-4
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

launch-a-1.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
#!/bin/bash:wq
22

33
# Start all the things
4-
echo Starting Nomad Server
4+
echo Starting Nomad using Server + Client file
55
cd ~
66
cp /vagrant/nomad-server-a-1.hcl /etc/nomad.d/nomad-server-a-1.hcl
77
sudo nohup nomad agent -config /etc/nomad.d/nomad-server-a-1.hcl &>nomad.log &
88

9-
echo Starting Nomad Client
9+
echo Joining cluster
1010
cd ~
1111
cp /vagrant/nomad-client-a-1.hcl /etc/nomad.d/nomad-client-a-1.hcl
1212
sudo nohup nomad agent -config /etc/nomad.d/nomad-client-a-1.hcl &>nomad.log &
13-
14-
echo Starting Consul
15-
cp /vagrant/consul-server-a-1.hcl /etc/consul.d/consul-server-a-1.hcl
16-
sudo nohup consul agent -config-file /etc/consul.d/consul-server-a-1.hcl &>consul.log &

launch-a-2.sh

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
#!/bin/bash:wq
22

33
# Start all the things
4-
echo Starting Nomad Server
4+
echo Starting Nomad using Server + Client file
55
cd ~
6-
cp /vagrant/nomad-server-a-2.hcl /etc/nomad.d/nomad-server-a-2.hcl
6+
cp /vagrant/server-east.hcl /etc/nomad.d/nomad-server-a-2.hcl
77
sudo nohup nomad agent -config /etc/nomad.d/nomad-server-a-2.hcl &>nomad.log &
88

9-
echo Starting Nomad Client
9+
echo Joining cluster
1010
cd ~
11-
cp /vagrant/nomad-client-a-2.hcl /etc/nomad.d/nomad-client-a-2.hcl
12-
sudo nohup nomad agent -config /etc/nomad.d/nomad-client-a-2.hcl &>nomad.log &
13-
14-
echo Starting Consul
15-
cp /vagrant/consul-server-a-2.hcl /etc/consul.d/consul-server-a-2.hcl
16-
sudo nohup consul agent -config-file /etc/consul.d/consul-server-a-2.hcl &>consul.log &
11+
sudo nohup nomad server join 172.16.1.101

launch-a-3.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash:wq
22

33
# Start all the things
4-
echo Starting Nomad Server
4+
echo Starting Nomad using Server + Client file
55
cd ~
6+
cp /vagrant/server-east.hcl /etc/nomad.d/nomad-server-a-3.hcl
67
sudo nohup nomad agent -config /etc/nomad.d/nomad-server-a-3.hcl &>nomad.log &
78

8-
echo Starting Nomad Client
9+
echo Joining cluster
910
cd ~
10-
sudo nohup nomad agent -config /etc/nomad.d/nomad-client-a-3.hcl &>nomad.log &
11-
12-
echo Starting Consul
13-
sudo nohup consul agent -config-file /etc/consul.d/consul-server-a-3.hcl &>consul.log &
11+
sudo nohup nomad server join 172.16.1.101

launch-b-1.sh

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
#!/bin/bash:wq
22

33
# Start all the things
4-
echo Starting Nomad Server
4+
echo Starting Nomad using Server + Client file
55
cd ~
6+
cp /vagrant/server-west.hcl /etc/nomad.d/nomad-server-b-1.hcl
67
sudo nohup nomad agent -config /etc/nomad.d/nomad-server-b-1.hcl &>nomad.log &
7-
8-
echo Starting Nomad Client
9-
cd ~
10-
sudo nohup nomad agent -config /etc/nomad.d/nomad-client-b-1.hcl &>nomad.log &
11-
12-
echo Starting Consul
13-
sudo nohup consul agent -config-file /etc/consul.d/consul-server-b-1.hcl &>consul.log &

launch-b-2.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash:wq
22

33
# Start all the things
4-
echo Starting Nomad Server
4+
echo Starting Nomad using Server + Client file
55
cd ~
6+
cp /vagrant/server-west.hcl /etc/nomad.d/nomad-server-b-2.hcl
67
sudo nohup nomad agent -config /etc/nomad.d/nomad-server-b-2.hcl &>nomad.log &
78

8-
echo Starting Nomad Client
9+
echo Joining cluster
910
cd ~
10-
sudo nohup nomad agent -config /etc/nomad.d/nomad-client-b-2.hcl &>nomad.log &
11-
12-
echo Starting Consul
13-
sudo nohup consul agent -config-file /etc/consul.d/consul-server-b-2.hcl &>consul.log &
11+
sudo nohup nomad server join 172.16.1.201

launch-b-3.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash:wq
22

33
# Start all the things
4-
echo Starting Nomad Server
4+
echo Starting Nomad using Server + Client file
55
cd ~
6+
cp /vagrant/server-west.hcl /etc/nomad.d/nomad-server-b-3.hcl
67
sudo nohup nomad agent -config /etc/nomad.d/nomad-server-b-3.hcl &>nomad.log &
78

8-
echo Starting Nomad Client
9+
echo Joining cluster
910
cd ~
10-
sudo nohup nomad agent -config /etc/nomad.d/nomad-client-b-3.hcl &>nomad.log &
11-
12-
echo Starting Consul
13-
sudo nohup consul agent -config-file /etc/consul.d/consul-server-b-3.hcl &>consul.log &
11+
sudo nohup nomad server join 172.16.1.201

node-install.sh

-9
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,3 @@ do
5555
done
5656
nomad -autocomplete-install
5757

58-
# Start all the things
59-
#echo Starting Nomad
60-
#cd ~
61-
#sudo nohup nomad agent -config /etc/nomad.d/nomad-server.hcl &>nomad.log &
62-
63-
#echo Starting Consul
64-
#sudo nohup consul agent -config-file /etc/consul.d/consul-server.hcl &>consul.log &
65-
66-
#nomad agent -config nomad-client.hcl
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)