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.

--To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53833E5D.8060503%40recommind.com.
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/H6KH0v5ra0c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
i tried to escape but this doesn't work .
Am 26.05.2014 15:18, schrieb cheniour ghassen:
i tried to escape but this doesn't work .
Hmm, try awk \'...\', like shown here.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/H6KH0v5ra0c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53834209.4050805%40recommind.com.