Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-1082

puppet file resource can't handle binary data

    Details

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

      Debian Jessie, packages from puppetlabs repo:

      puppetlabs-release-pc1 0.9.3.3.g91e66b9-1jessie
      puppetserver 2.2.1-1puppetlabs1
      stdlib 4.10.0

    • Template:

      Description

      I'm trying to distribute a binary key for corosync. I've generated it with corosync-keygen, then base64-encoded it and stored it in hiera. I have the following resource in my manifest:

      file { '/etc/corosync/authkey':
        content => base64('decode', $authkey),
        mode => '0400'
      }
      

      This causes the puppet agent to time out, with no useful information in the puppetserver log. I've verified that I can successfully encode/decode base64 strings with the base64() function from stdlib, so I don't think that's the issue; I've tested against the current version of stdlib (4.10.0).

      The only other relevant issue I can find is this old one: https://projects.puppetlabs.com/issues/5261

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                durist Daniel Urist
                Reporter:
                durist Daniel Urist
                QA Contact:
                Erik Dasher
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support