Hi,

I've been trying to setup openstack keystone for my DEV environment using 
Puppet. Everything works fine, except the 'exec' resource. 

I have tried the below things, but not getting the desired results

1. '*/bin/bash -c 'source /root/openrc.sh*' in the command attribute, but 
nothing happens.
2. tried using the '*provider*' attribute in the exec resource.
3. tried using '*environment*' attribute.

It's only when i manually run '*source /root/openrc.sh*', the variables are 
set. 

Below are the contents of the actual puppet manifest, and the openrc.sh 
file which is to be run on the node.

# cat testexec.pp

 exec { 'admin':
    command => '/bin/sh /root/openrc.sh'
    
  }

Contents of openrc.sh

#!/bin/sh
export OS_TOKEN="fbed3beb36960f2b3e1b"
export OS_URL="http://openstack:35357/v3";
export OS_IDENTITY_API_VERSION=3



Is there a way we achieve this?

Thanks in Advance.
J

-- 
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/05c9d71f-c02d-4d5a-8607-70ecbf68dafe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to