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

Serve "top level" task,plan,manifest,file content from bolt-projects

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 6.14.0
    • Component/s: Puppet Server
    • Labels:
      None
    • Template:
    • Team:
      Froyo
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Bolt projects allow definition of tasks/plans etc in "top level" (read, not in a module) directories. The way this works in practice is that the tasks/plans in these top level directories are "magically" namespaced with the module name of the bolt-project. So effectively a bolt-project is a module.

      Consider the following structure:

      [root@homemade-bit my_project_somesha]# tree
      .
      ├── bolt-project.yaml
      ├── modules
      │   └── foo
      │       └── tasks
      │           └── init.sh
      ├── plans
      │   └── init.pp
      └── tasks
          └── init.sh
       
      5 directories, 4 files
      

      that bolt-project.yaml only has a single key name: my_project if you bolt task show there should be two tasks my_project and foo.

      Currently puppetserver is able to serve the `foo` task (the one in a "traditional" module), puppetserver should also serve the my_project task.

      Current behaviour:

      [root@homemade-bit my_project_somesha]# curl --silent -v --cacert $BOLT_CACERT --cert $BOLT_CERT --key $BOLT_KEY $PUPPETSERVER/puppet/v3/file_content/tasks/foo/init.sh?project=my_project_somesha 2>/dev/null
      #!/bin/bash
       
      echo 'yo'
      [root@homemade-bit my_project_somesha]# curl --silent -v --cacert $BOLT_CACERT --cert $BOLT_CERT --key $BOLT_KEY $PUPPETSERVER/puppet/v3/file_content/tasks/my_project/init.sh?project=my_project_somesha 2>/dev/null
      Could not find file_content for path: init.sh
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              patrick Patrick Carlisle
              Reporter:
              cas.donoghue Cas Donoghue
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support