<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      10、salt-api,配置文件include

      方便二次開發調用

      https://www.unixhot.com/docs/saltstack/ref/netapi/all/salt.netapi.rest_cherrypy.html#a-rest-api-for-salt

       

      執行參考

      https://www.unixhot.com/docs/saltstack/ref/netapi/all/salt.netapi.rest_cherrypy.html#a-rest-api-for-salt

       

      安裝salt-api并配置

      yum install -y salt-api

      yum install -y pyOpenSSL

      salt-call --local tls.create_self_signed_cert

      [root@linux-node1 ~]# vim /etc/salt/master

      打開這行配置,include配置文件

      default_include: master.d/*.conf

      cd /etc/salt/master.d/

      useradd -M -s /sbin/nologin saltapi
      echo "saltapi" | passwd saltapi --stdin

       

      cat api.conf 

      rest_cherrypy:
        host: 192.168.1.61
        port: 8000
        ssl_crt: /etc/pki/tls/certs/localhost.crt
        ssl_key: /etc/pki/tls/certs/localhost.key

      cat auth.conf

      external_auth:
        pam:
          saltapi:
            - .*
            - '@wheel'   # to allow access to all wheel modules
            - '@runner'  # to allow access to all runner modules
            - '@jobs'    # to allow access to the jobs runner and/or wheel module

      systemctl restart salt-master
      systemctl start salt-api.service

      測試使用

      curl -sSk https://192.168.1.61:8000/login \
          -H 'Accept: application/x-yaml' \
          -d username=saltapi \
          -d password=saltapi \
          -d eauth=pam
          
          
          
      return:
      - eauth: pam
        expire: 1614280132.851175
        perms:
        - .*
        - '@wheel'
        - '@runner'
        - '@jobs'
        start: 1614236932.851172
        token: 7cd1f9a18f502094e624abd4cf6873778567bdb8
        user: saltapi
        
      
      curl -sSk https://192.168.1.61:8000 \
          -H 'Accept: application/x-yaml' \
          -H 'X-Auth-Token: 7cd1f9a18f502094e624abd4cf6873778567bdb8'\
          -d client=local \
          -d tgt='*' \
          -d fun=test.ping
      
      curl -sSk https://192.168.1.61:8000 \
          -H 'Accept: application/x-yaml' \
          -H 'X-Auth-Token: 7cd1f9a18f502094e624abd4cf6873778567bdb8'\
          -d client=local \
          -d tgt='*' \
          -d fun=cmd.run -d arg='uptime'

       

      posted @ 2021-02-25 15:20  莫莫學習  閱讀(138)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 熟女一区二区中文在线| 亚洲成a人在线播放www| 精品久久久久久久中文字幕| 日韩亚av无码一区二区三区| 亚洲欧洲精品成人久久曰| AV最新高清无码专区| 爱性久久久久久久久| 亚洲av无码成人精品区一区| 亚洲国产另类久久久精品网站 | 国产精品制服丝袜无码| 久久香蕉国产线看观看怡红院妓院 | 一区二区国产高清视频在线| 蜜桃视频无码区在线观看| 日本一区二区三区在线看| 成人免费乱码大片a毛片| 又污又爽又黄的网站| 久爱无码精品免费视频在线观看 | 遵化市| 人妻va精品va欧美va| 亚洲国产高清av网站| 国产精品成人网址在线观看| 午夜av高清在线观看| 亚洲人妻一区二区精品| 乱码中文字幕| 国产成人亚洲综合色婷婷秒播| 亚洲男人在线天堂| 好看的国产精品自拍视频| 久久国产成人精品av| 欧美国产亚洲日韩在线二区| 中国女人熟毛茸茸A毛片| av中文字幕在线二区| 日本一卡2卡3卡四卡精品网站| 亚洲最大在线精品| 久久午夜私人影院| 国产精品午夜精品福利| 和艳妇在厨房好爽在线观看 | 麻豆国产va免费精品高清在线| 久热这里只有精品在线观看 | 国产成人高清亚洲综合| 国产精品人妻一码二码尿失禁| 午夜一区欧美二区高清三区|