Giter Site home page Giter Site logo

Comments (2)

ewdurbin avatar ewdurbin commented on August 23, 2024

I think a variant of this idea might be best:

Another avenue may to be establish a githib workflow that runs on a scheduled cron interval, pulls changes from salt using salt-cp, and creates a pull request using create-pull-request action.

I don't think we can use salt-cp since GitHub Actions runners aren't part of.... and I don't think we want to add them to... our salt installation.

Rather, we could potentially publish files over HTTP from the salt-master that we want to fetch. Similar to the way that we have the salt-master respond to LetsEncrypt acme-challenges in

/etc/nginx/sites.d/letsencrypt-well-known.conf:
file.managed:
- source: salt://base/config/letsencrypt-well-known-nginx.conf
- user: root
- group: root
- mode: "0644"
- require:
- file: /etc/nginx/sites.d/
- sls: tls.lego
/etc/consul.d/service-letsencrypt-well-known.json:
file.managed:
- source: salt://consul/etc/service.jinja
- template: jinja
- context:
name: letsencrypt-well-known
port: 9000
- user: root
- group: root
- mode: "0644"
- require:
- pkg: consul-pkgs
, we could:

  • Create a new /srv/public directory
  • Change the psf_known_hosts and salt-server-list.rst managed files to be created in that directory
  • Add an nginx config and consul-service that serves that directory over HTTP
  • Add a service to our loadbalancer that exposes that HTTP service to the world
  • Outside of salt, we would add a DNS record pointing to that domain on the loadbalancer

Then our scheduled GitHub Action can access the files via HTTP, see if they've changed, and use the create-pull-request action to open a PR when they do.

from psf-salt.

ewdurbin avatar ewdurbin commented on August 23, 2024

This is complete. #343

from psf-salt.

Related Issues (20)

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.