Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:16:29+00:00 2026-06-12T08:16:29+00:00

I am attempting to modify a puppet module for Centrify Express, which integrates against

  • 0

I am attempting to modify a puppet module for Centrify Express, which integrates against Active Directory.

I want to append users to an allowlist on a per node basis, E.G:

$centrifydc_groups_allow = ['admins', 'users']

Then in my template, do something along the lines of:

<% scope.lookupvar('centrifydc::groups_allow').each do |val| -%>
<%= val %>
<% end -%>

I’m looking for a clean consistent way of defining access profiles, and then do individual node adjustments adding more entries that should have access.

How to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:16:30+00:00Added an answer on June 12, 2026 at 8:16 am

    You have the += operator to append to arrays in puppet.

    $centrifydc_groups_allow = ['admins', 'users']
    $centrifydc_groups_allow += ['webusers']
    

    Also, if you use the stdlib module, it implements many useful functions for dealing with arrays.

    For example if there’s a risk you could repeat yourself in the array from differents pp, you can test before appending:

    $centrifydc_groups_allow = ['admins', 'users']
    if member($centrifydc_groups_allow,'webusers') == false {
      $centrifydc_groups_allow += ['webusers']
    }
    

    Also you have a merge function to merge arrays, which through scope_function_merge you could use it inside your template to instead of appending to an array, have a default array and a custom array rewritten for each node/type/etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the below code which is attempting to modify each row in a
I am attempting to modify some existing C++ code to work with my needs,
I'm attempting to override Form.Text in order to modify the Title prior to appearing
I'm playing with using Regex to modify Twitter posts. I'm currently attempting to trim
Attempting to build a C# NPAPI plugin I have found a tutorial which describes
I'm attempting to modify an inherited project that has a convoluted process of displaying
I am attempting to modify a TreeView to display the TreeViewItem values above and
I'm attempting to modify a MIPS simulator to display the contents of its registers
To prevent a duplicate shopping cart being added I am attempting to modify my
I've been attempting to modify the contents of a custom tree view that inherits

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.