cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2671
Views
1
Helpful
5
Replies

Cannot find pyats.conf

I'm trying to implement secret strings in order to avoid plain text passwords in my yaml files.

All pyats documentation points me to make changes to the "pyats.conf" file. However, I cannot find such a file.

Any idea where this could be? I've used every grep/find command I can think of.

 

Some of the reference links I'm using:

https://pubhub.devnetcloud.com/media/pyats/docs/configuration/index.html#pyats-configuration

https://pubhub.devnetcloud.com/media/pyats/docs/utilities/secret_strings.html?highlight=encoded%20password

 

Any help greatly appreciated!

5 Replies 5

yixiu0317
Level 1
Level 1

Hi Robert,

 

I know it is an old thread, did you find the location of pyats.conf file?

I am having the same problem now.

Thank you in advance.

assadniang
Level 1
Level 1

Hello,

Where can I find the pyats.conf file?

pyats version 25.7

Using the default YAML encoding key since no key was specified in configuration.
THIS IS A SHARED KEY AND IS NOT SECURE, PLEASE RUN `pyats secret keygen` AND ADD TO YOUR pyats.conf FILE BEFORE ENCODING ANY VALUES.
collected 1 item 

 

On Linux/Mac the default configuration file is /etc/pyats.conf - If you don't have a pyats.conf file, you can create one in any of these locations. You can also create one by running the pyats secret keygen command.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

@bigevilbeard 
I created one manually
But running the pyats secret keygen command does not create one.
Running PyATS 25.7
Thanks

@assadniang as i understand the pyats secret keygen command does not create the pyats.conf file for you. Its purpose is to generate the encryption key string that you then manually add to a pyats.conf file you have already created.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io