Sha256: 3ebde949ded370acd827a7aeb9fb031b90fd954a34d690421502efafccbbdacc

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

---
# Oscar kwalify schema

type: map
mapping:

  "nodes":
    type: seq
    sequence:
      -
        type: map
        mapping:
          "name": { required: true }
          "address": { required: false }

          "boxname": &boxname
            type: str
          "boxurl": &boxurl
            type: str
          "role":
            desc: "A node can have a role, that adds specific configuration for how it is going to be used."
            type: str
            enum: ["master", "console", "agent"]
            default: "agent"

          "profile":
            desc: "A node can have a profile, which describes where the box came from."
            type: str
          "forwards": &forwards
            type: seq
            sequence:
              -
                type: map
                mapping:
                  "source":
                    type: int
                    required: true
                  "dest":
                    type: int
                    required: true

  "profiles":
    desc: "A profile describes a box type, so what name it is and where to retrieve it from."
    type: seq
    sequence:
      -
        type: map
        mapping:
          "name":
            required: true
          "boxname": *boxname
          "boxurl": *boxurl


  "roles":
    desc: "A role is the configuration needed for a node to do a specific role."
    type: seq
    sequence:
      -
        type: map
        mapping:
          name: { required: true }
          "forwards": *forwards

  # Network configuration for oscar, not applicable to any node.
  "networking":
    type: map
    mapping:
      "pool":
        required: true
      "domainname":
        required: true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oscar-0.2.0alpha5 lib/oscar/schema.yaml
oscar-0.2.0alpha3 lib/oscar/schema.yaml
oscar-0.2.0alpha2 lib/oscar/schema.yaml
oscar-0.2.0alpha1 lib/oscar/schema.yaml