0

我在我的 Ubuntu 操作系统上安装了 salt master 和 minion。现在我想使用 salt master 安装 tomcat 服务器。如何使用 salt-master 安装 Tomcat 服务器

我试过如下

tomcat:
  archive:
    - extracted
    - name: /opt/
    - source: http://tomcat.apache.org/download-70.cgi/apache-tomcat-7.0.47.tar.gz
    - source_hash: md5=efbae77efad579b655ae175754cad3df
    - archive_format: tar
    - tar_options: z
    - if_missing: /opt/apache-tomcat-7.0.47

像下面这样出去

ubuntu:
----------
          ID: tomcat
    Function: archive.extracted
        Name: /opt/
      Result: False
     Comment: File sum set for file /var/cache/salt/minion/_opt_apache-tomcat-7.0.47.tar of efbae77efad579b655ae175754cad3dd does not match real sum of dbe64e2e9c509f949539b41447a875e5
     Changes:   
              ----------
              diff:
                  New file

Summary
------------
Succeeded: 0
Failed:    1
------------
Total:     1

我不知道这到底是不是正确的方式

谁能帮帮我吗

4

1 回答 1

0

输出说明了一切

ubuntu:
----------
          ID: tomcat
    Function: archive.extracted
        Name: /opt/
      Result: False
     Comment: File sum set for file /var/cache/salt/minion/_opt_apache-tomcat-7.0.47.tar of efbae77efad579b655ae175754cad3dd does not match real sum of dbe64e2e9c509f949539b41447a875e5
     Changes:   
              ----------
              diff:
             New file

特别是消息/var/cache/salt/minion/_opt_apache-tomcat-7.0.47.tar of efbae77efad579b655ae175754cad3dd does not match real sum of dbe64e2e9c509f949539b41447a875e5。它说您缓存的 http 请求文件/var/cache/salt/minion/_opt_apache-tomcat-7.0.47.tar与您在状态元数据中提供的校验和不匹配。

于 2014-08-05T16:46:26.167 回答