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

Ubuntu service script overlooks running puppet agents

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Template:

      Description

      On Ubuntu only (not Solaris, CentOS, FreeBSD, etc) ensure => stopped is ignored.

       notify { $service_name: message => "ensure = $service_ensure" }
       
        service { $service_name:
          ensure => $service_ensure,
          enable => $service_enable,
        }
      

      # puppet agent --test
      Info: Retrieving plugin
      Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
      Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
      Info: Loading facts in /var/lib/puppet/lib/facter/ssldir.rb
      Info: Loading facts in /var/lib/puppet/lib/facter/pkgng.rb
      Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
      Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
      Info: Caching catalog for sunstone.example.net
      Info: Applying configuration version '1393969732'
      Notice: ensure = stopped
      Notice: /Stage[main]/Puppet::Client/Notify[puppet]/message: defined 'message' as 'ensure = stopped'
      Notice: Finished catalog run in 1.82 seconds
       
      # ps auwx | grep puppet
      root     10561  0.0  3.3 112104 34076 ?        Ssl  Feb09   0:59 /usr/bin/ruby /usr/bin/puppet agent
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jorhett Jo Rhett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support