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

Managing code repositories with svn


Subversion was used widely before Git surfaced and became the ultimate standard for code repositories. However, even now, a lot of organizations use Subversion widely and require efficient management methods for deployments. In this recipe, you will learn about how to manage Subversion code repositories using Salt.

How to do it...

We will use the same minion and the state directory as the previous recipe. We will assume that a Subversion repository server has been set up and a user called deploy is allowed to authenticate at the repository with the password C00kbook. We will also assume that a repository called apache-repo has been created and is available to check out at http://svnserver/svn/apache-repo:

  1. Create and edit the /opt/salt-cookbook/pillar/staging/apache/init.sls file to have the following entries:

    svn:
      user: deploy
      passwd: C00kbook
  2. Edit the /opt/salt-cookbook/pillar/staging/top.sls file to have the following entries:

    staging:
      '*':
        - apache...