Chapter 4
Introducing salt-call

salt-call invokes Salt locally.

4.1 Starting at the End

Setup to Follow Along

If you have not done so already, setup according to §1.3.1 and, if you need to archive any current class files §1.3.2.2.

1cd sfs

On Mac/Linux:

1cp -r sfs-material/sfsP2020cp010 classroom

On Windows:

1xcopy sfs-material\sfsP2020cp010 classroom /E

All Platforms:

1cd classroom 
2vagrant up

Once your classroom VM is available connect using SSH.

1vagrant ssh

This VM is preloaded with a Salt configuration to build this server into a simple web server consisting of nginx serving a simple static website form /var/www/html.

Run Salt locally on this server using:

1sudo salt-call state.highstate

This command will take a while to run, during which nothing will appear to happen. On completion you will see results dumped to the screen.

On your host computer, open a web browser and visit http://localhost:35555. You will see a simple web site being served from the VM.