Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable using nested arrays for parameter 'set' #49

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kBite
Copy link

@kBite kBite commented Apr 23, 2021

This PR will enable using nested arrays for parameter 'set'.

It's required (e.g.) when grouping networks in Hiera.

ip4_subnet_aclass_00: '10.0.1.0/24'
ip4_subnet_aclass_01: '10.0.2.0/24'
ip4_subnets_aclass:
  - "%{alias('ip4_subnet_aclass_00')}"
  - "%{alias('ip4_subnet_aclass_01')}"

ip4_subnet_cclass_00: '192.168.0.0/24'
ip4_subnet_cclass_01: '192.168.1.0/24'
ip4_subnets_cclass:
  - "%{alias('ip4_subnet_cclass_00')}"
  - "%{alias('ip4_subnet_cclass_01')}"

ip4_subnets:
  - "%{alias('ip4_subnets_aclass')}"
  - "%{alias('ip4_subnets_cclass')}"
  
ipset::sets:
  ip4_subnets:
    set: "%{alias('ip4_subnets')}"
    type: 'hash:net'

@kBite kBite marked this pull request as draft April 23, 2021 21:06
@kBite
Copy link
Author

kBite commented Apr 23, 2021

Haven't figured out yet why checks are failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants