O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using post-install scripts

When Salt cloud is used to launch instances, they need to be configured to install the Salt minion package, and register themselves with the Salt master. This task is done by using post-install scripts. In this recipe, we will learn about the procedure to use post-install scripts in Salt cloud.

How to do it...

  1. On the Salt master, execute the following command:
    [root@salt-master ~]# ls -l /usr/lib/python2.6/site-packages/salt/cloud/deploy/
    total 248
    -rw-r--r-- 1 root root    864 Jun 17  2014 Arch-git.sh
    -rw-r--r-- 1 root root    677 Jun 17  2014 Arch.sh
    -rw-r--r-- 1 root root 166951 Sep 19 11:52 bootstrap-salt.sh
    -rw-r--r-- 1 root root    735 Aug  1  2014 curl-bootstrap-git.sh
    -rw-r--r-- 1 root root 708 Aug 1 2014 curl-bootstrap.sh ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required