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 ...

Get Salt Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.