FAQ
Hi all,

How can i write a puppet code such that..it adds a line of content that i
want..at a desired place in a file..

if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m
-Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
JAVA_OPTS="$JAVA_OPTS
-Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS
-Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml"

This a part of file and i want to add --
-Djboss.socket.binding.port-offset=900" -- after 3600000 in the 3rd
line..through puppet ode..how can i do that??


Can some one please help me??

Regards
Ramya Y

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Evan Hisey at Mar 14, 2013 at 1:56 pm

    On Wed, Mar 13, 2013 at 4:06 AM, yarlagadda ramya wrote:
    Hi all,

    How can i write a puppet code such that..it adds a line of content that i
    want..at a desired place in a file..

    if [ "x$JAVA_OPTS" = "x" ]; then
    JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m
    -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Dsun.rmi.dgc.server.gcInterval=3600000
    JAVA_OPTS="$JAVA_OPTS
    -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS
    -Djava.awt.headless=true"
    JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml"

    This a part of file and i want to add --
    -Djboss.socket.binding.port-offset=900" -- after 3600000 in the 3rd
    line..through puppet ode..how can i do that??
    n some one please help me??
    Regards
    Ramya Y
    Ramya-
    Have you looked at
    Augeas,http://projects.puppetlabs.com/projects/1/wiki/puppet_augeas ?
    It is designed to solve just this problem.

    Evan

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Erick Ocrospoma Lazo at Mar 14, 2013 at 3:08 pm
    Puppetlabs provides a module - puppet-concat - with it you can concatenate
    static text in any file.



    -----------------------------------
    sı ɯǝ1qoɹd ɹnoʎ ʇɐɥʍ ǝǝs ı ʞuıɥʇ ı


    http://www.utpinux.org
    http://zipper.utpinux.org
    http://twitter.com/zerick

    ---



    On 13 March 2013 04:06, yarlagadda ramya wrote:

    Hi all,

    How can i write a puppet code such that..it adds a line of content that i
    want..at a desired place in a file..

    if [ "x$JAVA_OPTS" = "x" ]; then
    JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m
    -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Dsun.rmi.dgc.server.gcInterval=3600000
    JAVA_OPTS="$JAVA_OPTS
    -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS
    -Djava.awt.headless=true"
    JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml"

    This a part of file and i want to add --
    -Djboss.socket.binding.port-offset=900" -- after 3600000 in the 3rd
    line..through puppet ode..how can i do that??


    Can some one please help me??

    Regards
    Ramya Y

    --
    You received this message because you are subscribed to the Google Groups
    "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMar 13, '13 at 9:06a
activeMar 14, '13 at 3:08p
posts3
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase