<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                一)我們在配置文件/etc/salt/master,配置了file_roots,設置了sys文件保存的位置,例如/srv/salt,為了方便管理,如果會進入到這個目錄,按照不同的功能,創建目錄。例如 [admin@master salt]$ pwd /srv/salt [admin@master salt]$ cd web/ 2)那么怎么指定哪些機器指定哪些sls呢? 配置/etc/salt/master,找到 #state_top: top.sls (把#號去掉啟用) 那么top.sls應該放到base環境下 # root of the base environment as defined in "File Server settings" below. state_top: top.sls 案例: ![](https://box.kancloud.cn/1ccf6a9b0e345d6c50f27341f9377e0a_357x142.png) 說明: 可以給不同的minion,安裝執行不同的salt狀態 指定高級狀態---會把top.sls當作一個入口文件 [admin@master /srv/salt ]$ sudo salt '*' state.highstate test="ture" (加上test=“ture” 測試一下,看看改變了什么,如果沒喲問題,然后在去執行”) 說明: 1)在生產環境,盡量不要使用"*",盡量用目標匹配 2)不要不測試就直接運行,一定要使用test="ture" 二) 1)案例1-----安裝apache [admin@master apache]$ sudo vim apache.sls apache-install: pkg.installed: - names: - httpd - httpd-devel apache-service: service.running: - name: httpd - enable: true ![](https://box.kancloud.cn/45b5292ce8493b942db4462eb4f1f4cc_419x154.png) 然后執行: [admin@master srv]$ sudo salt '*' state.sls web.apache ---------- ID: apache-install Function: pkg.installed Name: httpd Result: True Comment: The following packages were installed/updated: httpd Started: 15:28:47.719330 Duration: 93765.38 ms Changes: ---------- httpd: ---------- new: 2.4.6-67.el7.centos.6 old: httpd-tools: ---------- new: 2.4.6-67.el7.centos.6 old: mailcap: ---------- new: 2.1.41-2.el7 old: 那么minion是如何執行呢? 當master運行狀態的時候,把把需要運行的sls發送給各minion端,如下: [admin@node2 salt]$ pwd /var/cache/salt [admin@node2 salt]$ tree minion/ minion/ ├── accumulator ├── extmods ├── files │?? └── base │?? └── web │?? └── apache.sls ├── highstate.cache.p ├── proc └── sls.p 6 directories, 3 files
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看