Uploaded image for project: 'Puppet Enterprise'
  1. Puppet Enterprise
  2. ENTERPRISE-1265

Installing cd4pe through PE console fails when adding cd4pe_docker_extra_params

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PE 2019.0.1
    • None
    • Console
    • None
    • Chrome
    • Monolithic
    • CentOS 7
    • Needs Assessment
    • Needs Assessment

    Description

      When installing cd4pe from PE console from the integrations page and adding parameter 'cd4pe_docker_extra_params' the installation fails. The parameter cd4pe_docker_extra_params expects a value of type Optional[Array[String]] so it needs to contain a quote as in ["value", "value"]. The quote then causes the installation to fail, because the installation is performed as a command puppet apply. The whole puppet apply command is enclosed in quotes, but the parameter contains another quote which closes the puppet apply command before the end.
      It fails with error: {"status":"failure","error":"Failed to puppet apply: \u001b[1;31mError: Could not parse for environment production: Syntax error at end of input on node centos1\u001b[0m\n"}

      The command the gets executed after clicking install looks like: puppet apply "class {'cd4pe': ... cd4pe_docker_extra_params => ["--add-host centospm:192.168.56.237", "--add-host centos1:192.168.56.236"], ... }"

      Workaround is executing the command manually on the agent server and putting the classes in quotes in a .pp file abd running 'puppet apply /path_to.pp'.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhejda@wmpromus.com Jan Hejda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support