On Mon, May 18, 2020 at 09:01:02PM +0100, lik...@gmx.de 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.

-- 
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 qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200519010303.GA7181%40thirdeyesecurity.org.

Reply via email to