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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.