Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

Document separation of concerns between ansible and app repos #189

@jotaen4tinypilot

Description

@jotaen4tinypilot

It’s not always 100% clear where functionality should go, either to the ansible repo or the app one. So for example:

  • When do we create privileged scripts and implement the logic around it in a shell script, vs. when do we just add a sudoer’s entry for a specific command and implement the other logic in Python?
  • How do we go about repetition between the two repos, e.g. when certain parameters are needed in both repositories? Example: configfs paths for mass storage, that we have both in the app and in ansible.
  • Does the fact that we have mock scripts for local development justify single-line privileged scripts, only for the sake of mocking them out? Or is it okay to just use debug toggles for that? What is our general approach towards dev-prod-parity?

It’s probably hard to come up with a definite answer, but at least we could try writing up some guidelines that help us make consistent decisions.

PRs/Issues during which that discussion came up already:

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationmedium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions