Commit graph

180 commits

Author SHA1 Message Date
James Hackett
2a7d91e333 Update after some testing and validation
No "200" status for our healthchecks to validate job readiness.
Workaround is to remove the check.
2023-10-08 02:17:55 +01:00
cathalogue
d464dc87da
Merge pull request #7 from redbrick/ams-v2
Ams v2
2023-10-06 13:00:10 +01:00
leath-dub
09f990067f oops 2023-10-06 12:56:37 +01:00
leath-dub
1b5c5c97b8 removed redundant block 2023-10-06 12:49:02 +01:00
leath-dub
b1b4a3ca0a consul does dynamic port map, removed redundant traefik line 2023-10-05 19:27:47 +01:00
leath-dub
ae1896f5ce added env var for dynamic port ? 2023-10-05 19:24:43 +01:00
leath-dub
013f39c7a8 added resource block because react ... 2023-10-05 19:16:06 +01:00
leath-dub
a28ddc29ae oops 2023-10-05 19:06:17 +01:00
leath-dub
68e85d1d86 oops 2023-10-05 19:02:27 +01:00
leath-dub
7f579e9a9d added traefik map to 3000 2023-10-05 19:01:22 +01:00
leath-dub
8b33e2b0a2 changed image and mapped ports to 3000 2023-10-05 18:41:27 +01:00
distrobyte
4d3c69a710 Add job for a nova-timetable user project
This file directory structure can be used for 4th year projects
(user-projects/(third/fourth)-year-project)

I can't validate this, but checkout this branch on one of the hosts and
run `nomad job validate <path>` to ensure the config is okay, followed
by `nomad job plan <path>` to plan it. Run the job at that point using
the check-id. Once you're happy that it runs, return to the master
branch and merge this PR.

nova@redbrick.dcu.ie requested this to be deployed.

A DNS entry will need to be made before planning to ensure that the cert
can be generated by traefik.
2023-10-04 19:34:42 +01:00
DistroByte
8945418b2a
Merge branch 'master' of github.com:redbrick/nomad 2023-09-01 01:14:47 +01:00
DistroByte
dded8a94f6
Update nomad base template to include metrics 2023-09-01 01:13:46 +01:00
James Hackett
4ccb3e461e
Merge pull request #4 from VoyTechnology/ansible-nomad-telemetry
ansible/templates: Enable Nomad Telemetry
2023-08-08 03:21:46 +01:00
distrobyte
917571a140 More fixes
- Rename a task in the consul role to better reflect the actions being
  taken
- Add passwordless sudo as a configurable option to the ssh role,
  include base configuration for that
2023-08-04 14:10:04 +01:00
DistroByte
6a6be89cc2
Merge branch 'master' of https://github.com/redbrick/nomad 2023-08-04 13:50:10 +01:00
distrobyte
944be27ce0 Multiple fixes
- Update apt default packages to include dnsutils
- Update the consul task to set up dns resolution through consul and
  systemd-resolved
- Update the consul server config file to auto join hostnames instead of
  IP addresses, this makes the configuration for the playbook much
  easier
- Add a docker task to install docker (works on arm devices also)
- Updates the hashicorp apt role to allow arm devices to pull from the
  correct upstream repo
2023-08-04 13:43:59 +01:00
cathalogue
2f72e0162d
Merge pull request #5 from leath-dub/master
re enabled http port on 80
2023-07-14 13:06:39 +01:00
leath-dub
10fd62be48 re enabled http port on 80 2023-07-14 13:05:02 +01:00
DistroByte
67c41a862e
add elastic 2023-05-23 21:51:15 +01:00
DistroByte
a8c0dc7880
update ansible roles 2023-05-23 21:50:25 +01:00
James Hackett
4cc6fa82fd
Update cipher suites 2023-05-16 23:29:16 +01:00
James Hackett
c9b1ea69c9 Add minecraft servers and update traefik to allow users to connect 2023-05-15 23:21:57 +01:00
James Hackett
37b648df97 Add minecraft job spec
Add a local user and let them tunnel a port and connect to localhost

ssh -L 25565:10.10.0.4:<exposed port> <user>@glados.redbrick.dcu.ie -p
80

Then in the minecraft server settings on the client, type localhost
2023-05-02 13:26:20 +01:00
James Hackett
7a91784e9e Upgrade Traefik TLS cipher suites 2023-04-15 13:44:26 +01:00
Wojtek Bednarzak
ec497ff457
ansible/templates: Enable Nomad Telemetry
Enable Telemetry with prometheus metrics so that Nomad metrics can be
scraped and alerts can be created if there's an issue.
2023-03-22 23:42:11 +00:00
James Hackett
5d75e7287e remove extra config 2023-03-22 01:41:21 +00:00
James Hackett
ccdb45b861 fix perms 2023-03-22 01:40:32 +00:00
James Hackett
2e72a9a628 change resource alloc and fix networking configs 2023-03-22 01:38:22 +00:00
James Hackett
850ac39e02 add second job for more examples 2023-03-18 15:02:39 +00:00
James Hackett
96528a57bd
fix ip address command 2023-03-18 14:13:40 +00:00
James Hackett
092d0d8414
add some extra context 2023-03-18 14:08:16 +00:00
James Hackett
9a3121f14b
add README for user VMs 2023-03-18 14:05:18 +00:00
James Hackett
8019d50f06
update ansible roles 2023-03-18 14:04:55 +00:00
James Hackett
33fb23933f update permissions 2023-03-18 13:13:16 +00:00
James Hackett
a4f218dc99 add vm job config with networking 2023-03-18 13:12:45 +00:00
James Hackett
d62ebc01ab add half working vm job 2023-03-15 00:24:58 +00:00
James Hackett
149c806271 fix permissions 2023-03-15 00:19:55 +00:00
cawnj
06d7fc079c jobs: add ams, karting, and cawnj-test 2023-02-22 14:29:34 +00:00
James Hackett
96afca40cb fix dcufm env vars 2023-02-14 06:49:56 +00:00
distrobyte
c75bde2257 add become to required tasks 2023-02-11 01:56:48 +00:00
James Hackett
2bb2533bef fixes consul kv templating 2023-01-20 00:04:01 +00:00
James Hackett
6b28f589d8 set become: true on apt role 2023-01-10 13:26:56 +00:00
James Hackett
a0651f3f5d adds ansible check mode and vpn reminder 2022-12-23 14:54:40 +00:00
James Hackett
e3cdfb5785 Merge branch 'master' of https://github.com/redbrick/nomad 2022-12-19 23:09:23 +00:00
James Hackett
bb0e9045a2 adds ssl to nginx 2022-12-19 23:08:57 +00:00
James Hackett
2cb77974ea advises users to create vpn configs for users added via role 2022-12-19 20:45:56 +00:00
James Hackett
b6c49df58c adds check for ansible check_mode 2022-12-19 20:45:26 +00:00
James Hackett
77570effb5 adds role to check local and remote heads 2022-12-19 20:45:08 +00:00