mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
sudo does not work with requiretty
This commit is contained in:
parent
4dab2c34a8
commit
bad9bb289e
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-7.noarch.rpm
|
||||
sudo yum install -y salt-minion
|
||||
sudo mkdir -p /etc/salt/pki
|
||||
sudo echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
|
||||
sudo echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
|
||||
sudo echo '{{ minion }}' > /etc/salt/minion
|
||||
sudo /sbin/chkconfig salt-minion on
|
||||
sudo service salt-minion start
|
||||
rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-7.noarch.rpm
|
||||
yum install -y salt-minion
|
||||
mkdir -p /etc/salt/pki
|
||||
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
|
||||
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
|
||||
echo '{{ minion }}' > /etc/salt/minion
|
||||
/sbin/chkconfig salt-minion on
|
||||
service salt-minion start
|
||||
|
Loading…
Reference in New Issue
Block a user