I have been unsuccessful at installing a Vormetric driver onto CentOS. I am using the ‘expect’ module and have tried various question:answer pairs, but nothing completes successfully. Due to the isolated environment I work in, I am unable to copy the playbook I’m using, but I do have the driver in my email and could share it with anyone who is willing to attempt a test install. It would probably make more sense that way, so you can see the full prompts yourself. If anyone is willing to help, feel free to reach out. I also checked Ansible Galaxy and there was nothing there, so this is a last-ditch effort. I have 360 servers that need this driver installed, so I’m hoping someone can help.
I have been unsuccessful at installing a Vormetric driver onto CentOS. I
am using the 'expect' module and have tried various question:answer pairs,
but nothing completes successfully. Due to the isolated environment I
work in, I am unable to copy the playbook I'm using, but I do have the
driver in my email and could share it with anyone who is willing to attempt
a test install. It would probably make more sense that way, so you can see
the full prompts yourself.
Running random code from a random guy on the Internet that's not going to happen.
If anyone is willing to help, feel free to
reach out. I also checked Ansible Galaxy and there was nothing there, so
this is a last-ditch effort. I have 360 servers that need this driver
installed, so I'm hoping someone can help.
I can always help with the expect part.
There are two things people usually gets wrong.
The responses in the expect module is a dict, that mean that it can only have one key, but the key can have multiple values in form of a list.
So if you have the text "Enter password" twice the responses would be
responses:
Enter password:
- MySecretPassword
The second thing is that expect is regex, so any regex special character[1] that you mean literately must be escaped with a backslash.
[1] https://docs.python.org/2/library/re.html#regular-expression-syntax