Hi,
Thanks. Any another way can i implement to test my code before pushing to 
production if i want enc to classify my nodes based on env.


On Friday, 13 January 2023 at 14:11:19 UTC+5:30 Martin Alfke wrote:

> Hi Tejas,
>
> Nodes which should not have environment pinning should not have an 
> environment entry set by the ENC.
> This will allow the agent to switch to any environment.
>
> Hth,
> Martin
>
>
> On 13. Jan 2023, at 08:37, Tejas Bhosale <[email protected]> wrote:
>
> I am using self written script took as ref from here
>
>
> https://github.com/T-Systems-MMS/puppet-example-enc/blob/master/puppet_enc.sh
> There i am classifying nodes based on env prod and development ...
> but when i want to make some new changes on development i want multiple 
> people to work there so i will create env based on their name like
> -E tejas  -E xyz like that and run in noop so after make sure our changes 
> work proper we can commit it in git . 
>
> On Thursday, 12 January 2023 at 16:48:52 UTC+5:30 Martin Alfke wrote:
>
>> 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 <[email protected]> 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 [email protected].
>> 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 [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/2b60d341-78ed-4ebb-bf87-07574461a44fn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-users/2b60d341-78ed-4ebb-bf87-07574461a44fn%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/fbd1a622-3ec7-4174-a64b-35825ab055e8n%40googlegroups.com.

Reply via email to