Code Monkey home page Code Monkey logo

scooby's People

Contributors

rayui avatar

Stargazers

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

Watchers

 avatar  avatar

scooby's Issues

fix disable bluetooth and wifi

agent config creates a file with contents:

dtoverlay=disable-wifi
dtoverlay=disable-bt

this seems to break pi3.

should probably be changed in the shared base image so is present for all agents

Investigate wait on boot

Master node is currently set to wait on boot

To get current network on boot setting: sudo raspi-config nonint get_boot_wait
To enable waiting for network on boot: sudo raspi-config nonint do_boot_wait 0

It causes boot time to increase significantly. Investigate if it is possible to disable and still work

Move env variables into config

Create /etc/scooby/conf

populate with environment variables from local .env file
source from there

exclude all secrets

Update README

After all features complete, update and review README

  • add instructions for how to use as template
  • add instructions for how to update from template
  • explain what packer token is
  • update build section
    • building with default values creates a only master k3s node
    • it has no k3s deployments
    • you cannot ssh in to it
  • artefact storage
  • s3 uploader
  • gotchas
    • rtl8151
    • serve dhcp to external network
    • cloud-init goes silent for about 4 minutes on first boot
    • smarter devices
  • correct missing variable in agent config block code example
  • check for spelling mistakes
  • check for spelling grammar
  • check for spelling tone and brevity

Agent creator script

Add script to /usr/local/bin to add agent from agent description file in /etc/scooby/agents at runtime

Create some example configurations

e.g.
master node with pihole
master and agent node with nginx and lighttpd
master node and two agent nodes with prometheus and grafana

Investigate lighttpd

Now almost all config is put into the server and client configurations on build, it should be possible to remove the need to serve cloud-init config via http and instead serve it from the client's own boot directory

Create agent image in master image

Don't copy agent image as a separate file
Instead, extend disk image by 2G, dd base boot and root partitions at start of new empty space. These will serve as the agent base
Apply server changes to original partitions (at start of disk)

Investigate mount server root as overlayfs

This ticket is complete when it is known

  • whether root fs can be mounted as overlay
  • if we can share root image with agents

on completion:

  • create ticket to mount server root fs as overlay partition, share it with agents and remove agent partitions

note:
overlayfs is a kernel service

placeholder files

add placeholder README files with examples
will also help add correct directory structure to help get started

Implement S3 upload

Bring back S3 uploads for server image

If AWS secret keys are set, upload image to bucket

make part of gh workflow yaml only

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.