Skip to content

Updates to system administration labs

Scott Cosentino requested to merge sys-admin-automation-changes into main

Why is this change being made?

💡 Provide a detailed answer to the question on why this change is being proposed, in accordance with our value of Transparency.

Please add the details saying why, not just what in this section. Example: We have discussed the topic in Slack - (copy of Slack conversation). The current process is not efficient, this MR makes the description of X more clear, and helps move Y forward.

During a full test of our instance automation, I noticed a few instructions that needed updating, as well as a few instructions that will change based on machine images and SSH instructions.

Most notable changes:

  • The SSH user is now root, so all SSH instructions should use root rather than ec2-user (ex: ssh -i <keyfile_name> root@<vm_ip_address>). This should also avoid issues where a student misses a sudo since their user is sudo by default.
  • All instances of dnf are now apt-get. Example: sudo apt-get install -y curl policycoreutils perl postfix.
    • The image being used is now Debian as opposed to RedHat (RedHat costs us around $80/month/student extra, and it doesn't really add a benefit). Everything works the same, just these commands change due to package manager differences
  • All of the other changes are just small UI differences, or tabs for markdown formatting

I have tested all of these changes, they all look to work. If you want to try out the changes, you can use these instances I generated today with the automation: https://gitlab.com/gitlab-com/customer-success/education-services/lab-infrastructure/-/issues/32#note_1968821434. Instance SSH key is available here: https://drive.google.com/file/d/1Np2-8ajNKEnucubpcUpQnex27JNNp0aS/view

Author and Reviewer Checklist

Please verify the check list and ensure to tick them off before the MR is merged.

  • Provided a concise title for this Merge Request (MR)
  • Added a description to this MR explaining the reasons for the proposed change, per say why, not just what
    • Copy/paste the Slack conversation to document it for later, or upload screenshots. Verify that no confidential data is added, and the content is SAFE
  • Assign reviewers for this MR to the correct Directly Responsible Individual/s (DRI)
    • If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the Maintained by section on the page being edited
    • If your manager does not have merge rights, please ask someone to merge it AFTER it has been approved by your manager in #mr-buddies
    • The when to get approval handbook section explains the workflow in more detail
  • For transparency, share this MR with the audience that will be impacted.
    • Team: For changes that affect your direct team, share in your group Slack channel
    • Department: If the update affects your department, share the MR in your department Slack channel
    • Division: If the update affects your division, share the MR in your division Slack channel
    • Company: If the update affects all (or the majority of) GitLab team members, post an update in #whats-happening-at-gitlab linking to this MR

Commits

  • Updates to system administration labs

Edited by Scott Cosentino

Merge request reports

Loading