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

Index

A

  • a2enmod binary
    • about / There's more…
  • alternatives
    • configuring / Configuring alternatives, How it works...
  • apache-repo
    • URL / How to do it...
  • apache state module
    • URL / See also
  • Apache Tomcat
    • Java, setting up for / How to do it..., How it works...
    • packages / Apache Tomcat packages, files, and services, How to do it..., How it works...
    • files / Apache Tomcat packages, files, and services, How to do it..., How it works...
    • services / Apache Tomcat packages, files, and services, How to do it..., How it works...
    • WAR file, deploying in / How to do it..., How it works...
  • Apache web server
    • about / Apache web server packages and services
    • packages / How to do it..., How it works...
    • services / How to do it..., How it works...
  • apache_module state module
    • URL / See also
  • archive files
    • handling / Handling archive files, How to do it..., How it works...
  • attributes, cmd state
    • cwd / There's more…
    • user / There's more…
    • group / There's more…
    • env / There's more…
    • creates / There's more…
  • attributes, pkg module
    • fromrepo / How it works...
    • version / How it works...
    • refresh / How it works...
    • hold / How it works...

C

  • CentOS
    • Salt master, installing on / Installing the Salt master on RedHat/CentOS/Fedora
    • Salt minion, installing on / Installing the Salt minion on RedHat/CentOS/Fedora
  • cloud maps
    • configuring / Configuring cloud maps, How it works...
  • cloud operations, Salt
    • /etc/salt/cloud file / How it works...
    • /etc/salt/cloud.providers file / How it works...
    • /etc/salt/cloud.profiles file / How it works...
    • /etc/salt/cloud.map file / How it works...
    • /etc/salt/cloud.providers.d directory / How it works...
    • /etc/salt/cloud.profiles.d directory / How it works...
  • cloud profiles
    • configuring / Configuring cloud profiles, How it works...
    • extending / Extending profiles and providers, How it works...
  • cloud providers
    • configuring / Configuring cloud providers, How it works...
    • extending / Extending profiles and providers, How it works...
    • URL / How it works...
  • CloudWatch alarms
    • about / Configuring CloudWatch alarms
    • configuring / How to do it..., How it works...
    • URL / See also
  • cmd state
    • attributes / There's more…
  • code repositories
    • managing, with Git / Managing code repositories with Git, How to do it..., How it works...
    • managing, with svn / Managing code repositories with svn, How to do it..., How it works...
  • command line
    • pillar data, setting at / Setting pillar data at the command line
  • commands
    • running / Running commands, How to do it..., How it works...
  • conditionals
    • using, in states / Using conditionals in states and pillars, How to do it..., How it works...
    • using, in pillars / Using conditionals in states and pillars, How to do it..., How it works...
    • Python functions, using in / Using Python functions in conditionals, How to do it..., How it works...
  • connectivity
    • about / How to do it..., How it works...
  • Continuous Integration
    • about / Managing code repositories with Git
  • cron
    • jobs, scheduling with / Scheduling jobs with cron, How it works...

D

  • default package manager
    • used, for managing packages / Managing packages using the default package manager, How to do it..., How it works...
  • disks
    • working with / Working with disks and mounts, How to do it..., How it works..., There's more…
  • DNS
    • configuring, with Route53 / Configuring DNS with Route53, How to do it..., How it works...
    • about / How to do it..., How it works...

E

  • EC2-specific functions
    • URL / How it works...
  • ElastiCache clusters
    • about / Deploying ElastiCache clusters
    • creating / How to do it..., How it works...
    • URL / See also
  • elastic load balancers
    • using / Using elastic load balancers, How it works...
    • URL / See also
  • environment
    • configuring, on minion / Configuring environments and grains on the minion
  • epel-release package
    • URL / Installing the Salt master on RedHat/CentOS/Fedora
  • event library
    • about / How it works...
  • events
    • listening to / Listening to events, How it works..., There's more…
    • firing / Firing events, How to do it..., How it works...
    • URL, for information on firing / See also
  • event sockets
    • about / How it works...
  • event system
    • basics / How to do it..., How it works...
    • URL / See also
  • event types
    • working with / How to do it..., How it works...
    • URL / See also
  • execution modules
    • using / Using execution modules, How to do it..., How it works...
    • URL / How it works...

F

  • Fedora
    • Salt master, installing on / Installing the Salt master on RedHat/CentOS/Fedora
    • Salt minion, installing on / Installing the Salt minion on RedHat/CentOS/Fedora
  • files
    • managing / Managing files, How to do it..., How it works...

G

  • gem
    • used, for managing packages / Managing packages using rvm, gem, and pip, How to do it..., How it works...
  • general cloud functions
    • performing / Performing general cloud functions, How to do it..., How it works...
  • Git
    • code repositories, managing with / Managing code repositories with Git, How to do it..., How it works...
  • grains
    • about / Introduction
    • configuring, on minion / Configuring environments and grains on the minion
    • setting, in /etc/salt/minion / Setting grains in /etc/salt/minion, Setting grains in /etc/salt/minion
    • setting, in /etc/salt/grains / Setting grains in /etc/salt/grains, Setting grains in /etc/salt/grains
    • using, in states / Using grains in states, How to do it..., How it works...
    • setting / Setting host entries and grains, How to do it..., How it works...
  • groups
    • adding / How to do it..., How it works...

H

  • highstate
    • about / There's more…
  • host entries
    • setting / Setting host entries and grains, How to do it..., How it works...
  • htpasswd
    • used, for performing web server security / Web server security with htpasswd, How to do it..., How it works...
  • htpasswd/webutil state module
    • URL / See also

I

  • installing
    • Salt master / Installing and configuring the Salt master
    • Salt master, on RedHat / Installing the Salt master on RedHat/CentOS/Fedora
    • Salt master, on CentOS / Installing the Salt master on RedHat/CentOS/Fedora
    • Salt master, on Fedora / Installing the Salt master on RedHat/CentOS/Fedora
    • Salt master, on Ubuntu / Installing the Salt master on Ubuntu
    • Salt minion / Installing and configuring the Salt minion
    • Salt minion, on RedHat / Installing the Salt minion on RedHat/CentOS/Fedora
    • Salt minion, on CentOS / Installing the Salt minion on RedHat/CentOS/Fedora
    • Salt minion, on Fedora / Installing the Salt minion on RedHat/CentOS/Fedora
    • Salt minion, on Ubuntu / Installing the Salt minion on Ubuntu
  • instances
    • launching / Launching, querying, and destroying instances, How to do it..., How it works...
    • querying / Launching, querying, and destroying instances, How to do it..., How it works...
    • destroying / Launching, querying, and destroying instances, How to do it..., How it works...
  • iterations
    • using, in states / Using iterations in states, How it works...

J

  • Java
    • setting up, for Apache Tomcat / How to do it..., How it works...
  • jinja
    • about / How it works...
  • jobs
    • scheduling, with cron / Scheduling jobs with cron, How it works...

K

  • kernel configuration
    • setting / How to do it..., How it works...

L

  • listeners, configuring for events
    • URL / See also
  • locale
    • setting / How to do it..., How it works...
  • loops
    • about / Using iterations in states

M

  • masterless minion
    • about / The masterless minion
  • masterless minions
    • Salt states, applying on / Applying Salt states to masterless minions
  • md5 hash, for jdk-7u71-linux-x64.gz file
    • URL, for downloading / How to do it...
  • methods, for targeting minions
    • name-based matching, with shell style globbing / How it works...
    • list-based matching / How it works...
    • regular expression-based matching / How it works...
    • grain-based matching / How it works...
    • subnet/IP-based matching / How it works...
    • pillar-based matching / How it works...
    • matching, on Grain-based regular expression / How it works...
    • compound matching / How it works...
    • nodegroup matching / How it works...
  • minion
    • environment, configuring on / Configuring environments and grains on the minion
    • grains, configuring on / Configuring environments and grains on the minion
  • minions
    • Salt states, applying to / Applying Salt states to minions, How to do it...
    • targeting / Targeting minions, How to do it..., How it works...
  • mounts
    • working with / Working with disks and mounts, How to do it..., How it works..., There's more…
  • msgpack
    • about / Introduction
  • multi-master (active-active mode)
    • setting up / How to do it..., How it works...
  • multi-master (active-passive mode)
    • setting up / Salt multi-master setup (active-passive mode), How to do it..., How it works...
  • MySQL
    • packages, using / Using MySQL packages, files, and services, How to do it..., How it works...
    • files, using / Using MySQL packages, files, and services, How to do it..., How it works...
    • services, using / Using MySQL packages, files, and services, How to do it..., How it works...
    • queries, running / Running MySQL queries, How to do it..., How it works...
    • user grants, providing / Providing MySQL user grants, How to do it..., How it works...
  • MySQL database
    • using / Using MySQL databases, How to do it..., How it works...
    • users, creating / Creating MySQL database users, How to do it..., How it works...

N

  • network configurations
    • managing / Managing network configurations, How to do it..., How it works...
  • nodegroups
    • configuring / Configuring nodegroups, How it works...

O

  • orchestrate
    • about / Orchestration with Salt orchestrate
    • using / How to do it..., How it works...
  • orchestration
    • about / Orchestration with Salt orchestrate

P

  • package repositories
    • managing / How to do it..., How it works...
  • packages
    • managing, default package manager used / Managing packages using the default package manager, How to do it..., How it works...
    • managing, rvm used / Managing packages using rvm, gem, and pip, How to do it..., How it works...
    • managing, gem used / Managing packages using rvm, gem, and pip, How to do it..., How it works...
    • managing, pip used / Managing packages using rvm, gem, and pip, How to do it..., How it works...
  • Personal Package Archives (PPA) / How it works...
  • pillar data
    • writing / Writing and retrieving pillar data, How to do it..., How it works...
    • retrieving / Writing and retrieving pillar data, How to do it..., How it works...
    • using, in states / How to do it..., How it works...
    • setting, at command line / Setting pillar data at the command line
  • pillars
    • including, in pillar file / Including other pillars in the pillar file
    • conditionals, using in / Using conditionals in states and pillars, How to do it..., How it works...
  • pip
    • used, for managing packages / Managing packages using rvm, gem, and pip, How to do it..., How it works...
  • pkg module
    • attributes / How it works...
  • ports
    • about / How to do it..., How it works...
  • post-install scripts
    • using / How to do it..., How it works...
  • PostgreSQL
    • packages, using / Using PostgreSQL packages, files, and services, How to do it..., How it works...
    • files, using / Using PostgreSQL packages, files, and services, How to do it..., How it works...
    • services, using / Using PostgreSQL packages, files, and services, How to do it..., How it works...
    • groups, setting up / Setting up PostgreSQL groups and users, How to do it..., How it works...
    • users, setting up / Setting up PostgreSQL groups and users, How to do it..., How it works...
  • PostgreSQL database
    • configuring / Configuring PostgreSQL databases, How it works...
  • postgres_group module
    • URL / See also
  • postgres_user module
    • URL / See also
  • publisher / Firing events
  • push mechanism
    • used, for applying Salt states / Applying states using the push mechanism from master to minion, Applying states using the pull mechanism by minion from master, How it works...
  • Python functions
    • using, in conditionals / Using Python functions in conditionals, How to do it..., How it works...

R

  • reactor module
    • URL / See also
  • reactors
    • using, for Salt tasks / Using reactors for Salt tasks, How to do it..., How it works...
  • reactor system
    • integrating / Integrating and configuring the reactor system, How to do it..., How it works...
    • configuring / Integrating and configuring the reactor system, How to do it..., How it works...
    • URL / See also
  • RedHat
    • Salt master, installing on / Installing the Salt master on RedHat/CentOS/Fedora
    • Salt minion, installing on / Installing the Salt minion on RedHat/CentOS/Fedora
  • require requisite
    • about / There's more…
  • requisites
    • using / Using requisites, How to do it..., How it works...
  • Route53
    • used, for configuring DNS / Configuring DNS with Route53, How to do it..., How it works...
    • URL / See also
  • ruby
    • about / How to do it...
  • runners
    • using / How to do it..., How it works...
    • URL / How it works...
  • rvm
    • used, for managing packages / Managing packages using rvm, gem, and pip, How to do it..., How it works...

S

  • Salt
    • about / Introduction, Introduction
    • advantages / Introduction
  • Salt cloud environment
    • configuring / Configuring the Salt cloud environment, How it works...
  • Salt environment
    • configuring / Configuring the Salt environment and pillar paths, How it works...
  • Salt master
    • installing / Installing and configuring the Salt master
    • configuring / Installing and configuring the Salt master, Configuring the Salt master
    • installing, on RedHat / Installing the Salt master on RedHat/CentOS/Fedora
    • installing, on CentOS / Installing the Salt master on RedHat/CentOS/Fedora
    • installing, on Fedora / Installing the Salt master on RedHat/CentOS/Fedora
    • installing, on Ubuntu / Installing the Salt master on Ubuntu
    • troubleshooting / Troubleshooting the Salt master, How to do it..., How it works...
    • URL, for information on troubleshooting / See also
  • Salt minion
    • installing / Installing and configuring the Salt minion
    • configuring / Installing and configuring the Salt minion, Configuring the Salt minion, How it works...
    • installing, on RedHat / Installing the Salt minion on RedHat/CentOS/Fedora
    • installing, on CentOS / Installing the Salt minion on RedHat/CentOS/Fedora
    • installing, on Fedora / Installing the Salt minion on RedHat/CentOS/Fedora
    • installing, on Ubuntu / Installing the Salt minion on Ubuntu
    • troubleshooting / Troubleshooting the Salt minion, How to do it..., How it works...
    • URL, for information on troubleshooting / See also
  • Salt pillar paths
    • configuring / Configuring the Salt environment and pillar paths, How it works...
  • Salt pillars
    • configuring / How to do it..., How it works...
  • Salt release 2014.7.0, requisites
    • onfail / There's more…
    • onchanges / There's more…
    • unless / There's more…
    • onlyif / There's more…
  • Salt State File / How it works...
  • Salt states
    • writing / How to do it..., How it works...
    • URL / How it works...
    • applying, to minions / Applying Salt states to minions, How to do it...
    • applying, push mechanism used / Applying states using the push mechanism from master to minion, Applying states using the pull mechanism by minion from master, How it works...
    • applying, on masterless minions / Applying Salt states to masterless minions
  • Salt tasks
    • reactors, using for / Using reactors for Salt tasks, How to do it..., How it works...
  • sample.war file
    • URL / How to do it...
  • security groups
    • implementing / Implementing security groups, How it works..., See also
  • services
    • managing / Managing services, How it works...
  • Simple Queue Service (SQS)
    • about / Configuring Simple Queue Service
    • creating / How to do it..., How it works...
    • URL / See also
  • SSH authentication tasks
    • performing / Performing SSH authentication tasks, How to do it..., How it works...
  • state modules
    • about / How it works...
    • using / Using state modules, How it works...
    • URL / How it works...
  • state run
    • testing, before applying to minions / Testing a state run before applying to minions, How to do it..., How it works...
  • states
    • pillar data, using in / How to do it..., How it works...
    • grains, using in / Using grains in states, How to do it..., How it works...
    • conditionals, using in / Using conditionals in states and pillars, How to do it..., How it works...
    • iterations, using in / Using iterations in states, How it works...
    • variables, using in / Setting and using variables in states, How to do it..., How it works...
  • svn
    • code repositories, managing with / Managing code repositories with svn, How to do it..., How it works...

T

  • templates
    • configuring / Configuring templates, How to do it..., How it works...
  • time zone
    • setting / How to do it..., How it works...
  • tomcat module
    • URL / See also
  • too many open files
    • dealing with / Dealing with too many open files, How it works..., See also
  • top file
    • writing / How to do it..., How it works...

U

  • Ubuntu
    • Salt master, installing on / Installing the Salt master on Ubuntu
    • Salt minion, installing on / Installing the Salt minion on Ubuntu
  • use requisite
    • about / There's more…
  • users
    • adding / How to do it..., How it works...

V

  • variables
    • setting / Setting and using variables in states, How to do it..., How it works...
    • using, in states / Setting and using variables in states, How to do it..., How it works...
  • Virtual Private Cloud (VPC) / How to do it...
  • volumes
    • managing / Managing volumes, How to do it..., How it works...

W

  • WAR file
    • deploying, in Apache Tomcat / How to do it..., How it works...
  • war_deployed function
    • using / There's more…
  • watch requisite
    • about / There's more…
  • web server configuration
    • adding / Adding web server configuration, How to do it..., How it works...
  • web server modules
    • managing / Managing web server modules, How to do it..., How it works...
  • web server security
    • performing, with htpasswd / Web server security with htpasswd, How to do it..., How it works...

Y

  • YAML configuration problems
    • dealing with / Dealing with YAML configuration problems, How to do it..., How it works...
  • YAML problems
    • only spaces, no tabs / How it works...
    • indentations / How it works...
    • booleans, and other data / How it works...
    • integers, and dates / How it works...
    • URL / See also