https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • s

    Slackbot

    08/23/2022, 10:28 AM
    This message was deleted.
    b
    s
    t
    • 4
    • 13
  • t

    tuxmea

    08/23/2022, 10:52 AM
    How did you install puppet? Are you using the puppetlabs puppet-agent package?
  • s

    Slackbot

    08/23/2022, 1:23 PM
    This message was deleted.
    h
    • 2
    • 2
  • r

    Rasheed

    08/23/2022, 1:24 PM
    Hi Team, My organization created wrapper for tomcat over puppet forge. when we start tomcat like service tomcat-dev-app start in RHEL7, we used to get 3 process( 2 root and 1 tomcat) getting created due to jsvc approach. This is how its working for past 1 year and built by different persons. We found tomcat application logs are getting captured in /var/log/messages which is not recommended for us. I found the cause of this is there is a parameter in /etc/init.d/tomcat-dev-app that contains -errfile SYSLOG and -outfile SYSLOG. Removing this stops the application logging in messages file but instead of 3 processes only 2 process is getting created. Our puppet team dont have any idea on this. According to them this is how its designed in puppet forge and if we want they can remove the parameter. Can this parameter be removed ? Do anyone know why the process count changes from 3 to 2 and is it fine? e have more than 1000 servers hence we would like to make sure this wont be any issue before pushing to all the servers
  • m

    matt

    08/23/2022, 1:25 PM
    rhel 7 shouldn't be using init.d - it's systemd and /etc/sysconfig/$service
  • m

    matt

    08/23/2022, 1:25 PM
    it's also possible it's the app inside tomcat that's logging rather than the tomcat server
  • r

    Rasheed

    08/23/2022, 1:29 PM
    this is not for a single application. we checked for many applications and one are the other day we seeing entries in messages log. We got the solution by removing -errfile SYSLOG and -outfile SYSLOG. But instead of jsvc creating 3 process only 2 process is getting created. Instead of removing the parameter, If i change -outfile SYSLOG to -outfile CATALINA_OUT also only 2 process is getting created
  • l

    Lumiere

    08/23/2022, 1:31 PM
    this sounds like a tomcat question, not a puppet question
    ☝️ 1
  • r

    Rasheed

    08/23/2022, 1:33 PM
    ok puppet team in my organization told this template created by puppet forge module puppetlabs-tomcat. So i came here. Please kindly let me know any channel for tomcat module
  • d

    Dr Bunsen Honeydew

    08/23/2022, 1:33 PM
    See the
    puppetlabs-tomcat
    module at https://forge.puppet.com/puppetlabs/tomcat?src=slack&channel=puppet
  • l

    Lumiere

    08/23/2022, 1:39 PM
    It isn't a puppet or a puppetlabs/tomcat issue, all puppet does is configure tomcat, you're asking a question about tomcat configuration and how it affects the number of processes running. That's not going to be a question for puppet, it's going to be researching tomcat and how it manages logging
  • d

    Dr Bunsen Honeydew

    08/23/2022, 1:39 PM
    See the
    puppetlabs-tomcat
    module at https://forge.puppet.com/puppetlabs/tomcat?src=slack&channel=puppet
  • s

    Slackbot

    08/23/2022, 2:04 PM
    This message was deleted.
    h
    s
    • 3
    • 3
  • l

    Les Shiner

    08/23/2022, 4:41 PM
    my compiler, when running puppet agent -t has stated
    Copy code
    Could not find node statement with name 'default' or '<http://compiler.r13hcilrgv3uzliozghbrt20fb.bx.internal.cloudapp.net|compiler.r13hcilrgv3uzliozghbrt20fb.bx.internal.cloudapp.net>' on node <http://compiler.r13hcilrgv3uzliozghbrt20fb.bx.internal.cloudapp.net|compiler.r13hcilrgv3uzliozghbrt20fb.bx.internal.cloudapp.net>
  • l

    Les Shiner

    08/23/2022, 4:42 PM
    but yet, in my site.pp IT'S THERE
  • b

    bastelfreak

    08/23/2022, 4:42 PM
    but where is your site.pp?
  • l

    Les Shiner

    08/23/2022, 4:43 PM
    Copy code
    /etc/puppetlabs/code/environments/puppetmaster/manifests
  • b

    bastelfreak

    08/23/2022, 4:45 PM
    and is your agent running in that env?
  • l

    Les Shiner

    08/23/2022, 4:46 PM
    yes, wait... because it's my compiler i have environment=puppetmaster under [main] but no [agent] lemme create that and see what happens
  • b

    bastelfreak

    08/23/2022, 4:46 PM
    puppet agent -t --environment=puppetmaster
    🙂
  • l

    Les Shiner

    08/23/2022, 4:47 PM
    yeah same error
  • l

    Les Shiner

    08/23/2022, 4:48 PM
    even by running your command
  • n

    natemccurdy

    08/23/2022, 4:58 PM
    environment
    should be in the
    [agent]
    section
  • s

    Slackbot

    08/23/2022, 4:58 PM
    This message was deleted.
    👍 1
    l
    n
    r
    • 4
    • 6
  • b

    Brian Schonecker

    08/23/2022, 4:58 PM
    I'm trying to create a bunch of files but all of the file names need to be forced to upper case (blame Oracle). I'm unsure how to do this in a loop because I can't assign the value to a variable because of duplicate definitions. So far, all I've got is:
    $a = ['foo', 'bar', 'baz',]
    $a.each |$f| {
    file {"/tmp/$f":   # How to force upper case here?
    ensure => file,
    }
    }
    Where/how does the stdlib function, 'upcase()' apply here?
  • n

    natemccurdy

    08/23/2022, 4:59 PM
    Also… I very much recommend using the same environment for all your nodes (including your Puppetservers), and only switching environments to test out Puppet code that’s in development before it’s moved to the
    production
    environment.
  • n

    natemccurdy

    08/23/2022, 4:59 PM
    Also… I very much recommend using the same environment (
    production
    ) for all your nodes (including your Puppetservers), and only switching environments to test out Puppet code that’s in development before it’s moved to the
    production
    environment.
  • s

    Slackbot

    08/23/2022, 5:00 PM
    This message was deleted.
    y
    b
    c
    • 4
    • 13
  • s

    Slackbot

    08/23/2022, 5:44 PM
    This message was deleted.
    v
    r
    +2
    • 5
    • 11
1...140141142...428Latest