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

puppet resource service fails on FreeBSD 11

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.10.0, PUP 5.0.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      FreeBSD 11

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

      Description

      I was playing around with FreeBSD 11 today and found that running puppet resource service failed with the error Error: Could not run: undefined method `gsub' for nil:NilClass. After doing some testing I believe it is due to Puppet not handling the results of running /etc/rc.d/bluetooth rcvar. Details and related examples below:

      # note that there is not a line that says anything about enable in this service
      ➜  ~ service bluetooth rcvar
      # bluetooth : Bluetooth setup script
      #
       
      ➜  ~ service sshd rcvar
      # sshd : Secure Shell Daemon
      #
      sshd_enable="YES"
      #   (default: "")
       
      ➜  ~ service ntpd rcvar
      # ntpd : Network Time Protocol daemon
      #
      ntpd_enable="NO"
      #   (default: "")
       
      ➜  ~ puppet resource service bluetooth
      Error: Could not run: undefined method `gsub' for nil:NilClass
      

      Initially I was using the version of Puppet installed by running pkg install puppet4 which brought in Puppet 4.10.0. I uninstalled that and installed the Puppet 5.0.0 gem and got the same results.

      When looking in /etc/rc.d/bluetooth I noticed that rcvar= isn't set to anything whereas /etc/rc.d/sshd is set to rcvar="sshd_enable". Attached are copies of both files.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                gene.liverman Gene Liverman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support