Saltstack生产案例之php和memcached安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Saltstack生产案例之php和memcached安装相关的知识,希望对你有一定的参考价值。

直接git配置文件

yum -y install git

cd /root/tools

git clone https://github.com/unixhot/saltbook-code

cd /root/tools/saltbook-code/salt/prod/keepalived

p -r * /srv/salt/prod/modules/keepalived/

修改一下install.sls

技术分享

可以执行了

salt ‘10-8-86-172‘ state.sls modules.keepalived.install saltenv=prod

 

cd /root/tools/saltbook-code/salt/prod/cluster

cp haproxy-outside-keepalived.sls /srv/salt/prod/cluster/

cp haproxy-outside-keepalived.conf /srv/salt/prod/cluster/files/

cd /srv/salt/prod/cluster/

vim haproxy-outside-keepalived.sls

技术分享

salt ‘10-8-86-172‘ state.sls cluster.haproxy-outside-keepalived saltenv=prod

 

下面是nginx+php

 

以上是关于Saltstack生产案例之php和memcached安装的主要内容,如果未能解决你的问题,请参考以下文章

saltstack部署nginx+php

Saltstack自动部署Haproxy+keepalived+nginx+memcache+php(fastcgi)

Saltstack自动部署Haproxy+keepalived+nginx+memcache+php(fastcgi)

saltstack之jinja,解决生产发布问题

SaltStack之return与job管理

SaltStack之return与job管理