Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7748

[Fatal] puppet(3.8.7)The puppet changes the contents of the configuration file or becomes a directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Puppet Client(3.8.7) - Centos 6.9 x86_64
      Puppet Server(3.8.7) - Centos 7 x86_64

    • Template:
    • Team:
      Platform Core
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      If a large number of puppets are requested by the puppet server, when the puppet server's CPU load is too high and returns 502,503, the puppet client (3.8.7) has a chance to change the configuration file content and directory

      PUPPET CONFIG
      class redis( $redis_config ) {

      realize(
      Package["redis-server"]
      )

      file {
      "sys-redis":
      name => "/etc/redis.conf",
      mode => 0644, owner => root, group => root,
      ensure => present,
      force => true,
      source => [ "puppet://${puppet_server}/redis/$redis_config/redis.conf",
      "puppet://${puppet_server}/redis/default/redis.conf", ],
      require => Package["redis-server"],
      notify => Exec["restart-redis"],
      }

      exec

      { "restart-redis": command => "service redis restart", require => Service["redis"], refreshonly => true, }

      service

      { "redis": ensure => running, enable => true, hasrestart => true, require => [ Package["redis-server"],File["/etc/redis.conf"] ], }

      }


      file { "zbjsync_exclude.list":
      ensure => present,
      force => true,
      replace => true,
      mode => 0644, owner => root, group => root,
      name => "/etc/zbjsync_exclude.list",
      source => [ "puppet://${puppet_server}/zbj-sync/${zbj_sync_config}/zbjsync_exclude.list",
      "puppet://${puppet_server}/zbj-sync/default/zbjsync_exclude.list", ],
      require => Package["zbj-sync"],
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sungyism jiangmeng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support