LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2015, 04:34 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Saltstack - salt/ or pillar/, environment definition?


I'm trying out Saltstack, it looks really good. However, I can't find relevant documentation about the basic structure - there are tons of examples, but the basic stuff is never explained. I want this clear before structuring up my salt master.
So, my questions:
1. What's the difference between the salt/ and the pillar/ directory?
2. What defines the environment - top.sls or directory structure?

In depth:
1. I can put state files (.sls) under both the salt/ and the pillar/ directory - what's the difference?
Some doc's suggest putting everything under pillar/, some puts everything under salt/, some docs uses both directories.
In http://docs.saltstack.com/en/latest/...practices.html it gets really confusing as the state files for package "vim" is placed under salt/vim/, but apaches are placed under pillar/apache/.

2. The environment: What defines the environment?
Suggestion is to have directory structure like this:
salt/base/
salt/dev/
salt/prod/
pillar/base/
pillar/dev/
pillar/prod/

Then in the top.sls there are lines "base:" "dev:" "prod:" etc.
Is that a reference to these directories, or is it the environment definition?
 
Old 04-08-2015, 12:53 AM   #2
ashishb
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
Hey Pingvino Veritas,

Yes, Saltstack is indeed good!!
There is this book published by Packt Publishing titled : Learning Salt Stack ( http://bit.ly/1B4RXWh)
You can check it out in detail. Probably, it might help you with your questions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about salt shaakunthala Linux - Security 2 10-21-2009 11:15 PM
how can i get salt from /etc/shadow jabka Linux - Security 1 12-25-2005 02:19 PM
salt string balajee Linux - Software 1 08-02-2005 12:41 AM
the point of salt in /etc/shadow Berhanie Linux - Security 2 12-08-2004 10:06 PM
environment variable definition skwattakamp Fedora 4 07-23-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration