-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set DOMserver IPs #167
Merged
Merged
Set DOMserver IPs #167
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
65a0969
Set DOMserver IPs
vmcj 7730200
Split the analyst
vmcj bf21d43
Use judgehost IPs from Pat sheet
vmcj f70dec6
Some default settings
vmcj cea40fe
Use admin IPs from Pat sheet
vmcj ca91ee4
Fix last naming
vmcj da44bcd
Use difference between pat/troy list
vmcj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
group_vars/onprem/analyst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
group_vars/onprem/analyst |
37 changes: 37 additions & 0 deletions
37
provision-contest/ansible/group_vars/onprem/analyst/secret.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Server VLAN IP prefix. | ||
SERVER_IP_PREFIX: 172.29.1 | ||
|
||
# URL and IP of domserver from judgehosts. A hostname 'domserver' with | ||
# DOMSERVER_IP will be added to the judgehost /etc/hosts file. | ||
DOMSERVER_IP: "{{SERVER_IP_PREFIX}}.240" | ||
|
||
WF_GREEN: true | ||
|
||
# Static IP address configuration. Uses the ansible_host variable as the static | ||
# IP address. Only configured if STATIC_IP_ENABLED is true. | ||
STATIC_IP_ENABLED: false | ||
STATIC_IP_NETMASK: 255.255.252.0 | ||
STATIC_IP_GATEWAY: 172.29.0.1 | ||
STATIC_IP_INTERFACE: enp1s0 | ||
|
||
# Additional entries for the /etc/hosts file. | ||
HOSTS: | ||
cds: 172.29.1.207 | ||
packages: 172.29.1.209 | ||
ntp1: 172.29.1.208 | ||
ntp2: 172.29.1.209 | ||
nisprint: 172.29.1.211 | ||
nismaster: 172.29.1.211 | ||
printsrv: 172.29.1.211 | ||
|
||
GRAFANA_MONITORING: false | ||
|
||
# Password for the MySQL replication user. | ||
# Set this to enable master-master replication between two domservers. | ||
#REPLICATION_PASSWORD: {some-strong-replication-password} | ||
|
||
# Database user password. | ||
DB_PASSWORD: {some-strong-database-password} | ||
|
||
# Credentials for the judgehost. | ||
JUDGEHOST_PASSWORD: {some-strong-judgehost-password} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
group_vars/onprem/wfinal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
group_vars/onprem/wfinal |
3 changes: 3 additions & 0 deletions
3
provision-contest/ansible/group_vars/onprem/wfinal/secret.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Password for the MySQL replication user. | ||
# Set this to enable master-master replication between two domservers. | ||
REPLICATION_PASSWORD: {some-strong-replication-password} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
[all:vars] | ||
ansible_user=root | ||
ansible_python_interpreter=/usr/bin/python3 | ||
|
||
# When moving clients for ad-hoc actions: | ||
# move them to their own group to keep hosts files on deployed machines in sync. | ||
|
||
[onprem:children] | ||
domserver | ||
judgehost | ||
grafana | ||
admin | ||
|
||
[online:children] | ||
online-domserver | ||
online-judgehost | ||
|
||
[domserver:children] | ||
wfinal-domserver | ||
analyst-domserver | ||
|
||
[wfinal-domserver] | ||
# Set EFI_ORDER onsite for faster boot | ||
#EFI_ORDER='0\,1\,3\,4' | ||
domjudge-primary ansible_host=10.3.3.216 KEEPALIVED_PRIORITY=100 | ||
domjudge-backup ansible_host=10.3.3.217 KEEPALIVED_PRIORITY=99 | ||
|
||
[wfinal-domserver:children] | ||
emergency | ||
|
||
[emergency] | ||
domjudge-laptop ansible_host=10.3.3.199 | ||
|
||
[judgehost:children] | ||
analyst-judgehost | ||
wfinal-judgehost | ||
|
||
[wfinal-judgehost] | ||
domjudge-judgehost1 ansible_host=10.2.2.192 | ||
domjudge-judgehost2 ansible_host=10.2.2.193 | ||
domjudge-judgehost3 ansible_host=10.2.2.194 | ||
domjudge-judgehost4 ansible_host=10.2.2.195 | ||
domjudge-judgehost5 ansible_host=10.2.2.196 | ||
domjudge-judgehost6 ansible_host=10.2.2.197 | ||
domjudge-judgehost7 ansible_host=10.2.2.198 | ||
domjudge-judgehost8 ansible_host=10.2.2.199 | ||
domjudge-judgehost9 ansible_host=10.2.2.200 | ||
domjudge-judgehost10 ansible_host=10.2.2.201 | ||
domjudge-judgehost11 ansible_host=10.2.2.202 | ||
domjudge-judgehost12 ansible_host=10.2.2.203 | ||
domjudge-judgehost13 ansible_host=10.2.2.204 | ||
domjudge-judgehost14 ansible_host=10.2.2.205 | ||
domjudge-judgehost15 ansible_host=10.2.2.206 | ||
domjudge-judgehost16 ansible_host=10.2.2.207 | ||
|
||
[analyst-judgehost] | ||
green-judgehost1 ansible_host=172.29.1.221 | ||
green-judgehost2 ansible_host=172.29.1.222 | ||
green-judgehost3 ansible_host=172.29.1.223 | ||
|
||
[admin] | ||
domjudge-ccsadmin1 ansible_host=10.3.3.224 | ||
domjudge-ccsadmin2 ansible_host=10.3.3.225 | ||
domjudge-ccsadmin3 ansible_host=10.3.3.226 | ||
domjudge-ccsadmin4 ansible_host=10.3.3.227 | ||
domjudge-ccsadmin5 ansible_host=10.3.3.228 | ||
|
||
[grafana] | ||
# During the WFs we use one of the ccsadmin machines | ||
# Doesn't matter which (admin) machine but should not be 1 as that runs ansible | ||
domjudge-ccsadmin2 ansible_host=10.3.3.225 | ||
|
||
[analyst-domserver] | ||
# Discuss if we can have this host dualhomed in blue to make management easier.\ | ||
# Looking at the IP sheet that would mean that our emergency laptop needs to move. | ||
domjudge-analyst ansible_host=172.29.1.240 | ||
|
||
[online-domserver] | ||
online-domserver ansible_host=192.168.255.255 | ||
|
||
[online-judgehost] | ||
online-judgehost1 ansible_host=192.168.255.255 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping all this means we have no example of it anymore on main. Does that make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, forgot to change the base to
wfastana
.