Hi Tejas,

It looks like you are using an ENC 
(https://www.puppet.com/docs/puppet/7/nodes_external.html#comparing_encs_and_node_definitions)
This can either be Puppet Enterprise or Foreman.

These can force a node to make use of a specific environment only and it 
forbids switching Puppet environment.

What are you using? PE? Foreman? A self written script? Something different?

Martin


> On 12. Jan 2023, at 08:20, Tejas Bhosale <tejasbhosale...@gmail.com> wrote:
> 
> Hi,
> I have enc script which when executed in output it post environemnt.
> 
> But for some host when i want to test my changes i want to pass -E on command 
> line like
> 
> puppet agent -t -E test   but that is override by env it gives either 
> development or production env .
> 
> Can we do anything to fix this issue so that i can test my code on those 
> machines.
> 
> -- 
> 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 
> <mailto:puppet-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/4fb1c8c0-3c7b-4eee-a15d-1bf326370e9en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-users/4fb1c8c0-3c7b-4eee-a15d-1bf326370e9en%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/E281CF08-836C-4F37-9A5D-8910458DEE97%40gmail.com.

Reply via email to