Glad to hear you got it worked out!

You might have good luck with this module for controlling network interfaces
https://github.com/adrienthebo/puppet-network


                    =MobileMail=
Please excuse brevity or spelling errors

> On Sep 15, 2013, at 22:31, Mani Devarajan <[email protected]> wrote:
> 
> All,
>  Adding /bin/bash helped fix the issue. Thanks all.
> 
> command => "/bin/bash $intconfigfile",
> 
> Thanks,
> Mani
>> On Sunday, September 15, 2013 4:55:08 PM UTC-7, Mani Devarajan wrote:
>> Hello, 
>>  I am downloading a file from puppet master which has list of ifconfig 
>> command and run it using exec command on client. But it fails "change from 
>> notrun to 0 failed: intconfig returned 1 instead of one of [0] at". Any 
>> suggestion on how to overcome this error. Thanks in advance.
>> 
>> File content:
>> ifconfig eth3 up
>> exit 0
>> 
>> Puppet code:
>> file { $intconfigfile:
>>     owner => "root",
>>     group => "root",
>>     mode => "777",
>>     source => "puppet:///files/$intfilename",
>>   }
>> 
>>   exec {"config_uplink":
>>     command => $intconfigfile,
>>     require => File[$intconfigfile]
>>   }
>> 
>> Error:
>> err: returns: change from notrun to 0 failed: intconfig returned 1 instead 
>> of one of [0] at
>> 
>> Thanks,
>> Mani
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to