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

service status is ignored ( puppet 3.2 + upstart provider )

    XMLWordPrintable

    Details

    • Template:

      Description

      <pre>
      cat > test.pp <<EOF
      notice("os = $::operatingsystem, puppetversion = $::puppetversion")
      exec

      { 'run': command => "/sbin/status network-interface INTERFACE=eth0", logoutput => true, }

      ->
      service

      { 'network-interface': ensure => running, status => '/sbin/status network-interface INTERFACE=eth0', }

      EOF
      puppet apply test.pp
      </pre>
      will output the following
      <pre>
      Notice: Scope(Class[main]): os = Ubuntu, puppetversion = 3.2.4
      Notice: /Stage[main]//Exec[run]/returns: network-interface (eth0) start/running
      Notice: /Stage[main]//Exec[run]/returns: executed successfully
      Error: /Stage[main]//Service[network-interface]: Could not evaluate: Execution of '/sbin/status network-interface' returned 1: status: Unknown parameter: INTERFACE
      Notice: Finished catalog run in 0.27 seconds
      </pre>

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            redmine.exporter redmine.exporter
            QA Contact:
            Kurt Wall
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support