See https://github.com/viccuad/salt-configs .

The idea is to apply the Puppet code pattern to create salt config files to setup from a GUIless workstation, to laptop configs, Desktop Environments, and later add NAS, router, media servers, Kodi, etc.

Dotfiles

If you don't want to dive into salt and just want to extract some dotfile config from here, look at: - salt/profile/dotfiles/<whatever>/files/*: a file tree that you could put right on to ~ with stow and the like - salt/profile/dotfiles/<whatever>/files/init.sls: salt state to install dependencies, append environmental variables, aliases, process template and copy them where they correspond, etc - salt/profile/dotfiles/<whatever>/templates/*: files that are processed by salt and copied into place

Salt code pattern

Debug salt on your client (the machine running the salt-minion) via:

salt-call -l debug --state-output=mixed state.apply

The code that describes the infrastructure is implementing the following pattern:

  • Description of the infrastructure:

[] Ids (identity of the machine. Eg: machine02) [] [] Roles (business logic. Eg: workstation, nas) [] [] [] Profiles (Configure whole stack. Eg: dns server) [] [] [] [] Salt formulas (Configure part of the stack. eg: sshd)

  • Data of the infrastructure: separated into the pillars.

This pattern is a best-practices one for Puppet, see 1 and 2.

Building your own Debian Stretch image

Until Debian Stretch is officially released, you can build your own Stretch lxc image (following the official scripts) and use it for the Vagrantfile.

Inside this repo, do:

$ git clone https://anonscm.debian.org/git/cloud/debian-vm-templates.git $ sudo make -C debian-vm-templates/custom-lxc-vagrant stretch $ cp debian-vm-templates/custom-lxc-vagrant/stretch.box . $ vagrant up $ rm stretch.box

Looking for hackers with the skills:

saltstack salt debian dotfiles configs vagrant

This project is part of:

Hack Week 15

Activity

  • over 2 years ago: vcuadradojuan liked saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan added keyword "saltstack" to saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan added keyword "salt" to saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan added keyword "debian" to saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan added keyword "dotfiles" to saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan added keyword "configs" to saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan added keyword "vagrant" to saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan started saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)
  • over 3 years ago: vcuadradojuan originated saltify dotfiles, workstation, laptop, Desktop Environment and beyond (NAS, router, media center, Kodi, if time allows)

  • Comments

    • vcuadradojuan
      over 3 years ago by vcuadradojuan | Reply

      managed to make a dent into dotfiles, laptop, and destop env setup:

      https://github.com/viccuad/salt-configs/graphs/contributors?from=2017-02-17&to=2017-02-26&type=a

    Similar Projects

    Learn SaltStack Enterprise by pagarcia

    Uyuni uses the open source version of Salt to i...


    Port Salt virt modules to idem by cbosdonnat

    Salt is moving towards a plugable architecture ...


    Provisioning Prometheus exporters with Uyuni revisited by j_renner

    There is a number of annoyances and pending imp...


    SUSE Manager: Windows client support by pagarcia

    Let's see how much, if any, of the steps descri...


    Modernize Mash deployment by seanmarlow

    Mash is a Python based CI/CD pipeline for aut...


    Learn SaltStack Enterprise by pagarcia

    Uyuni uses the open source version of Salt to i...


    Port Salt virt modules to idem by cbosdonnat

    Salt is moving towards a plugable architecture ...