Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning SaltStack

You're reading from   Learning SaltStack Learn how to manage your infrastructure by utilizing the power of SaltStack

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784394608
Length 174 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Colton Myers Colton Myers
Author Profile Icon Colton Myers
Colton Myers
Arrow right icon
View More author details
Toc

Adding a new minion

The initial examples in this chapter will be all about cross-platform states. To make the examples clearer, we will add a new minion running CentOS 6.5. See Chapter 1, Diving In – Our First Salt Commands, if you need a refresher on how to install salt-minion on a new server. Here's a quick two-liner to install a minion using Salt-Bootstrap:

# curl -L https://bootstrap.saltstack.com -o install_salt.sh
# sudo sh install_salt.sh

Tip

Note that the easiest way to ensure the minion can easily communicate with the master is to have them both as cloud VMs rather than local VMs so that they have individual, public-facing IP addresses.

After installing the same version running on my master, I configured my minion to connect to my master's IP with the name centminion. Here is my /etc/salt/minion configuration on my new minion:

master: 69.164.192.51
id: centminion

Then, of course, restart your minion, as follows:

# sudo service salt-minion restart
Stopping salt-minion...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image