1 Notes about vagrant-salt usage
2 ==============================
7 * https://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html
8 Salt masterless quickstart
18 * Start a VM using libvirt provider instead of VirtualBox::
20 vagrant up --provider=libvirt
31 * Sync files and re-run salt::
33 vagrant rsync testvm && vagrant provision testvm
35 * Apply salt configuration (in an SSH session)::
37 sudo salt-call --local state.highstate
39 * Apply a specfic .sls file::
41 sudo salt-call --local state.sls common.packages
43 * List the current grains::
45 sudo salt-call --local grains.ls
46 sudo salt-call --local grains.items
48 * List the current pillar items::
50 sudo salt-call --local pillar.items
53 Random notes during the development of the project
54 --------------------------------------------------
56 * Architecture: a test VM is installed with a fully functionnal mailing system. It is connected to a `gateway` VM which filters almost everything:
58 - HTTP communications are forwarded (to allow installing packets)
59 - emails are never forwarded but stored on the VM
60 - every other TCP and UDP ports are filtered