Code Monkey home page Code Monkey logo

etc's Introduction

ocf-etc

This repo contains configuration files which are replicated to and automatically updated on every OCF host at /etc/ocf/. Configuration files are written in YAML and have schemas defined in the schemas folder.

To validate the files, simply run:

make

Adding a new configuration file

To add a new configuration file:

  1. Create the data file (configs/yourconfig.yaml).
  2. Create the schema file (schemas/yourconfig.schema.json).
  3. Add your file to configs/validate.yaml, and associate it with its schema.
  4. Commit changes to this repo
  5. Add ocflib functions to read your config file
  6. Add tests in this repo that ensure the ocflib functions won't throw exceptions.

etc's People

Contributors

64bitpandas avatar ben9583 avatar benjitorres avatar boomaa23 avatar bryli avatar bzh-bzh avatar cg505 avatar dkess avatar dongkyunc avatar encadyma avatar ethanhs avatar ethanwu10 avatar fydai avatar ja5087 avatar jaysa68 avatar jvperrin avatar jyxzhang avatar kalissaac avatar milotrince avatar mrminos avatar nikhiljha avatar oliver-ni avatar oski-bear avatar potatoparser avatar pxhanus avatar ronitnath avatar saurabhnarain avatar singingtelegram avatar snowshoes7 avatar storce avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

etc's Issues

Schema for lab status (shown on website)

This would substitute the ~staff/lab_status.yaml file we currently use, which displays urgent announcements on our website. This one is probably easier than the other ones since we probably don't need to make ocflib functions for it if the code to parse the file already exists in ocfweb. Just needs a schema and a small change in ocfweb.

Schema for historical officers

See ocf.io/d/85. This would be used on our officers page and would be the new canonical source of "who is gm/sm currently"

Protect the master branch

GitHub supports "protecting" branches, only allowing PRs to be merged if they pass certain checks.

This requires using the "status check" feature of GitHub. Basically, we need Jenkins to tell GitHub that a commit hash is OK to be merged. While we have automatic Jenkins builds, none of our repos use the status check feature.

It looks like the GitHub Jenkins plugin supports this (see https://wiki.jenkins.io/display/JENKINS/GitHub+Plugin#GitHubPlugin-Pipelineexamples), so it's just a matter of adding this to the Jenkinsfile. We might also want to put this functionality in the shared pipeline repository if we expect it to be used in other repos.

Set up a dev-app-alias apphost so we can check aliases are working correctly

Currently in our apphosting vhosts, we have dev-app.ocf.berkeley.edu set up, but it has no aliases (unlike the web testing vhosts, which do have aliases, for instance dev-vhost-alias.ocf.berkeley.edu). It would be nice to have an alias created so that we can test that aliases are still being parsed and loaded by ocflib correctly and test using them on server upgrades.

I've put this in this repo since I'm moving vhost config here (#108) but this could go in ocf/projects or something instead.

Update meeting_hours.yaml for sp22

Just leaving this here as a reminder as meeting times are still getting finalized but I'll prob update them myself once that's done.

Also it's looking like Web will be meeting at the same time as DDR and Finance is meeting once every two weeks, which may present some problems in ocflib so I'll create an issue there for that as well.

The issue of n-weekly meetings is probably gonna necessitate changes to schemas/meeting_hours.json too, so that's something to keep in mind.

(Possible) schedule copied from meeting 3 slides:

Meeting Day Time
Staff Wednesday 8pm-9pm
BOD Wednesday 7pm-8pm
Kubernetes Saturday 11am-12pm
DDR Saturday 12pm-1pm
Linux-Infra Saturday 1pm-2pm
Web Saturday 12pm-1pm
External Saturday 2pm-3pm
Internal Saturday 3pm-4pm
DeCal Tuesday/Thursday 8pm-10pm
Finance Friday (Biweekly) 5pm-6pm

Relavent ocflib issue: ocf/ocflib#242

Schema for meeting hours

There was some talk on an ocfstatic issue about getting meeting times to be an API call as opposed to being hard-coded into the website. As it stands, there are a few places in the website that each report staff meetings, but changing one of them means all of them have to be changed.

It might be a good idea then to get a meeting_hours.yaml and meeting_hours.schema.json so we can lay the foundation for this idea. It would operate similar to staff hours, just recording meetings for the different committees instead. I've started some work on this and hopefully I can get a pr soon™.

Deploy step flaky

image

I've seen this this happen when two things are building at the same time? There could also be other causes.

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.