Code Monkey home page Code Monkey logo

Comments (3)

baby-gnu avatar baby-gnu commented on August 11, 2024

I'm now ready to split components into sub-directories.

It seems that we have:

  • the libvirt server
  • the libvirt client
  • the qemu for the server (since libvirt server could manage other things)
  • the tools could be used independently of server/client (qemu-img, libguestfs)

Here is the directory hierarchy I'm planing to define:

libvirt/
├── client
│   ├── clean.sls
│   ├── config
│   │   ├── clean.sls
│   │   ├── file.sls
│   │   └── init.sls
│   ├── files
│   │   └── default
│   ├── init.sls
│   ├── package
│   │   ├── clean.sls
│   │   ├── init.sls
│   │   └── install.sls
│   └── tls
│       ├── cert.sls
│       ├── clean.sls
│       └── init.sls
├── python
│   ├── clean.sls
│   ├── init.sls
│   └── library.sls
├── qemu
│   ├── clean.sls
│   ├── config
│   │   ├── clean.sls
│   │   ├── file.sls
│   │   └── init.sls
│   ├── files
│   │   └── default
│   ├── init.sls
│   └── package
│       ├── clean.sls
│       ├── init.sls
│       └── install.sls
├── server
│   ├── clean.sls
│   ├── config
│   │   ├── clean.sls
│   │   ├── file.sls
│   │   └── init.sls
│   ├── files
│   │   └── default
│   ├── init.sls
│   ├── package
│   │   ├── clean.sls
│   │   ├── init.sls
│   │   └── install.sls
│   ├── service
│   │   ├── clean.sls
│   │   ├── init.sls
│   │   └── running.sls
│   └── tls
│       ├── cert.sls
│       ├── clean.sls
│       └── init.sls
└── tools
    ├── clean.sls
    ├── config
    │   ├── clean.sls
    │   ├── file.sls
    │   └── init.sls
    ├── files
    │   └── default
    ├── init.sls
    └── package
        ├── clean.sls
        ├── init.sls
        └── install.sls

This way:

  • state.apply libvirt will install and configure everything
  • state.apply libvirt.server will only manage the server part
  • state.apply libvirt.client will only manage the client part
  • state.apply libvirt.tools.clean will only unconfigure/remove the tools

This the sub-component scheme as describe in https://github.com/saltstack-formulas/template-formula/blob/develop/docs/TOFS_pattern.rst#using-sub-directories-for-components

Does someone have any comment? (@myii, @Aboe, @vtolstov)

from libvirt-formula.

baby-gnu avatar baby-gnu commented on August 11, 2024

I'm now ready to split components into sub-directories.

It seems that we have:
[…]

  • the tools could be used independently of server/client (qemu-img,
    libguestfs)

Actually, this is the extra_pkgs. I will provide an extra directory instead of a tools.

from libvirt-formula.

myii avatar myii commented on August 11, 2024

@baby-gnu Sounds like an excellent plan to me, always nice to see all of our template-formula structures being applied.

from libvirt-formula.

Related Issues (14)

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.