Switching and Routing
1819842 Members
2599 Online
109607 Solutions
New Discussion

Re: Ansible for Comware

 
BigHPEDog
Occasional Visitor

Ansible for Comware

A customer of us has a gazillion of comware switches. They want automate configuration of the same using Ansible. Yet we are not finding any playbooks, modules, or collections in the standard Ansible galaxy.

 

All we found is OneView related. We also find this on github: https://github.com/HPENetworking/ansible-hpe-cw7 .But this is unmaintained and I do not think anyone is using this in production.

Can you help me understand where to find official HPE comware Ansible modules? If there is none, what do you recommend and what is the message to pass to the customer?

 

9 REPLIES 9
akg7
HPE Pro

Re: Ansible for Comware

Hi,

There is no specific document is available for comware, you need to reach out to support for the same.

Can you search HP Comware Ansible Modules, you will get hp-ansible readthedoc?

 

Thanks!

 

 

Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo
phuochoang
Occasional Contributor

Re: Ansible for Comware

We are using ansible-hpe-cw7 for configuring our HP devices. Because it's not good maintenance so we have to customize our own lib for operation.

 

akg7
HPE Pro

Re: Ansible for Comware

Hi,

Can you search HP Comware Ansible Modules, you will get hp-ansible readthedoc, it is more managed link.

 

Thanks!

Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo
BigHPEDog
Occasional Visitor

Re: Ansible for Comware

Thanks a lot. That documentation point to a github repo that doesn't exist:

https://github.com/networktocode/hp-ansible

Is this module on galaxy? I could not find it.

akg7
HPE Pro

Re: Ansible for Comware

Hi,

Can you check under Modules-->All modules on the same page.

If its not helpful then please log a case with support.

Thanks!

Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo
BigHPEDog
Occasional Visitor

Re: Ansible for Comware

Yes, "All Modules" link works. But it is just the documentation. Where is the actual module code?

ginigangadharan
Occasional Advisor

Re: Ansible for Comware

james-hpe
Occasional Visitor

Re: Ansible for Comware

how ddid you create new library?

Rajas17
Occasional Visitor

Re: Ansible for Comware

Hi,

 

Thanks for pointing this out. 

I see username, password has been used in all examples. And i the code it has been given as mandatory fields. is there a way from which we can avoid username/password/hostname for each task?

 

We are seeing socket error which we are triggring playbook to check whether vlan exists or not.  

...
 
\"/tmp/ansible_comware_vlan_payload_sib0fla1 /ansible_comware_vlan_payload.zip/ansible/modules/comware_vlan.py\", line 130, in main\nsocket.gaierror: [Errn o -2] Name or service not known\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}

 

Any idea what might cause this issue?

 

Thanks,

Rajas