Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...


Page Properties
label


Status

Status
colourYellowGreen
titleIn ProgressDone

Stakeholders
Outcome(See Background)
Due date
Owner


...

As a follow-up to The New Layout for all SIMP Modules 


Option 1: Separate Prefixed Variables

Examples:

 

...



---

# prefix 1: simp_*

simp_pki: true
simp_client_nets:

  - '192.168.0.0/24' 


# prefix 2: enable_simp_*

enable_simp_pki: true

# enable isn't a thing for client_nets
simp_client_nets:

  - '192.168.0.0/24'

...

Option 2: Separate Name-Spaced Variables

Examples:

...


---

simp::enable_pki: true

simp::client_nets:

  - '192.168.0.0/24'

...

Option 3: Name-Spaced Hash of Options

Examples:

...


---

simp::options:
  'enable_pki': true
  'client_nets':
    - '192.168.0.0/24'

Pros:

...


Cons:

  • Individual elements within a Hash are awkward to modify or override
    • class parameters
    • deep merge or replace?

...