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

cfbs search does not respect index entry in cfbs.json

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cfbs
    • Labels:
      None

      Description

      [root@hub cfbs]# cfbs init --index https://raw.githubusercontent.com/cfengine/build-index/256d03fb63507cc5b63373c0fe07ece103ef54c0/cfbs.json
      Initialized - edit name and description cfbs.json
      To add your first module, type: cfbs add masterfiles
      [root@hub cfbs]# cat cfbs.json 
      {
        "name": "Example",
        "type": "policy-set",
        "description": "Example description",
        "build": [],
        "index_path": "https://raw.githubusercontent.com/cfengine/build-index/256d03fb63507cc5b63373c0fe07ece103ef54c0/cfbs.json"
      }
      [root@hub cfbs]# cfbs search 
      promise-type-ansible (ansible) - Promise type to manage systemd services
      autorun - Enable autorun functionality
      library-for-promise-types-in-bash (bash-lib) - Library enabling promise types implemented in bash
      client-initiated-reporting (cir, client-initiated) - Enable client initiated reporting and disable pull collection
      demo - Enables convenient and insecure settings for demoing CFEngine
      every-minute - Make policy fetching, evaluation, and reporting happen every minute
      promise-type-git (git) - Promise type to manage git repos
      promise-type-groups (groups) - Experimental promise type to manage local user groups
      inventory-clamav - Inventory useful information from ClamAV (version, definitions version, definitions date)
      inventory-etc-hosts - Inventory entries from /etc/hosts
      inventory-fips-mode-setup - Inventory the status of fips-mode-setup
      inventory-kernel-boot-params - Inventory kernel parameters set during system boot
      inventory-kernel-settings-sysctl-conf - Inventory settings from /etc/sysctl.conf.
      inventory-kernel-settings-sysctl-current - Inventory sysctl settings current state.
      inventory-lastlog - Inventory kernel parameters set during system boot
      inventory-local-users - Inventory the local users on the system with their attributes
      inventory-sudoers - Inventory users with sudo access.
      inventory-systemd - Inventory interesting things from systemd
      kernel-settings-sysctl-conf - Manage settings in /etc/sysctl.conf.
      lynis - CFEngine policy to automate the installation, running, and reporting of CISOfy's lynis system audits
      masterfiles (mpf) - Official CFEngine Masterfiles Policy Framework (MPF)
      migrate2rocky - Unattended migration of CentOS 8 hosts to Rocky Linux
      library-file-integrity-monitoring (lib-fim) - Monitor key files for changes
      library-for-promise-types-in-python (python-lib) - Library enabling promise types implemented in python
      promise-type-systemd (systemd) - Promise type to manage systemd services
      

      if I search the index explicitly, it works:

      [root@hub cfbs]# cfbs --index https://raw.githubusercontent.com/cfengine/build-index/256d03fb63507cc5b63373c0fe07ece103ef54c0/cfbs.json search user
      inventory-local-users - Inventory the local users on the system with their attributes
      inventory-local-users-locked - Inventory the local users on the system that are locked
      inventory-local-users-password-empty - Inventory the local users on the system that do not have a password set
      library-parse-local-users - Parse local users from /etc/passwd on the system with their attributes from /etc/shadow
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: