Book Image

Salt Cookbook

By : Anirban Saha
Book Image

Salt Cookbook

By: Anirban Saha

Overview of this book

Table of Contents (18 chapters)
Salt Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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
    -rw-r--r-- 1 root root   1297 Jun 17  2014 Debian-git.sh
    -rw-r--r-- 1 root root   1049 Jun 17  2014 Debian.sh
    -rw-r--r-- 1 root root   1187 Jun 17  2014 Fedora-git.sh
    -rw-r--r-- 1 root root    982 Jun 17  2014 Fedora.sh
    -rw-r--r--...