So I've hit a limitation in puppet where I can't modify a variable after 
its been set.  how do I work around this.  I have a manifest that I need to 
be able to build up a list of contacts based on certain facts about a 
server.

Here is an example of my (non functioning) code?  Can anyone give me a 
suggestion of how to work around this limitation?

  if 'sql' in $hostname.downcase or $wl_server_type == 'db' {
    $contactgroups = 'Windows Server Admins,Microsoft SQL DBAs'
  }
  else {
    $contactgroups = 'Windows Server Admins'
  }

  if $wl_app in $btssServers or 'adfs' in $hostname.downcase {
    $contactgroups = "${contactgroups},BT Systems Support"
  }

  if $wl_app == 'hea'{
    $contactgroups = "${contactgroups},HEAT Admins"
  }



In a language like Python I could just append to the string... but I can't 
modify the variable at all in Puppet after its been created.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5645b632-dea2-4bd9-ab4c-7fcc0e2b9454%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to