Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert Hiera to Lookup for the DPK
set-location e:\psoft\dpk\puppet
# pia_domain_list
(get-content -Path .\modules\pt_profile\manifests\pt_pia.pp) -replace "hiera\(\'pia_domain_list\'\)", "lookup('pia_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_pia.pp
(get-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp) -replace "hiera\(\'pia_domain_list\'\)", "lookup('pia_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp
# appserver_domain_list
(get-content -Path .\modules\pt_profile\manifests\pt_appserver.pp) -replace "hiera\(\'appserver_domain_list\'\)", "lookup('appserver_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_appserver.pp
(get-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp) -replace "hiera\(\'appserver_domain_list\'\)", "lookup('appserver_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp
# prcs_domain_list
(get-content -Path .\modules\pt_profile\manifests\pt_prcs.pp) -replace "hiera\(\'prcs_domain_list\'\)", "lookup('prcs_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_prcs.pp
(get-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp) -replace "hiera\(\'prcs_domain_list\'\)", "lookup('prcs_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp
# tns_admin_list
(get-content -Path .\modules\pt_profile\manifests\pt_pia.pp) -replace "hiera\(\'tns_admin_list\'\)", "lookup('tns_admin_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_pia.pp
(get-content -Path .\modules\pt_profile\manifests\pt_tns_admin.pp) -replace "hiera\(\'tns_admin_list\'\)", "lookup('tns_admin_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_tns_admin.pp
# component_preboot_setup_list
(get-content -Path .\modules\pt_profile\manifests\pt_tools_preboot_config.pp) -replace "hiera\(\'component_preboot_setup_list\'\)", "lookup('component_preboot_setup_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_tools_preboot_config.pp
# component_preboot_setup_order
(get-content -Path .\modules\pt_profile\manifests\pt_tools_preboot_config.pp) -replace "hiera\(\'component_preboot_setup_order\'\)", "lookup('component_preboot_setup_order', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_tools_preboot_config.pp
# component_postboot_setup_list
(get-content -Path .\modules\pt_profile\manifests\pt_tools_postboot_config.pp) -replace "hiera\(\'component_postboot_setup_list\'\)", "lookup('component_postboot_setup_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_tools_postboot_config.pp
# component_postboot_setup_order
(get-content -Path .\modules\pt_profile\manifests\pt_tools_postboot_config.pp) -replace "hiera\(\'component_postboot_setup_order\'\)", "lookup('component_postboot_setup_order', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_tools_postboot_config.pp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment