Hi Everyone,

I am trying to modify /etc/drbd.d/global_common.conf that in general
looks like this

...
        net {
                # snd‐buf-size rcvbuf-size timeout connect-int ping-
int ping-timeout max-buffers
                # max-epoch-size ko-count allow-two-primaries cram-
hmac-alg shared-secret
                # after-sb-0pri after-sb-1pri after-sb-2pri data-
integrity-alg no-tcp-cork
        }

        syncer {
                # rate after al-extents use-rle cpu-mask verify-alg
csums-alg
        }

At first I attempt to use augeas but looks like (according to augtool)
it's not making a tree out of the file

r...@puppet-client-ubuntu:~# augtool
augtool> print /files/etc/drbd.d/global_common.conf
augtool>

The next option I have is to use regex to modify that file e.g. to run
something like this 's/syncer {/syncer {\n\t\trate 50M ;/'

How can I do this in puppet?

Thanks
Dmytro


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to