Skip to content

ralex/salt-masterless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

salt-masterless

Test bootstrap install

Saltstack top file and states for my masterless setup.

Bootstrap a masterless machine

curl https://raw.githubusercontent.com/ralex/salt-masterless/master/bootstrap.sh -o bootstrap.sh
chmod +x bootstrap.sh
./bootstrap.sh

Documentation

Repository Content
salt-masterless (This repository) Contains states to manage a masterless setup
salt-laptop Provides states for a work station setup

Determining which state must be applied is based on roles grains applied on each machine.

For example, here is the file /etc/salt/grains on my personal computer:

roles:
  - laptop
  - home

Diagram

salt-pillar is a private git repository as it may contain sensitive informations.

Debugging

Add test=True on state.apply to print out potential changes before applying:

sudo salt-call state.apply test=True

The same apply on a specific state:

sudo salt-call state.apply <state> test=True

Display which states will be applied on the current machine:

sudo salt-call state.show_top

Print highstate (every state applied including the order in which it will be applied):

sudo salt-call state.show_highstate

Basically printing the same information as show_highstate but for a specific state:

sudo salt-call --local state.show_low_sls <state>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published