Note that there are some explanatory texts on larger screens.

plurals
  1. POSaltStack: How to write pkgs by use regular expression in "sls"?
    primarykey
    data
    text
    <p>I use saltstack to deploy my servers. I want to install all "tomcat7" pkgs on one server. So I write a sls file like this:</p> <pre><code> ^tomcat7.*: pkg: - installed - require: - pkg: openjdk-7-jdk </code></pre> <p>But in the end, it receives an error:</p> <pre><code>---------- State: - pkg Name: ^tomcat7.* Function: installed Result: False Comment: Package ^tomcat7.* failed to install Changes: </code></pre> <p>But in fact, the server has install all ^tomcat7.* packages sucessfully.</p> <pre><code>root@vagrant-ubuntu-raring-64:~# dpkg -l tomcat7* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=====================================================-===============================-===============================-=============================================================================================================== ii tomcat7 7.0.35-1~exp2ubuntu1.1 all Servlet and JSP engine ii tomcat7-admin 7.0.35-1~exp2ubuntu1.1 all Servlet and JSP engine -- admin web applications ii tomcat7-common 7.0.35-1~exp2ubuntu1.1 all Servlet and JSP engine -- common files ii tomcat7-docs 7.0.35-1~exp2ubuntu1.1 all Servlet and JSP engine -- documentation ii tomcat7-examples 7.0.35-1~exp2ubuntu1.1 all Servlet and JSP engine -- example web applications ii tomcat7-user 7.0.35-1~exp2ubuntu1.1 all Servlet and JSP engine -- tools to create user instances </code></pre> <p>How to solve this problem? Am I need to write all ^tomcat7.* pkgs one by one?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload