Coder Social home page Coder Social logo

vishal-biyani / saltstack-cluster Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 6.0 54 KB

Saltstack workshop with hands on demo. The workshop sets you up with a running Saltstack cluster on your laptop and walks through key concepts with practical demos.

Home Page: http://vishal-biyani.github.io/saltstack-cluster/

Shell 3.49% SaltStack 18.18% HTML 78.08% Scheme 0.25%
saltstack vagrant salt configuration-management vagrantfile infrastructure-as-code infrastructure-management infrastructure-automation paas workshop

saltstack-cluster's Introduction

Saltstack Workshop

Introduction

Saltstack is a configuration management platform for managing large infrastructure. This workshop sets you up with a small cluster on your laptop and then walks through key concepts with explanations and hands on code & demo. You can follow along the tutorial trail and learn Saltstack. All you need is a laptop with sufficient resources to run a few VMs.

This site is best viewed here, if you are viewing on Github do navigate to link above

Modules

Module Description
Setup Setup the local environment so that you can start using Saltstack cluster
Targetting How to target nodes from a large cluster of nodes
Grains How to use Grains to get information of systems
YAML Three simple rules to use YAML
Pillar User defined configuration data
Directory Structure The structure of code and data in Salt
Remote execution How to fire commands from the master
Jinja Templating language for programming Salt
State Files Salt States which converge infrastructure
Formula The logical units of the Saltstack
Salt Mine How to use mine for cross node data retrieval
Salt Beacons Beacons for watching things
Reactor How to create events and actions
Orchestration Orchestrate complex workflows

saltstack-cluster's People

Contributors

vishal-biyani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

saltstack-cluster's Issues

salt '*' state.highstate fails with current salt ver. 2017.7.2

Thank you so much for this nice mini cluster setup.

But something seems to be broken with current version of salt --version 2017.7.2 ?

When I run sudo salt '*' state.highstate

sudo salt '*' state.highstate
smaster.learn.com:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or master_tops data matches found.
     Changes:   

Summary for smaster.learn.com
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
Total run time:   0.000 ms
1.sagent.learn.com:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or master_tops data matches found.
     Changes:   

Summary for 1.sagent.learn.com
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
Total run time:   0.000 ms
0.sagent.learn.com:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or master_tops data matches found.
     Changes:   

Summary for 0.sagent.learn.com
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
Total run time:   0.000 ms
ERROR: Minions returned with non-zero exit code

Also the /vagrant/salt/srv/salt/top.sls file contains:

base:
  'G@roles:apache':
    - apache
  'G@roles:redis':
    - redis.server

But a sudo salt '*' state.show_top shows empty or non-exixstent top file?

sudo salt '*' state.show_top
0.sagent.learn.com:
    ----------
1.sagent.learn.com:
    ----------
smaster.learn.com:
    ----------

Which explains why the highstate fails? But I don't know why it doesn't find and run the highstate under this version? Is this a salt version regression?

The active salt master config file is:
sudo cat -tve /etc/salt/master | egrep -v '^#|^\$'

 file_roots:$
   base:$
     - /srv/salt$
     - /vagrant/salt/srv/salt$
 pillar_roots:$
   base:$
     - /srv/pillar$
     - /vagrant/salt/srv/pillar$

all the required (and un-edited) files from your git repo are there ls -R /vagrant/salt/srv/salt/

/vagrant/salt/srv/salt/:
apache  orch  redis  redis_key_check.sls  top.sls

/vagrant/salt/srv/salt/apache:
apache_down.sls  files  init.sls

/vagrant/salt/srv/salt/apache/files:
index.html.jinja

/vagrant/salt/srv/salt/orch:
flow1.sls

/vagrant/salt/srv/salt/redis:
common.sls  files  init.sls  map.jinja  server.sls

/vagrant/salt/srv/salt/redis/files:
redis-2.4.conf.jinja  redis-2.8.conf.jinja  redis-3.2.conf.jinja  upstart.conf.jinja
redis-2.6.conf.jinja  redis-3.0.conf.jinja  redis_initd.jinja

And I had added the apache role grain

sudo salt '*' cmd.run 'cat /etc/salt/grains'

1.sagent.learn.com:
    role:
    - apache
0.sagent.learn.com:
    role:
    - apache
smaster.learn.com:
    role:
    - apache

Any idea what is going on here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.