FAQ
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.

Search Discussions

  • Gh at Feb 22, 2013 at 2:31 pm

    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 22, '13 at 1:20p
activeFeb 22, '13 at 2:31p
posts2
users2
websitepuppetlabs.com

2 users in discussion

Jim: 1 post Gh: 1 post

People

Translate

site design / logo © 2022 Grokbase