Setting variable at Node Scope with Application Orchestration?

asked 2017-09-21 00:39:37 -0600

srpecnik gravatar image

updated 2017-09-21 01:18:33 -0600

Scott Pecnik Today at 15:34 Hi, have a quick question that I just can't seem to find an answer to (been googling for days!):

Is it possible to set a variable at node scope with application orchestration?

Traditionally, I would do something like this:

node somenode { 
$nodescopevar = "hello" 
}

With application orchestration (example below), is it possible to set a value at node scope?

site {
        myapplication { 'Sandbox':
           nodes        => {
            Node['node1']  => Myapplication ::Iis['Sandbox'],
            Node['node2']  => Myapplication ::Esb['Sandbox'],
          },
        }
}

I am looking for a way to access a variable in a profile that is included by the component definition. I cannot pass through via class param because of a duplicate instantiation issue.

Thanks!

edit retag flag offensive close merge delete