The Nature of Global Catalysts in SIMP 6

The Nature of Global Catalysts in SIMP 6

Status

Done

Stakeholders

@Trevor Vaughan @Chris Tessmer 

Outcome

(See Background)

Due date

Owner

@Chris Tessmer 

Background

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'

---

# 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'


Pros:

Cons:

Option 2: Separate Name-Spaced Variables

Examples:

 

---

simp::enable_pki: true

simp::client_nets:

  - '192.168.0.0/24'

---

simp::enable_pki: true

simp::client_nets:

  - '192.168.0.0/24'

Pros:

Cons:

Option 3: Name-Spaced Hash of Options

Examples:

 

---

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

 

---

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?

Action items