asteris-llc / converge

A powerful and easy-to-use configuration management system.
Apache License 2.0
250 stars 31 forks source link

Support metadata in configuration files #263

Open stevendborrelli opened 8 years ago

stevendborrelli commented 8 years ago

Support metadata in configuration files.

meta { 
   author = "Sally Hackenstein" 
   organization = "ponies worldwide"
   pgp_key_id = "203A5FE1"
   org_url = ""
   version = "1.0.2"
   vcs_url = "git@git"
   license = "APL 2.0"
   vcs_commit = "sha-of-commit"
   description = "installs docker and fpm"
   platforms: { 
      [ 
          { ubuntu: { versions:  ["trusty", "xenial"] },
          { centos: { .Like: [ "rhel", "fedora" ]  }, 
          { "Mac OS X": all }   
      ]
   }
}

Some ideas:

rebeccaskinner commented 8 years ago

Would it make sense for these things to be parts of module?

On Sep 19, 2016, at 9:00 AM, Steven Borrelli notifications@github.com wrote:

Support metadata in configuration files:

meta { author = "Sally Hackenstein" organization = "ponies worldwide" version = "1.0.2" vcs_url = "git@git" vcs_commit = "sha-of-commit" description = "installs docker and npm" } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/asteris-llc/converge/issues/263, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMbq-Vsy96E9eHC20ClqJLbeG-9bxbTks5qrpWFgaJpZM4KAhUv.

BrianHicks commented 8 years ago

seems like this would be more like module metadata within a module, instead of the call to the module itself

BrianHicks commented 8 years ago

Seems like this should ship with a converge info x.hcl command to view this information

stevendborrelli commented 8 years ago

We could probably dump the platforms key for the first version.

BrianHicks commented 8 years ago

Let's say that the initial UI for this is converge info x.hcl so we can move forward with it.