Commit graph

137 commits

Author SHA1 Message Date
Magnus Andersson 4f63fa0f60
Readd microk8s node 2024-10-24 09:02:13 +02:00
Magnus Andersson a3215eae9b
Try to deploy with older version of puppet sunet 2024-10-24 08:19:39 +02:00
Magnus Andersson 9a23e78011
remove microk8s 2024-10-23 16:28:09 +02:00
Magnus Andersson 03839ba41b
Remove channel spec for microk8s. 2024-10-23 15:34:47 +02:00
Magnus Andersson 8cf1b38f15
Downgrade microk8s version in test. 2024-10-23 15:14:16 +02:00
Magnus Andersson d32825ec66
Update worker peers 2024-10-22 13:52:28 +02:00
Magnus Andersson f9b217e538
Update peer ip addresses 2024-10-22 13:41:34 +02:00
Magnus Andersson 09359e07af
Add new jocar key to validate cosmos modules apparmor and nagioscfg 2024-10-15 16:07:13 +02:00
Magnus Andersson fcfc9fc0ac
Delete expired gpg keys for mandersson on servers. 2024-10-15 16:03:15 +02:00
Magnus Andersson 7d34d653e6
Add woker 4 matrix-test to cosmos-rules peer list 2024-10-15 15:45:32 +02:00
Magnus Andersson 71919802c8
Add new ssh key for mandersson 2024-10-15 13:56:48 +02:00
Magnus Andersson 5b480f0088
Add new gpg key for mandersson. 2024-10-15 12:35:12 +02:00
Magnus Andersson 5a36c01199
Mandersson: add new ssh key. 2024-09-16 18:46:12 +02:00
Magnus Andersson a2ed169425
Just move prod lb. 2024-09-16 17:31:09 +02:00
Magnus Andersson 11a54df526
Change frontend servers. 2024-09-16 17:25:03 +02:00
Magnus Andersson 6355d795c0
Fix typo 2024-06-05 17:03:52 +02:00
Magnus Andersson 4a7ca09ca3
Add mariah ssh key 2024-06-05 16:59:37 +02:00
Magnus Andersson b0f691e0b0
Add frontends to k8s. 2024-06-05 14:59:15 +02:00
Magnus Andersson d1a85199c6
Make kub[cw] a special nftables case 2024-05-31 12:57:38 +02:00
Magnus Andersson e87657f209
reenable nftables init 2024-05-31 12:39:35 +02:00
Magnus Andersson becbb55d1a
Disable nftables init 2024-05-31 11:51:48 +02:00
Magnus Andersson 47382d698e
Add kano ssh key 2024-05-29 09:08:09 +02:00
Magnus Andersson 5c57fb769c
Clean up more sunet server options 2024-05-28 22:15:44 +02:00
Magnus Andersson 894e3117f0
Try without nftables 2024-05-28 21:59:25 +02:00
Magnus Andersson 855f06db18
Add cosmos rules for matrix k8s prod. 2024-05-28 10:14:33 +02:00
Magnus Andersson ee78b4942f
Upgrade microk8s version and remove traefik reference 2024-05-28 08:15:49 +02:00
Magnus Andersson 72e0294d5e
Add authorized keys 2024-05-27 22:34:42 +02:00
Magnus Andersson 7869398fae
Confiure k8s peers 2024-05-27 16:22:23 +02:00
Magnus Andersson 14b5ef2910
Restore inital cosmos rule range 2024-05-27 15:37:34 +02:00
Magnus Andersson d35b0a5696
Add general server config 2024-05-27 15:35:57 +02:00
Magnus Andersson 5c4da9100f
Test server rule 2024-05-27 15:12:33 +02:00
Magnus Andersson 8a6e1c1c59
Test server rule 2024-05-27 15:10:27 +02:00
Magnus Andersson 9b3c4ae686
Add mgmt addresses config 2024-05-27 14:53:00 +02:00
Magnus Andersson 06e1e0c57f
Add some more tust 2024-05-27 11:11:36 +02:00
Magnus Andersson 219d351660
Fix setup_cosmos_modules 2024-05-27 11:02:16 +02:00
Magnus Andersson 7e172b5f25
Fix copy/paste error 2024-05-27 10:53:17 +02:00
Magnus Andersson 2dc16fa1b7
Add basic k8s cosmos rules. 2024-05-27 10:50:39 +02:00
Magnus Andersson 17aa029d3c
Add matrix version of setup_cosmos_modules 2024-05-27 10:47:18 +02:00
Magnus Andersson 5c8ef64a2a
Add some ssh keys 2024-05-23 22:55:16 +02:00
Magnus Andersson fd1dd2e302
Add some keys to trust 2024-05-23 22:37:19 +02:00
Johan Wassberg c72f5ccd86
Allow for hosts without class(s) 2024-04-12 15:32:40 +02:00
Patrik Lundin df5558befb
Fix another indentation mismatch 2024-01-24 15:36:52 +01:00
Patrik Lundin 4b93d9c426
run-cosmos: support fleetlock unlocking at boot
This extends run-cosmos with a new argument that calls the unlock
function already included in the script as well as using the already
existing lock() function to make sure there is no race between the
bootup process and cron starting a normal run-cosmos process at the same
time.

The oexit() function is added to support exiting with a OK exit value
the same way eexit() is used to signal something is wrong.

This change also adds the systemd unit file that runs run-cosmos with the
new fleetlock-unlock argument at boot if fleetlock is configured.

While here fix indentation that was mixed between 3 and 4 spaces: it is
now 4 spaces everywhere.
2024-01-24 15:36:34 +01:00
Johan Wassberg a6a67d355f
Diffable 2023-11-14 15:28:46 +01:00
Johan Wassberg 120c4a5a93
A few more depends for Bookworm 2023-11-14 15:27:45 +01:00
Johan Wassberg 58a9ca7aa9
No need of x11 on our servers 2023-10-02 12:39:44 +02:00
Micke Nordin 3aac1f97d8
Add additional packages for use with debian 12
This patch will install three packages that is needed for normal operations of puppet using puppet-sunet with multiverse on Debian 12:

cron puppet-module-puppetlabs-cron-core puppet-module-camptocamp-augeas
2023-07-10 16:32:20 +02:00
Patrik Lundin 7baf9affb1
Add fleetlock support to run-cosmos
Makes run-cosmos request a fleetlock lock before running cosmos "update"
and "apply" steps. This is helpful for making sure only one (or several)
machine out of some set of machines runs cosmos changes at a time. This
way if cosmos (or puppet) decides that a service needs to be restarted
this will only happen on a subset of machines at a time. When the cosmos
"apply" is done a fleetlock unlock request will be performed so the
other machines can progress.

The unlock code in run-cosmos will also run the new tool
sunet-machine-healthy to decide things are good before unlocking. This
way if a restarted service breaks this will stop the unlock attempt
and in turn make it so the others should not break their service as
well, giving an operator time to figure out what is wrong.
2023-06-17 08:10:00 +02:00
Johan Wassberg cf2e6b6518
File provided by Sunet::Dockerhost 2023-04-04 15:21:15 +02:00
Johan Wassberg 5af8093338
Add support for eyaml in Hiera
And at the same time remove support for gpg.

The modern version of the configuration (v5) has been tested with 20.04 but
might work with older dists.
2023-02-16 07:44:37 +01:00