salt-master

48 views
Skip to first unread message

Rahul kumar Patel

unread,
Feb 4, 2015, 6:44:40 AM2/4/15
to salt-...@googlegroups.com
can any one tell me simple steps requeird to create saltstack master on linux or window 

Ajinkya Joshi

unread,
Feb 4, 2015, 7:02:18 AM2/4/15
to salt-...@googlegroups.com
Configuration on Master - 

[root ~]# yum install salt-master 
[root ~]# /etc/init.d/salt-master start 
[root  ~]#  chkconfig salt-master on

Manage your minions by accepting key :- 
salt-key -l    -  This will show list of unaccepted keys
salt-key –a  <minion_name>   -   This will accept your minion

Test your minion using 
salt ‘minion_name’ test.ping

Configuration on Minion - 
[root ~]# yum install salt-minion 
[root ~]# /etc/init.d/salt-minion start 
[root  ~]#  chkconfig salt-minion on

Edit minion configuration file - 
[root ~]# vim /etc/salt/minion
# master: salt
 master: Master servers IP address

Give your minion a nickname (If you want)
Open /etc/salt/minion_id
[root ~]# vim /etc/salt/minion_id
Enter nickname here
:wq!
[root ~]# # Now restart the minion
[root ~]# vim /etc/init.d/salt-minion restart

Test your minion using 
salt ‘minion_name’ test.ping

Output of this command must be True !!!!!

Stephen Spencer

unread,
Feb 4, 2015, 8:38:36 AM2/4/15
to salt-...@googlegroups.com

Not to be difficult, but you really need to spend some time with the documentation. If you didn't get far enough to find the installation steps, you will be hard pressed to make your newly-minted salt-master do anything useful.

-S

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rahul kumar Patel

unread,
Feb 16, 2015, 11:28:20 PM2/16/15
to salt-...@googlegroups.com
thanx for helping,

one more problem i am facing here,how to configure salt halite on ubuntu system ?



--
You received this message because you are subscribed to a topic in the Google Groups "Salt-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/salt-users/fvfi5_6xXjU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.

Ajinkya Joshi

unread,
Feb 16, 2015, 11:33:05 PM2/16/15
to salt-...@googlegroups.com

Can you mention the error ?

Rahul kumar Patel

unread,
Feb 17, 2015, 1:59:07 AM2/17/15
to salt-...@googlegroups.com
1> first i opened the master conf file and modify it by

  external_auth:
    pam:
     testuser:
       - .*
       - '@runner'

2> note:testuser is my username(which is not root user)

and i am adding the halite conf code at the end of salt-master
configuration file

halite: level: 'debug' server: 'cherrypy' host: '0.0.0.0' port: '8080' cors: False tls: True certpath: '/etc/pki/tls/certs/localhost.crt' keypath: '/etc/pki/tls/certs/localhost.key' pempath: '/etc/pki/tls/certs/localhost.pem'

3>then i save it and quite
 4>when i tried to run the command
  
salt-call tls.create_self_signed_cert tls

5> i am getting this error


Attempt to authenticate with the salt master failed




Reply all
Reply to author
Forward
0 new messages