Hi everyone,
In some place of my puppet script i need to direct the output of a command 
as an argument to another one.
the commands are

> exec { 'create-endpoint':
>
> command => "id = $( /usr/bin/keystone --os-token=admin 
>  --os-endpoint=http://master:35357/v2.0  service-list  | /bin/grep glance | 
> awk '{print $2}' ) ; /usr/bin/keystone                                     
>                  --os-token=$admin_token 
> --os-endpoint=admin endpoint-create --publicurl=$var --internalurl=$var 
> --adminurl=$var --service-id=$id",
> }
>
> but puppet seems to not understand $2.
this is the best solution i have realized. I am really stuck here for a 
while now.
Any help would be appreciated.
Thanks for your help.
Sincerely,
Ghassen Cheniour.

-- 
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/cbdea8f2-34d7-4a45-bd09-b4e57c3016c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to