Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3456

'Customize Message of the Day' example is out of date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.3, 3.17.0
    • Component/s: Documentation
    • Labels:
      None
    • Story Points:
      0

      Description

      The example at https://docs.cfengine.com/docs/master/examples-example-snippets-promise-patterns-example_edit_motd.html is out of date and doesn't work.

      • It should use the _main_/main bundle functionality, the template file is not in the folder where it says it should be.
      • Also is
          ## In order to get package inventory, we need to have a legacy package
          ## promise.
        

        still the case? And does it really have to be a legacy package promise? Is it even?

      • Last but not least, it shouldn't use mustache template with no template_data (and thus use super-slow datastate() functionality).

      I think this example is very important as a it provides some very nice functionality, shows many concepts and is probably a typical entry point for starting with CFEngine.

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              vpodzime Vratislav Podzimek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel