Giter Site home page Giter Site logo

vagrant-salt-starter's Introduction

Vagrant Salt Starter

These scripts will quickly allow you to setup a simple Salt Master and Minion using Vagrant. To get started simply:

$ git clone https://github.com/chadlung/vagrant-salt-starter.git
$ cd vagrant-salt-starter
$ vagrant up

Note: Be aware you are running the Salt Bootstrap script from the Internet, make sure you examine and trust the source before running.

The saltmaster will have IP 192.168.37.10 and minion01 will have IP 192.168.37.11

Once the VMs are both ready you can run the following commands to verify:

minion01

$ vagrant ssh minion01

Inside the minion01 VM run:

$ sudo cat /var/log/salt/minion
$ sudo tail /var/log/salt/minion

You should see output like this:

2015-01-21 04:23:51,857 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:24:01,871 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:24:11,885 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:24:21,899 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:24:31,915 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:24:41,922 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:24:51,937 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:25:01,951 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:25:11,965 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2015-01-21 04:25:21,980 [salt.crypt       ][ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate

Logout of minion01 and log into the saltmaster:

saltmaster

$ vagrant ssh saltmaster

Inside the saltmaster VM run:

$ sudo salt-key -L

You should see output like this:

Accepted Keys:
Unaccepted Keys:
minion01
Rejected Keys:

Accept the minion01 key:

$ sudo salt-key -y -a minion01

The output will be:

The following keys are going to be accepted:
Unaccepted Keys:
minion01
Key for minion minion01 accepted.

Your now good to go!

saltmaster

$ sudo salt minion01 test.ping

The output will be:

minion01:
    True

vagrant-salt-starter's People

Watchers

 avatar

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.