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

cf-remote save doesn't save more than one host to the same group

    XMLWordPrintable

    Details

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

      Description

      Logically it makes sense to me that since --name in cf-remote save is a "group" that I can add multiple hosts to that group. I edited the .cfengine/cf-remote/cloud_state.json to make this so and cf-remote info -H feeders works fine. Seems possible to fix this.

      $ cf-remote save --role hub --name feeders --hosts vagrant@192.168.56.3
      $ cf-remote save --role hub --name feeders --hosts vagrant@192.168.56.4
      

      Should not error and result in cloud_state.json having

        "@feeders": {         
          "meta": {      
            "saved": true
          },            
          "feeders-1": {   
            "public_ips": [ 
              "192.168.56.3"
            ],                
            "user": "vagrant",
            "role": "hub"
          },
          "feeders-2": {
            "public_ips": [                                           
              "192.168.56.4"
            ],
            "user": "vagrant",
            "role": "hub"
          }
        }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            craig.comstock Craig Comstock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: