Coder Social home page Coder Social logo

htw-webtech / ai-webtech-ansible Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 315 KB

Ansible code für den Aris-Service (CI, Admin-App, App-Hosting) für die Veranstaltung "Webtentwicklung" des Studiengangs Angewandte Informatik an der HTW-Berlin

Ruby 4.16% Shell 95.84%

ai-webtech-ansible's People

Watchers

 avatar  avatar  avatar

ai-webtech-ansible's Issues

Make Services restart-safe

It seems that the HTW occasionally restarts the server. When the day the revealjs, nginx and postgres-service do not restart with the server. Probably the systemd unit-file needs some tweaking.

Create a separate student account/model

Problem
Currently everything is an app. So the app-folder gets bloated over time and the jenkins ui is hard to navigate, too. There is no feasible way to distinguish from the os perspective which app or jenkins job relates to which student.

Solution
One solution would be to introduce a student model that represents the credentials on the aris server, e.g. git-ssh access, file permissions and could be used to organize the files into student directories:

  • /var/apps/s0001/ which contains alls the students apps
  • /var/lib/jenkins/jobs/s0001/ which contains all the students jobs

As a result I can also create a finer grained ansible aris-cron which only checks for the necessary changes. E.g. a change on the app does not imply checking the os-users ssh configuration.

  • aris-user-cron
  • aris-app-cron
  • aris-jenkins-cron

Migration
I need to migrate the current system since many things may be leaking outside:

  • The git-ssh access leaks the app-name and needs to be updated by each student
  • Also I would remove all app folders including the students code. Therefore each student would have to push his code again to the new bare repository

Rename slides.* to portal.*

The welcome/default page contains actually much more than the slides, e.g:

  • exercises
  • setup hints
  • timetable (tbd)
  • and ofc slides

I think the name portal.htw-webtech.com or something similar would be more approriate than slides.htw-webtech.com

FIX: jenkins access to ruby and gems

Problem
Right now the jenkins service is configured via systemd unit file. Access to ruby is configured via Environment-Declaration. This seems like a brittle solution when upgrading ruby versions.

Solution
TODO

Aris/Jenkins-Cron: Stability issues when ansible faults

Problem
Wenn Ansible bei einem Task abstuerzt kuemmert es sich nicht mehr darum hinter sich aufzuraeumen. Bspw. die processing.yml zu entfernen. Das sieht dann fuer den crojob so aus, als wuerde der Task noch laufen.

Solution
Einen wrapper fuer aris/jenkins-cronjobs bauen der sich um das aufraeumen kuemmert.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.