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

OSX installer using homebrew fails to set up policy hub

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Bootstrap
    • Labels:
      None

      Description

      First time user, working off the book & whatever I can find on the internet.

      `brew install cfengine` worked perfectly.

      Subsequently I needed to copy in the CoreBase files:

      cp -a /usr/local/Cellar/cfengine/*/share/CoreBase/ /usr/local/var/cfengine/masterfiles/

      1. cd /var/cfengine/masterfiles
      2. tree -aqCF
        .
        ├── cf-sketch-runfile.cf
        ├── controls/
        │ ├── cf_agent.cf
        │ ├── cf_execd.cf
        │ ├── cf_monitord.cf
        │ ├── cf_report.cf
        │ ├── cf_runagent.cf
        │ └── cf_serverd.cf
        ├── def.cf
        ├── libraries/
        │ └── cfengine_stdlib.cf
        ├── promises.cf
        ├── services/
        │ └── init_msg.cf
        └── update.cf

      Which seems correct.

      Run the bootstrapper `sudo cf-agent --bootstrap --policy-server 10.0.0.3`

      <pre>

        • CFEngine BOOTSTRAP probe initiated

      @@@
      @@@ CFEngine

      @ @@@ @ CFEngine Core 3.4.3
      @ @@@ @
      @ @@@ @
      @ @
      @@@
      @ @
      @ @
      @ @

      Copyright (C) CFEngine AS 2008-2013
      See Licensing at http://cfengine.com/3rdpartylicenses

      -> This host is: continuity
      -> Operating System Type is darwin
      -> Operating System Release is 12.2.1
      -> Architecture = x86_64
      -> Internal soft-class is darwin
      -> No policy failsafe discovered, assume temporary bootstrap vector
      -> No previous policy has been cached on this host
      -> Assuming the policy distribution point at: 10.0.0.3:/var/cfengine/masterfiles
      -> Attempting to initiate promised autonomous services...

        • This host recognizes itself as a CFEngine Policy Hub, with policy distribution and knowledge base.
          -> The system is now converging. Full initialisation and self-analysis could take up to 30 minutes

      cf-promises needs to be installed in /usr/local/var/cfengine/bin for pre-validation of full configuration
      Proposed executable file "$(sys.cf_key)" doesn't exist
      $(sys.cf_key) promises to be executable but isn't
      I: Made in version 'not specified' of '/usr/local/var/cfengine/inputs/failsafe.cf' near line 36
      R: This host assumes the role of policy distribution host
      R: !! Failed to pull policy from policy server
      R: !! Failed to start the server
      R: !! Did not start the scheduler
      Proposed executable file "$(sys.cf_key)" doesn't exist
      $(sys.cf_key) promises to be executable but isn't
      I: Made in version 'not specified' of '/usr/local/var/cfengine/inputs/failsafe.cf' near line 36
      Proposed executable file "$(sys.cf_key)" doesn't exist
      $(sys.cf_key) promises to be executable but isn't
      I: Made in version 'not specified' of '/usr/local/var/cfengine/inputs/failsafe.cf' near line 36
      !! Bootstrapping failed, no input file at /usr/local/var/cfengine/inputs/promises.cf after bootstrap
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dch@jsonified.com Dave Cottlehuber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel