webtatic:主要供應最新LAMP等軟件源(官網:https://www.webtatic.com/)
web
今天,我用saltstack來安裝其軟件,也就是擴展一個yum倉庫.以方便安裝/更新lamp相關軟件.less
不廢話,直接貼配置yum/init.sls:ide
clean_yum_cache:
cmd.wait:
- name: yum clean all
webatic_rpm:
file.managed:
- name: /soft/latest.rpm
- source: salt://yum/files/latest.rpm
- mode: 644
- unless: test -e /soft/latest.rpm
webatic_yum:
cmd.run:
- cwd: /soft/
- names:
- rpm -ivh latest.rpm
- unless: rpm -q webtatic-release
- require:
- file: webatic_rpm
- watch_in:
- cmd: clean_yum_cacheui
供其參考!spa
若是想了解更多,請關注咱們的公衆號
公衆號ID:opdevos
掃碼關注get