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

puppet resource service fails on FreeBSD 11


    • 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


      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
      #   (default: "")
      ➜  ~ service ntpd rcvar
      # ntpd : Network Time Protocol daemon
      #   (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.


        1. freebsd11-bluetooth.txt
          9 kB
          Gene Liverman
        2. freebsd11-sshd.txt
          2 kB
          Gene Liverman



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


              • Created:

                Zendesk Support