How do I get the odoo9.0 inventory management source code/ - odoo-9

How do I get the odoo inventory management source code.
Please let me know

Please download Inventory Management from the following URL for Odoo 9
Inventory Management Module

Related

How to store and retrieve secret in AWX for inventory script?

I have a dynamic inventory script based on a MariaDB database. It works as expected when I call it from Ansible and now I want to use it with AWX as an inventory source from a project. But I can't figure out how to store my database credentials and how to retrieve them from the script.
Currently I use a json file with my credentials, anyway I don't want to store these data on the Git repository. So I'm stuck at that point: I have a script that works, but I can't use it in AWX because I didn't find any way to retrieve secrets from the inventory script.
Do you have some advices to give to me?

Ansible, how to differentiate the targets based on the different cloud

Im trying to write a logic (ansible playbook) where different roles are called based on the conditions.
Eg: AWS role should be in invoked if the condition matches for AWS, likewise for GCP, AZURE, vmware.
Tried to check through ansible_facts, no much information is available.
Please help, which condition can I use.
Thanks
The cloud provider would be a property of the inventory and not the host itself.
Identification of the cloud provider can be done while the inventory is being built.
As such, during inventory build you can use additional variables/ groups in your hosts file to pass such information as shown in examples below
[aws_hosts]
host1
host2
[aws_hosts:vars]
cloud_provider=aws
Then use the hostvars magic variable within the script to identify the cloud provider.
hostvars[host1].cloud_provider
More information can be found here.

ansible deploy to multi aws accounts using codebuild

The ansible playbook I'm running via aws codebuild only deploys to the same account. Instead of using a separate build for each account, I'd like to use only one build and manage multi-account deployment via ansible inventory. How can I set up the ansible static library to add yml files for every other aws account or environment it will be deploying to? That is, the inventory classifies those accounts into dev, stg & prod environments.
I know a bit about how this should be structured and that is to create a yml file in the inventory folder having the account name and also create a relevant file in the group-vars subfolder without the yml extension. But, I do not know the details of file contents. Can you please explain this to me?
On the other side, codebuild environment variable is given a few account names, the environment, and the role it should be assuming in those accounts to deploy. My question is how inventory structure and file content should be set up for this to work?
If you want to act on resources in different account, the general idea in AWS is to "assume" a role in that account and run API calls as normal. I see that Ansible has a module 'sts_assume_role' which helps to assume a role. I found the following blog article that may give you some pointers. Whether you run the ansible command on your laptop or CodeBuild, the idea is the same:
http://www.drivenbydevops.io/aws-ansible-and-assumed-roles/

Ansible dynamic inventory missing from github repo

I was checking this documentation
https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#inventory-script-example-aws-ec2
and found that EC2 dynamic inventory is not available in github repo and other inventories are also not available.
https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py
There is no information in Ansible release notes or anywhere. Even looks like documentation is also not up-to-date. Please share if anyone has any information about this.
Yes, official documentation is not updated and the links are resulting in 404.
I just checked official Ansible repository on Github and found that required folder is not present in "devel" branch.
However, you can still get the required ec2.py and ec2.ini files from "stable" branches.
https://github.com/ansible/ansible/blob/stable-2.9/contrib/inventory/ec2.ini
https://github.com/ansible/ansible/blob/stable-2.9/contrib/inventory/ec2.py
This is a new inventory repo
https://github.com/ansible-collections/community.general/tree/main/scripts/inventory
see oficial documentation
https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#other-inventory-scripts

why do we need to create localrc file for openstack

why do we need to create localrc file for openstack installation when package has stackrc, openrc config files present already? No need to say i am a newbie in OpenStack. Thanks for your help in advance!
the localrc file is used to customize the OpenStack installation. Suppose you want to install additional services like tacker, designate etc and also to define the endpoints ur and many other customizable configurations.

Resources