On 2020-05-19 02:03, unman wrote:
On Mon, May 18, 2020 at 09:01:02PM +0100, [email protected] 
wrote:
Hi!

I'm trying to modify the /etc/fuse.conf

by using this sls file:

-----------------------------------
modify-config-files:
   file.replace:
     - path: /etc/fuse.conf
     - pattern: "# mount_max = 1000"
     - repl: "mount_max = 1000"
     - append_if_not_found: True
#    - dry_run: True
------------------------------------

Result is:
       Execute a packaged state run, the packaged state run will exist in a
           tarball available locally. This packaged state
           can be generated using salt-ssh.

           CLI Example:

           .. code-block:: bash

               salt '*' state.pkg /tmp/salt_state.tgz 
760a9353810e36f6d81416366fc426dc md5


The file /etc/fuse.conf is not changed afterwards.
Google couldn't help me to resolve that problem. Any hints here from saltstack 
pros?


I'd probably use file.uncomment in this case.

For file.replace try rewriting your file:

/etc/fuse.conf:
   file.replace:
     - pattern: ^#.*mount_max.*
     - repl: "mount_max = 1000"
     - append_if_not_found: True

That should work.


Thank you very much again. That worked.

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/a796b80a-9be7-25b6-5598-275ac2c4a2dd%40gmx.de.

Reply via email to