Hello all Can someone please help me or answer if this is possible I''m using the puppet forge IIS module, and want to use variables within the syntax dependent up ip address for example: colo_a = 1.1.1.0 colo_b = 2.2.2.0 if $network_local_area_connection = 1.1.1.0 add colo_a elseif $network_local_area_connection = 2.2.2.0 add colo_b iis_site {''mysite.co.uk'': ensure => present, bindings => [ ''http/*:80:www.mysite.co.uk'', ''http/*:80:mysite.co.uk'', ''http/*:80:*colo_?????*.mysite.co.uk'', ''http/*:80:*colo_?????*.mysite.co.uk'' ], } Any help or advise would be much appreciated regards Jim -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On 2/22/13 2:20 PM, jim wrote:> Hello all > > Can someone please help me or answer if this is possible > > I''m using the puppet forge IIS module, and want to use variables within > the syntax dependent up ip address > > for example: > > colo_a = 1.1.1.0 > colo_b = 2.2.2.0 > > if $network_local_area_connection = 1.1.1.0 > add colo_a > elseif $network_local_area_connection = 2.2.2.0 > add colo_b > > > iis_site {''mysite.co.uk'': > ensure => present, > bindings => [ ''http/*:80:www.mysite.co.uk'', > ''http/*:80:mysite.co.uk'', > ''http/*:80:*colo_?????*.mysite.co.uk'', > ''http/*:80:*colo_?????*.mysite.co.uk'' ], > } > > Any help or advise would be much appreciated > > regards > > Jim > > --Jim, This is what Hiera[1] is meant to help with. You could determine values based on which colo you are in. [1] - https://github.com/puppetlabs/hiera/ Regards, -g -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Possibly Parallel Threads
- [Bridge] help setting up a linux bridge with spanning tree to allow multiple vlans accross multiple uplinks
- PF + gif + ipsec + racoon + routing problems results in insecure ipsec vpn
- Problem with third link in multiple uplink configuration
- OT - httpd/conf.d include questions - allowing only some addresses
- Half-Life OpenGL-Problem