Created
December 1, 2017 19:23
-
-
Save towens/aa681ab3c757ddf4eec6ddb7d7a56e03 to your computer and use it in GitHub Desktop.
Revisions
-
towens created this gist
Dec 1, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ sudo visudo getenforce setenforce 0 sudo setenforce 0 getenforce sudo reboot sudo getenforce exit curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com sudo sh bootstrap-salt.sh git v2017.7.2 sudo pip install pip -U sudo systemctl stop salt-minion sudo systemctl disable salt-minion sudo pip install docker-py cd /tmp/ ll sudo yum remove docker docker-common docker-selinux docker-engine sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce sudo systemctl start docker sudo docker run hello-world sudo usermod -aG docker $USER exec $SHELL docker run hello-world cd /srv/salt cd /etc/salt/ ll which vim sudo yum install vim -y ll sudo vim minion.d/min.conf echo "file_client: local" > minion.d/min.conf sudo echo "file_client: local" > minion.d/min.conf cd minion.d/ sudo echo "file_client: local" > min.conf sudo su -c 'echo "file_client: local" > min.conf' cat min.conf ll cd /srv/ sudo mkdir salt && cd salt ll sudo su -c 'echo -e "base:\n \"*\":\n - vim" > top.sls' cat top.sls sudo su -c 'echo -e "vim:\n pkg.installed" > vim.sls' cat vim.sls cd sudo salt-call --local dockerng.sls_build test mods=vim sudo salt-call --local dockerng.sls_build test mods=vim -ldebug