Hello, I am not exactly sure how to phrase this, but consider the following:
case $::role { 'access': { notify {"Applying access packages" :} include access_packages freebsd::rc_conf { 'test' : value => 'yes', ensure => 'present' } openvpn::server {'winterthur' : country => 'CH', province => 'ZH', city => 'Winterthur', organization => 'example.org', email => 'r...@example.org', server => '10.200.200.0 255.255.255.0'} } 'client': { notify {"Applying client config" :} openvpn::client { 'client1': server => "winterthur" } } } What I am trying to do in 'client' case is reference the server that was defined in the 'access' case. Is this possible? The openvpn module here; https://github.com/luxflux/puppet-openvpn contains some examples and such that lead me to believe there should be a reference, but it seems like that only is applicable if they have the same scope. How would I go about storing off the 'winterthur' openvpn::server for use by the clients later? Puppet's class variable access and scoping in general are a little confusing to me at this point. I tried the obvious assigning a $variable but that didn't work either. Also, looking at the openvpn code, it seems like openvpn::server is "define"d instead of using the class keyword. does this make a difference? Thanks -- 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/9de48764-707d-4529-a018-42a4782310f3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.